In case you have other rules, remember to make it precede any others by using the rule number. iptables -I FORWARD 1 -s [ip] -j DROP
On Wed, 2003-06-04 at 13:36, Ryan wrote: > If your machine is a router, you should also do: > > iptables -I FORWARD -s [ip] -j DROP > > so that it catches packets that are being routed and not destined for > firewall machine itself. > > > Hi. > > > > Quick question. I would like to block an ip temporarily. I would like to > > accomplish this without modifying my firewall just on the fly. I am > > banking that all I would need to do is type > > > > iptables -I INPUT -s [ip] -j DROP > > > > Am I on the right track or is this not correct. Any help would be > > appreciated Thanks. > > > > -- > > Aaron > > > > > > -- > > [EMAIL PROTECTED] mailing list > > > > > > > -- > [EMAIL PROTECTED] mailing list > -- [EMAIL PROTECTED] mailing list
