Results 1 to 2 of 2
Hi,
I have a perl script which runs the iptables chain below everytime a UDP flood is detected originating from within the network. I want to limit the amount of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-26-2009 #1Just Joined!
- Join Date
- Sep 2007
- Location
- Edinburgh UK
- Posts
- 8
iptables: No chain/target/match by that name
Hi,
I have a perl script which runs the iptables chain below everytime a UDP flood is detected originating from within the network. I want to limit the amount of packets but am having trouble with the chain
and get this error.Code:iptables -A OUPUT -o tap2 -s 192.168.2.240 -p udp -m limit --limit 5/m -j ACCEPT
i've also tried this from command lineCode:iptables: No chain/target/match by that name
but the same error.Code:iptables -A OUTPUT -o tap2 -s 192.168.2.240 -p udp -m limit --limit 5/m --limit-burst 10 --syn -j ACCEPT
Please help!!
Billy
- 05-26-2009 #2
Instead of using the OUTPUT chain why are you not using the INPUT/FORWARD chain? OUTPUT chain is just for traffic that originates on that system not what is passing through it. Also if it is originating from with in the network you shouldn't use a source address so that you catch everything.
Some more information you should be aware of the '-A' Appends this to the end of the chain. In other words if there is a rule that accepts the traffic before this one this rule will never take effect.
Another question is why is this not part of your set rules to begin with? Why wait until it is detected?
To answer your question I believe it is because of your spelling;
"OUPUT" -> Incorrect
"OUTPUT" -> Correct
This did not work for me either
This did work for meCode:iptables -A OUPUT -o tap2 -s 192.168.2.240 -p udp -m limit --limit 5/m -j ACCEPT
Code:iptables -A OUTPUT -o tap2 -s 192.168.2.240 -p udp -m limit --limit 5/m -j ACCEPT


Reply With Quote
