aboutsummaryrefslogtreecommitdiffstats
path: root/linux/network.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2021-02-26 01:55:13 +0000
committerSilvino Silva <silvino@bk.ru>2021-02-26 01:55:13 +0000
commit6ec55970fe70ad6306c768fe4a07acef50cec555 (patch)
tree4e53ebeb4d9f8d38a0da2caa0d6c092ef9bcaf1c /linux/network.html
parent2a862d9141a84b612ec2dd109a7f74a2b10ffb91 (diff)
downloaddoc-6ec55970fe70ad6306c768fe4a07acef50cec555.tar.gz
linux re-index
Diffstat (limited to 'linux/network.html')
-rw-r--r--linux/network.html59
1 files changed, 49 insertions, 10 deletions
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 @@
<html dir="ltr" lang="en">
<head>
<meta charset='utf-8'>
- <title>2.2. Network</title>
+ <title>2.7. Network</title>
</head>
<body>
<a href="index.html">GNU/Linux Index</a>
- <h1>2.2. Network</h1>
+ <h1>2.7. Network</h1>
<p>Operation of the network can be handle with init scripts or with
<a href="#nm">network manager</a>;</p>
@@ -52,7 +52,7 @@
described scripts then proceed to
<a href="package.html#sysup">update system.</a></p>
- <h2 id="resolv">2.2.1. Resolver</h2>
+ <h2 id="resolv">2.7.1. Resolver</h2>
<p>This example will use
<a href="http://www.chaoscomputerclub.de/en/censorship/dns-howto">Chaos Computer Club</a>
@@ -68,7 +68,7 @@
# chattr +i /etc/resolv.conf
</pre>
- <h2 id="static">2.2.2. Static IP</h2>
+ <h2 id="static">2.7.2. Static IP</h2>
<p>Current example of <a href="conf/rc.d/net">/etc/rc.d/net</a>;</p>
@@ -115,7 +115,7 @@
# ip route add default via ${GW}
</pre>
- <h2 id="iptables">2.2.3. Iptables</h2>
+ <h2 id="iptables">2.7.3. Iptables</h2>
<p>For more information about firewall systems read arch wiki
<a href="https://wiki.archlinux.org/index.php/Iptables">iptables</a>
@@ -269,7 +269,7 @@
# iptables -L -n -v | less
</pre>
- <h3 id="ipt_scripts">2.2.3.1. Iptable scripts</h3>
+ <h3 id="ipt_scripts">2.7.3.1. Iptable scripts</h3>
<p>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 @@
<p>From now on use /etc/rc.d/iptables to start and stop.<p>
- <h2 id="wpa">2.2.4. Wpa and dhcpd</h2>
+ <h2 id="bridge">2.7.4 Bridges</h2>
+
+ <p>For more information about bridges read
+ <a href="http://ebtables.netfilter.org/br_fw_ia/br_fw_ia.html#section7">bridges with iptables</a>.
+ Script <a href="conf/etc/rc.d/blan">/etc/rc.d/blan</a> 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;</p>
+
+ <pre>
+ #
+ # /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
+ </pre>
+
+ <p>Change iptables init script
+ <a href="../linux/conf/rc.d/iptables">/etc/rc.d/iptables</a>
+ and set TYPE to bridge,
+ <a href="../linux/conf/iptables/bridge.v4">/etc/iptables/bridge.v4</a>.
+ Now change
+ <a href="../linux/conf/iptables/ipt-conf.sh">ipt-conf.sh</a>
+ and <a href="../linux/conf/iptables/ipt-bridge.sh">ipt-bridge.sh</a>
+ with your network configuration and run;
+ </p>
+
+ <pre>
+ # bash ipt-bridge.sh
+ </pre>
+
+ <h2 id="wpa">2.7.5. Wpa and dhcpd</h2>
<p>There is more information on
<a href="http://crux.nu/Wiki/WifiStartScripts">Wiki Wifi Start Scripts</a> and
@@ -327,7 +365,7 @@
# iwconfig wlp2s0 essid NAME key s:ABCDE12345
</pre>
- <h3>2.2.4.1. Wpa Supplicant</h3>
+ <h3>2.7.4.1. Wpa Supplicant</h3>
<p>Configure wpa supplicant edit;</p>
@@ -357,7 +395,7 @@
init script to auto load wpa configuration and dhcp
client.</p>
- <h3>2.2.4.2. Wpa Cli</h3>
+ <h3>2.7.4.2. Wpa Cli</h3>
<pre>
# wpa_cli
@@ -396,7 +434,7 @@
&gt; save_config
</pre>
- <h2 id="nm">2.2.5. Network Manager</h2>
+ <h2 id="nm">2.7.6. Network Manager</h2>
<p>Wifi status;</p>
@@ -425,6 +463,7 @@
nmcli> save persistent
</pre>
+
<a href="index.html">GNU/Linux Index</a>
<p>
This is part of the LeetIO System Documentation.