User Tools

Site Tools


iptables_droprule

Dropping/Deleting rules

To drop an iptables rule you will need to know the number of the in the list, you can either count the lines or use your normal command with –line-numbers after. E.g:

iptables -nL –line-numbers
Once you know the line number you can delete the rule using:

iptables -D INPUT #

Replace the # with the rule number you would like to drop

iptables_droprule.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki