diff options
author | Silvino Silva <silvino@bk.ru> | 2016-10-16 15:51:17 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2016-10-16 15:58:09 +0100 |
commit | fb527b11076db8dd72e51e8643612efbb8ce1aac (patch) | |
tree | 5756d038f3bc6183cafad0121e665b0687c6b80e /core/network.html | |
parent | fef9ed6a55e118baacefe32caa740650ad01ecc3 (diff) | |
download | doc-fb527b11076db8dd72e51e8643612efbb8ce1aac.tar.gz |
Deleted iptables script with many errors,
added simple rules.v4 file that can be used by iptables-restore
Diffstat (limited to 'core/network.html')
-rw-r--r-- | core/network.html | 24 |
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> |