Skip to content

Commit

Permalink
Restore Rules from rules.v4
Browse files Browse the repository at this point in the history
  • Loading branch information
markjcrane committed Nov 7, 2022
1 parent 197fde4 commit 41cbb69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/firewall/iptables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ Block IP address

| ``iptables -I INPUT -s 62.210.245.132 -j DROP``
Restore Rules from rules.v4
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This reads the file rules.v4 and saved iptables rules back into active memory.
| ``iptables-restore < /etc/iptables/rules.v4``
Flush iptables
^^^^^^^^^^^^^^^^^
How to flush iptables without loosing access to ssh.
Expand Down

0 comments on commit 41cbb69

Please sign in to comment.