Skip to main content
  1. Posts/

Delete single iptables rules

·36 words·1 min·

You can delete them based on what they’re doing:

iptables -D INPUT -s 127.0.0.1 -p tcp --dport 111 -j ACCEPT

Or you can delete them based on their number and chain name:

iptables -D INPUT 4