diff options
author | Silvino <silvino@bk.ru> | 2019-06-28 03:58:25 +0100 |
---|---|---|
committer | Silvino <silvino@bk.ru> | 2019-06-28 03:58:25 +0100 |
commit | bb4fd340e7a1faffc363c6baa2f67e84b3a34f0c (patch) | |
tree | b8e4bed0ede5b48bf26b920949e83e36c1fe431c /core/network.html | |
parent | 296be79a3b724db67a37244a67cfb3e4ef6b652f (diff) | |
parent | fe94262de38aafc839963ced9b82ee45d81b65f5 (diff) | |
download | doc-bb4fd340e7a1faffc363c6baa2f67e84b3a34f0c.tar.gz |
doc release 0.5.4
Diffstat (limited to 'core/network.html')
-rw-r--r-- | core/network.html | 17 |
1 files changed, 13 insertions, 4 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 |