S
S
syxoi2016-05-25 15:18:46
linux
syxoi, 2016-05-25 15:18:46

How to remove a specific iptables rule?

Hello! Blocked port 80 by issuing commands

iptables -A INPUT -i eth0 -p udp -m udp --dport 80 -j DROP

and
iptables -A INPUT -i eth0 -p tcp -m udp --dport 80 -j DROP

now we need to remove these two rules, but besides these rules, there are many more, and I would not like to re-enter all the rules with the iptables -F command.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
syxoi, 2016-05-27
@syxoi

Thanks, all methods are good. But as Mystray said, it's more convenient, IMHO.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question