about summary refs log tree commit diff stats
path: root/core/network.html
diff options
context:
space:
mode:
Diffstat (limited to 'core/network.html')
-rw-r--r--core/network.html24
1 files changed, 10 insertions, 14 deletions
diff --git a/core/network.html b/core/network.html
index 74cce0e..ba84e2a 100644
--- a/core/network.html
+++ b/core/network.html
@@ -98,32 +98,28 @@
         <p>For more information about iptables read
         <a href="https://wiki.archlinux.org/index.php/Iptables">arch wiki</a>.
         You can use
-        <a href="scripts/iptables.sh">iptables script</a>
-        at boot time and iptables-save and iptables-restore tools to
-        configure nat and filtering;</p>
+        <a href="conf/iptables/rules.v4">/etc/iptables/rules.v4</a>
+        as template, replace interface by the one facing the router/gateway.
+        This configuration file is used at boot time by iptables-restore command,
+        if you use a script or change the rules of running system you can
+        use iptables-save command to save configuration to a file.</p>
 
         <pre>
         # mkdir /etc/iptables
-        # cp c9-doc/core/scripts/iptables.sh /etc/iptables/
+        # cp c9-doc/core/conf/iptables/rules.v4 /etc/iptables/
+        # cp c9-doc/core/conf/rc.d/iptables /etc/rc.d/
+        # chmod +x /etc/rc.d/iptables
         </pre>
 
-        <p>Adjust iptables to your needs, then;</p>
+        <p>Adjust rules.v4 to your needs, then;</p>
 
         <pre>
-        # cd /etc/iptables
-        # sh iptables.sh
-        # iptables-save > rules.v4
+        # sh /etc/rc.d/iptables start
         </pre>
 
         <p>Copy init script, edit if you dont like to
         let drop when you call stop.</p>
 
-        <pre>
-        # cp c9-doc/core/conf/rc.d/iptables /etc/rc.d/
-        # vim /etc/rc.d/iptables
-        # chmod +x /etc/rc.d/iptables
-        </pre>
-
         <p>Re-configure your rc.conf and add iptables before (w)lan is up;</p>
 
         <pre>