From 6ec55970fe70ad6306c768fe4a07acef50cec555 Mon Sep 17 00:00:00 2001
From: Silvino Silva Operation of the network can be handle with init scripts or with
network manager;2.2. Network
+ 2.7. Network
This example will use Chaos Computer Club @@ -68,7 +68,7 @@ # chattr +i /etc/resolv.conf -
Current example of /etc/rc.d/net;
@@ -115,7 +115,7 @@ # ip route add default via ${GW} -For more information about firewall systems read arch wiki iptables @@ -269,7 +269,7 @@ # iptables -L -n -v | less -
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.
-
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 ++ +
There is more information on Wiki Wifi Start Scripts and @@ -327,7 +365,7 @@ # iwconfig wlp2s0 essid NAME key s:ABCDE12345 -
Configure wpa supplicant edit;
@@ -357,7 +395,7 @@ init script to auto load wpa configuration and dhcp client. -
# wpa_cli
@@ -396,7 +434,7 @@
> save_config
- Wifi status;
@@ -425,6 +463,7 @@ nmcli> save persistent + GNU/Linux IndexThis is part of the LeetIO System Documentation. -- cgit