about summary refs log tree commit diff stats
path: root/core/network.html
diff options
context:
space:
mode:
Diffstat (limited to 'core/network.html')
-rw-r--r--core/network.html56
1 files changed, 28 insertions, 28 deletions
diff --git a/core/network.html b/core/network.html
index e463ac5..8ca5aef 100644
--- a/core/network.html
+++ b/core/network.html
@@ -29,7 +29,9 @@
 
 	<h2 id="iptables">2.1.1. Iptables</h2>
 
-        <p>You can use
+        <p>For more information about iptables read
+        <a href="https://wiki.archlinux.org/index.php/Iptables">arch wiki</a>.
+        You can use
         <a href="scripts/iptables.sh">iptables script</a>
         at boot time and iptables-save and iptables-restore tools to
         configure nat and filtering;</p>
@@ -62,6 +64,7 @@
         SERVICES=(lo iptables net crond)
         </pre>
 
+        <p>
         <h2 id="resolv">2.1.2. Resolver</h2>
 
         <p>Configure your resolver with a server that don't censorship there for
@@ -81,7 +84,22 @@
         # chattr +i /etc/resolv.conf
         </pre>
 
-        <h2 id="wpa">4.3. Wpa and dhcpd</h2>
+        <h2 id="static">2.1.3. Static IP</h2>
+
+        <pre>
+        # ip link
+        # ip addr flush dev ${DEV}
+        # ip route flush dev ${DEV}
+        </pre>
+
+        <pre>
+        # ip addr add ${ADDR}/${MASK} dev ${DEV} broadcast +
+        # ip link set ${DEV} up
+        # ip route add default via ${GW}
+        </pre>
+
+
+        <h2 id="wpa">2.1.4. Wpa and dhcpd</h2>
 
         <p>There is more information on
         <a href="http://crux.nu/Wiki/WifiStartScripts">Wiki Wifi Start Scripts</a> and
@@ -99,11 +117,7 @@
         # iwconfig wlp2s0 essid NAME key s:ABCDE12345
         </pre>
 
-        <pre>
-        # ip addr add 192.168.1.65 dev wlp2s0
-        </pre>
-
-        <h3>4.3.1. Wpa Supplicant</h3>
+        <h3>2.1.4.1. Wpa Supplicant</h3>
 
         <p>Configure wpa supplicant edit;</p>
 
@@ -133,7 +147,7 @@
 	init script to auto load wpa configuration and dhcp
         client.</p>
 
-	<h3>4.3.2. Wpa Cli</h3>
+	<h3>2.1.4.2. Wpa Cli</h3>
 
         <pre>
         # wpa_cli
@@ -146,7 +160,7 @@
         </pre>
 
         <pre>
-        &gt; set_network 3 ssid "Valcovo-Network"
+        &gt; set_network 3 ssid "Crux-Network"
         OK
         </pre>
 
@@ -173,21 +187,7 @@
         </pre>
 
 
-        <h2 id="static">4.4. Static IP</h2>
-
-        <pre>
-        # ip link
-        # ip addr flush dev ${DEV}
-        # ip route flush dev ${DEV}
-        </pre>
-
-        <pre>
-        # ip addr add ${ADDR}/${MASK} dev ${DEV} broadcast +
-        # ip link set ${DEV} up
-        # ip route add default via ${GW}
-        </pre>
-
-        <h2 id="sysctl">4.5. Sysctl</h2>
+        <h2 id="sysctl">2.1.5. Sysctl</h2>
 
         <p>Sysctl references
         <a href="https://wiki.archlinux.org/index.php/sysctl#TCP.2FIP_stack_hardening">Arch TCP/IP stack hardening</a>,
@@ -203,9 +203,9 @@
         kernel.printk = 1 4 1 7
 
         # Disable ipv6
-    net.ipv6.conf.all.disable_ipv6 = 1
-    net.ipv6.conf.default.disable_ipv6 = 1
-    net.ipv6.conf.lo.disable_ipv6 = 1
+        net.ipv6.conf.all.disable_ipv6 = 1
+        net.ipv6.conf.default.disable_ipv6 = 1
+        net.ipv6.conf.lo.disable_ipv6 = 1
 
         # Tuen IPv6
         # net.ipv6.conf.default.router_solicitations = 0
@@ -263,7 +263,7 @@
         net.ipv4.conf.all.secure_redirects = 0
         net.ipv4.conf.default.secure_redirects = 0
 
-        # Act as a router, necessary for Access Point
+        # Don't act as a router
         net.ipv4.ip_forward = 0
         net.ipv4.conf.all.send_redirects = 0
         net.ipv4.conf.default.send_redirects = 0