grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

iptables.md (333B)


      1 # iptables
      2 
      3 ```
      4 iptables -L
      5 ```
      6 
      7 ```
      8 iptables -S
      9 ```
     10 
     11 * drop
     12 ```
     13 iptables -L --line-numbers
     14 iptables -D INPUT <number>
     15 ```
     16 
     17 ## import / export
     18 see [guide][]
     19 
     20 ```
     21 iptables-save > filename
     22 iptables-restore < filename
     23 ```
     24 
     25 [guide]: https://www.digitalocean.com/community/tutorials/how-to-migrate-iptables-firewall-rules-to-a-new-server