LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remove a particular iptables rule (https://www.linuxquestions.org/questions/linux-newbie-8/remove-a-particular-iptables-rule-578701/)

shipon_97 08-21-2007 10:16 AM

remove a particular iptables rule
 
Dear Friends ,

I have to run the follwoing iptables rules :

"iptables -t nat -A PREROUTING -i eth0 -s eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128"

Now after several times , I need to remove this
rules without using "IPTABLES -F" .

How can I do it ?

blackhole54 08-21-2007 10:42 AM

You run the same command, but substitute -D for -A. You can also delete it by rule number. Check out iptables man page for more info.


All times are GMT -5. The time now is 06:36 PM.