From b5f3610fc765c2ac08a4029460f90265f37b9dfa Mon Sep 17 00:00:00 2001 From: Silvino Date: Wed, 26 Jun 2019 18:00:30 +0100 Subject: core and tools iptables fix --- core/network.html | 17 +++++++++++++---- 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 @@
/etc/rc.d/iptables
-
Configure iptables, start option - loads set of rules from file /etc/iptables/net.v4, open option +
Configure iptables, "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.
+ "stop" option will block and log everything.
/etc/rc.d/net
Configure Ethernet interface with static or dynamic (dhcp) IP, set default route and add default gateway.
@@ -283,7 +283,7 @@
         # 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
         
@@ -300,6 +300,15 @@ with your network configuration, and adjust /etc/iptables/ipt-server.sh, /etc/iptables/ipt-bridge.sh, /etc/iptables/ipt-open.sh according with host necessities.

+

When is everything configured run script to load the rules and save them on /etc/iptables. Example for bridge setup;

+ +
+        # cd /etc/iptables
+        # bash ipt-bridge.sh
+        
+ +

From now on use /etc/rc.d/iptables to start and stop.

+

2.2.4. Wpa and dhcpd

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 -

Copy bridge.v4 to /etc/iptables and restart - iptables.

- Tools Index

This is part of the Hive System Documentation. Copyright (C) 2019 -- cgit 1.4.1-2-gfad0