From e0fac3869c68af251ce762d3e2e9fca010336f98 Mon Sep 17 00:00:00 2001 From: Silvino Date: Sun, 9 Jun 2019 03:57:34 +0100 Subject: tools network revision --- tools/network.html | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) (limited to 'tools') diff --git a/tools/network.html b/tools/network.html index 6f9e941..0fad69e 100644 --- a/tools/network.html +++ b/tools/network.html @@ -10,24 +10,28 @@

Network Tools

-

This document and others under tools extend - core network - witch allow to connect to the internet in the most - common environments. Follow documents allow to configure - tap interfaces for virtual machines, audit network, - dns cache and encryption, etc.

- -

On core is configured a sub-domain from +

This document extend + core network, + that cover the most common environments, with + virtual networks and bridges.

+ +

To configure a sub-domain from afraid.org, generate cron job to update ip every 5 minutes, check - about dynamic interface. To run as system cron job add as root and remove path line from example;

+ about dynamic interface. + To run as system cron job add as root and remove + path line from example;

+
         # crontab -e
         
-

Example from afraid uses curl and will log output to /tmp/freedns*, - change to /var/log/freedns

+

Replace KEY and domain_name with correct one;

+ +
+        4,9,14,19,24,29,34,39,44,49,54,59 * * * * sleep 22 ; wget --no-check-certificate -O - https://freedns.afraid.org/dynamic/update.php?[KEY]= >> /var/log/freedns_domain_name.log 2>&1 &
+        

Bridges

@@ -55,19 +59,24 @@

Change iptables init script /etc/rc.d/iptables - to load new rules from - /etc/iptables/br-lan.v4. - Now change iptables-br.sh + and set TYPE to bridge, + /etc/iptables/bridge.v4. + Now change + ipt-conf.sh + and ipt-bridge.sh with your network configuration and run;

-        # bash core/scripts/iptables-br.sh
+        # 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) 2018 + Copyright (C) 2019 Hive Team. See the file Gnu Free Documentation License for copying conditions.

-- cgit 1.4.1-2-gfad0