diff options
author | Silvino <silvino@bk.ru> | 2019-06-26 18:00:30 +0100 |
---|---|---|
committer | Silvino <silvino@bk.ru> | 2019-06-26 18:00:30 +0100 |
commit | b5f3610fc765c2ac08a4029460f90265f37b9dfa (patch) | |
tree | 51957181cd4b2b73a1cfc6954cbccf0bd5f7f0b3 | |
parent | eddfa5ed593e67c9b2e6c53382b4fe044663451a (diff) | |
download | doc-b5f3610fc765c2ac08a4029460f90265f37b9dfa.tar.gz |
core and tools iptables fix
-rw-r--r-- | core/network.html | 17 | ||||
-rw-r--r-- | tools/network.html | 3 |
2 files changed, 13 insertions, 7 deletions
diff --git a/core/network.html b/core/network.html index 4a412ad..4838122 100644 --- a/core/network.html +++ b/core/network.html @@ -14,10 +14,10 @@ <dl> <dt><a href="conf/rc.d/iptables">/etc/rc.d/iptables</a></dt> - <dd>Configure <a href="#iptables">iptables</a>, start option - loads set of rules from file /etc/iptables/net.v4, open option + <dd>Configure <a href="#iptables">iptables</a>, "start" option + loads set of rules from file /etc/iptables/(name).v4, "open" option allows everything to outside and blocks everything from outside, - stop will block and log everything.</dd> + "stop" option will block and log everything.</dd> <dt><a href="conf/rc.d/net">/etc/rc.d/net</a></dt> <dd>Configure Ethernet interface with static or dynamic (dhcp) IP, set default route and add default gateway.</dd> @@ -283,7 +283,7 @@ <pre> # mkdir /etc/iptables - # cp core/conf/iptables/net.v4 /etc/iptables/ + # cp core/conf/iptables/*.sh /etc/iptables/ # cp core/conf/rc.d/iptables /etc/rc.d/ # chmod +x /etc/rc.d/iptables </pre> @@ -300,6 +300,15 @@ with your network configuration, and adjust <a href="conf/ipt-server.sh">/etc/iptables/ipt-server.sh</a>, <a href="conf/ipt-bridge.sh">/etc/iptables/ipt-bridge.sh</a>, <a href="conf/ipt-open.sh">/etc/iptables/ipt-open.sh</a> according with host necessities.</p> + <p>When is everything configured run script to load the rules and save them on /etc/iptables. Example for bridge setup;</p> + + <pre> + # cd /etc/iptables + # bash ipt-bridge.sh + </pre> + + <p>From now on use /etc/rc.d/iptables to start and stop.<p> + <h2 id="wpa">2.2.4. Wpa and dhcpd</h2> <p>There is more information on diff --git a/tools/network.html b/tools/network.html index 0fad69e..6b08e78 100644 --- a/tools/network.html +++ b/tools/network.html @@ -71,9 +71,6 @@ # bash ipt-bridge.sh </pre> - <p>Copy bridge.v4 to /etc/iptables and restart - iptables.</p> - <a href="index.html">Tools Index</a> <p>This is part of the Hive System Documentation. Copyright (C) 2019 |