From 6ec55970fe70ad6306c768fe4a07acef50cec555 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Fri, 26 Feb 2021 01:55:13 +0000 Subject: linux re-index --- linux/network.html | 59 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 10 deletions(-) (limited to 'linux/network.html') diff --git a/linux/network.html b/linux/network.html index ec33b25..a0e542e 100644 --- a/linux/network.html +++ b/linux/network.html @@ -2,12 +2,12 @@ - 2.2. Network + 2.7. Network GNU/Linux Index -

2.2. Network

+

2.7. Network

Operation of the network can be handle with init scripts or with network manager;

@@ -52,7 +52,7 @@ described scripts then proceed to update system.

-

2.2.1. Resolver

+

2.7.1. Resolver

This example will use Chaos Computer Club @@ -68,7 +68,7 @@ # chattr +i /etc/resolv.conf -

2.2.2. Static IP

+

2.7.2. Static IP

Current example of /etc/rc.d/net;

@@ -115,7 +115,7 @@ # ip route add default via ${GW} -

2.2.3. Iptables

+

2.7.3. Iptables

For more information about firewall systems read arch wiki iptables @@ -269,7 +269,7 @@ # iptables -L -n -v | less -

2.2.3.1. Iptable scripts

+

2.7.3.1. Iptable scripts

Scripts help to setup iptables rules so they can be saved using iptables-save and later restored using iptables-restore utilities. Init script @@ -309,7 +309,45 @@

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

-

2.2.4. Wpa and dhcpd

+

2.7.4 Bridges

+ +

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=machine
+        SYSLOG=sysklogd
+        SERVICES=(lo iptables wlan blan crond)
+
+        # End of file
+        
+ +

Change iptables init script + /etc/rc.d/iptables + 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 ipt-bridge.sh
+        
+ +

2.7.5. Wpa and dhcpd

There is more information on Wiki Wifi Start Scripts and @@ -327,7 +365,7 @@ # iwconfig wlp2s0 essid NAME key s:ABCDE12345 -

2.2.4.1. Wpa Supplicant

+

2.7.4.1. Wpa Supplicant

Configure wpa supplicant edit;

@@ -357,7 +395,7 @@ init script to auto load wpa configuration and dhcp client.

-

2.2.4.2. Wpa Cli

+

2.7.4.2. Wpa Cli

         # wpa_cli
@@ -396,7 +434,7 @@
         > save_config
         
-

2.2.5. Network Manager

+

2.7.6. Network Manager

Wifi status;

@@ -425,6 +463,7 @@ nmcli> save persistent + GNU/Linux Index

This is part of the LeetIO System Documentation. -- cgit