Browse Source

Restore Rules from rules.v4

FusionPBX 2 years ago
parent
commit
41cbb69a2a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      source/firewall/iptables.rst

+ 5 - 0
source/firewall/iptables.rst

@@ -87,6 +87,11 @@ Block IP address
 
 
 | ``iptables -I INPUT -s 62.210.245.132 -j DROP``
 | ``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
 Flush iptables
 ^^^^^^^^^^^^^^^^^
 ^^^^^^^^^^^^^^^^^
 How to flush iptables without loosing access to ssh.
 How to flush iptables without loosing access to ssh.