From d11608eafc201f6fc5e6fad86eb76908f489deda Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Mon, 13 Feb 2017 21:44:14 +0000 Subject: tools network revision --- tools/network.html | 53 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 8 deletions(-) (limited to 'tools/network.html') diff --git a/tools/network.html b/tools/network.html index 0dc51d6..9cf5395 100644 --- a/tools/network.html +++ b/tools/network.html @@ -10,19 +10,56 @@

Network Tools

-

Ethernet and wireless connections to router are configured - by net and wlan scripts, they - allow to connect to the internet in the most common environments.

+

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.

-

For network statistics and monitoring see tcpdump.

+

On core is configured 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;

+
+        PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
+        
+ +
+        # crontab -e
+        
+ +

Example from afraid uses curl and will log output to /tmp/freedns*

Bridges

-

See /etc/rc.d/blan on - how to create interfaces at startup or as source to do it - in automatic way;

+

For more information about bridges read + bridges with iptables. + Script /etc/rc.d/blan creates br0 bridge interface + with 10.0.0.1 ip. Number of tap interfaces created and attached depends on number + of cpu cores available. Ethernet interface is added to the bridge. Edit /etc/rc.conf + to setup interfaces at startup;

+ +
+        #
+        # /etc/rc.conf: system configuration
+        #
+
+        FONT=default
+        KEYMAP=dvorak
+        TIMEZONE="Europe/Lisbon"
+        HOSTNAME=c9
+        SYSLOG=sysklogd
+        SERVICES=(lo iptables wlan blan crond)
+
+        # End of file
+        
-

For more information about bridges Bridges with iptables

+

Change iptables script rules from core to + /etc/rc.d/iptables + to load new rules from + /etc/iptables/vlan.v4

Tools Index

This is part of the c9 Manual. -- cgit 1.4.1-2-gfad0