aboutsummaryrefslogtreecommitdiffstats
path: root/linux/network.html
diff options
context:
space:
mode:
authorpunk <punk@libernaut>2021-04-21 15:42:20 +0100
committerpunk <punk@libernaut>2021-04-21 15:42:20 +0100
commit4107462e9ec1cabaa7f89bd8478caec3f0d5b46a (patch)
treea2e34d995cef5ac8068ec7047e93b1125c80d175 /linux/network.html
parentcfce80c5a0b8bc1eccc2f22a0d5d045d29467083 (diff)
parenteac48b5a8d709135a95abcc2243b369095f074f4 (diff)
downloaddoc-4107462e9ec1cabaa7f89bd8478caec3f0d5b46a.tar.gz
Merge branch 'master' into develop
Diffstat (limited to 'linux/network.html')
-rw-r--r--linux/network.html69
1 files changed, 54 insertions, 15 deletions
diff --git a/linux/network.html b/linux/network.html
index 0d359f3..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">Core OS Index</a>
+ <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,11 +463,12 @@
nmcli> save persistent
</pre>
- <a href="index.html">Core OS Index</a>
+
+ <a href="index.html">GNU/Linux Index</a>
<p>
- This is part of the Tribu System Documentation.
- Copyright (C) 2020
- Tribu Team.
+ This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
for copying conditions.</p>