about summary refs log tree commit diff stats
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
parent2a862d9141a84b612ec2dd109a7f74a2b10ffb91 (diff)
downloaddoc-6ec55970fe70ad6306c768fe4a07acef50cec555.tar.gz
linux re-index
-rw-r--r--linux/bash.html10
-rw-r--r--linux/dash.html4
-rw-r--r--linux/fail2ban.html (renamed from tools/fail2ban.html)0
-rw-r--r--linux/index.html80
-rw-r--r--linux/network.html59
-rw-r--r--linux/package.html16
-rw-r--r--linux/tty-terminal.html4
-rw-r--r--tools/index.html49
8 files changed, 126 insertions, 96 deletions
diff --git a/linux/bash.html b/linux/bash.html
index 1a7edb2..7b98eb5 100644
--- a/linux/bash.html
+++ b/linux/bash.html
@@ -2,12 +2,12 @@
 <html dir="ltr" lang="en">
     <head>
         <meta charset='utf-8'>
-        <title>2.5.2. Bash</title>
+        <title>2.3.2. Bash</title>
     </head>
     <body>
         <a href="index.html">GNU/Linux Index</a>
 
-        <h1 id="bash">2.5.2. Bash</h1>
+        <h1 id="bash">2.3.2. Bash</h1>
 
         <p>Just to be sure, setup bash as default login;<p>
 
@@ -32,7 +32,7 @@
             alias, editor.</dd>
         </dl>
 
-        <h2 id="profile">2.5.2.1. Profile</h2>
+        <h2 id="profile">2.3.2.1. Profile</h2>
 
         <p>Example of ~/.profile;</p>
 
@@ -73,7 +73,7 @@
 	    fi
 fi        </pre>
 
-        <h2 id="bashrc">2.5.2.2. Bash RC</h2>
+        <h2 id="bashrc">2.3.2.2. Bash RC</h2>
 
         <p>Example of ~/.bashrc;</p>
 
@@ -136,7 +136,7 @@ fi        </pre>
         fi
         </pre>
 
-        <h2 id="bash_profile">2.5.2.3. Bash profile</h2>
+        <h2 id="bash_profile">2.3.2.3. Bash profile</h2>
 
         <p>Example of ~/.bash_profile;</p>
 
diff --git a/linux/dash.html b/linux/dash.html
index 8da34a3..47b9945 100644
--- a/linux/dash.html
+++ b/linux/dash.html
@@ -2,13 +2,13 @@
 <html dir="ltr" lang="en">
     <head>
         <meta charset='utf-8'>
-        <title>2.5.1. Dash</title>
+        <title>2.3.1. Dash</title>
     </head>
     <body>
 
         <a href="index.html">GNU/Linux Index</a>
 
-        <h1>2.5.1. Dash</h1>
+        <h1>2.3.1. Dash</h1>
 
 
         <p>By default dash installed as /bin/sh, if not relink;</p>
diff --git a/tools/fail2ban.html b/linux/fail2ban.html
index 71bbdf9..71bbdf9 100644
--- a/tools/fail2ban.html
+++ b/linux/fail2ban.html
diff --git a/linux/index.html b/linux/index.html
index 33578f7..482730a 100644
--- a/linux/index.html
+++ b/linux/index.html
@@ -105,31 +105,38 @@
                     <li><a href="linux.html#remove">2.1.6. Remove</a></li>
                 </ul>
             </li>
-            <li><a href="network.html">2.2. Network</a>
+
+            <li><a href="package.html">2.2. Package Management</a>
                 <ul>
-                    <li><a href="network.html#resolv">2.2.1. Resolver</a></li>
-                    <li><a href="network.html#static">2.2.2. Static ip</a></li>
-                    <li><a href="network.html#iptables">2.2.3. Iptables</a></li>
-                    <li><a href="network.html#wpa">2.2.4. Wpa and dhcpd</a></li>
-                    <li><a href="network.html#nm">2.2.5. NetworkManager</a></li>
+                    <li><a href="package.html#sysup">2.2.1. Update system</a></li>
+                    <li><a href="package.html#depinst">2.2.2. Install ports and dependencies</a></li>
+                    <li><a href="package.html#ports">2.2.3. Ports collections</a></li>
+                    <li><a href="package.html#info">2.2.3. Show port information</a></li>
+                    <li><a href="package.html#depends">2.2.4. Show port dependencies</a></li>
+                    <li><a href="package.html#printf">2.2.5. Print information</a></li>
                 </ul>
             </li>
-            <li><a href="package.html">2.3. Package Management</a>
+
+            <li><a href="tty-terminal.html">2.3. Terminals and shells</a>
                 <ul>
-                    <li><a href="package.html#sysup">2.3.1. Update system</a></li>
-                    <li><a href="package.html#depinst">2.3.2. Install ports and dependencies</a></li>
-                    <li><a href="package.html#ports">2.3.3. Ports collections</a></li>
-                    <li><a href="package.html#info">2.3.3. Show port information</a></li>
-                    <li><a href="package.html#depends">2.3.4. Show port dependencies</a></li>
-                    <li><a href="package.html#printf">2.3.5. Print information</a></li>
+                    <li><a href="dash.html">2.3.1. Dash</a></li>
+                    <li><a href="bash.html">2.3.2. Bash</a></li>
                 </ul>
             </li>
-            <li><a href="tty-terminal.html">2.4. Terminals and shells</a>
-                <ul>
-                    <li><a href="dash.html">2.4.1. Dash</a></li>
-                    <li><a href="bash.html">2.4.2. Bash</a></li>
-                </ul>
+	    <li><a href="syslog-ng.html">2.4. Syslog-ng</a>
+		<ul>
+		    <li><a href="syslog-ng.html#install">Install syslog-ng</a></li>
+		    <li><a href="syslog-ng.html#configure">Configure syslog-ng</a></li>
+		    <li><a href="logrotate.html">Logrotate</a></li>
+		    <li><a href="logwatch.html">Logwatch</a>
+			<ul>
+			    <li><a href="logwatch.html#conf">Configure Logwatch</a></li>
+			    <li><a href="logwatch.html#cron">Set cron task</a></li>
+			</ul>
+		    </li>
+	        </ul>
             </li>
+
             <li><a href="exim.html">2.5. Exim</a>
                 <ul>
                     <li><a href="exim.html#conf">2.5.1. Exim configuration</a></li>
@@ -144,8 +151,8 @@
                     <li><a href="apparmor.html">2.6.1. AppArmor</a>
                         <ul>
                             <li><a href="apparmor.html#install">2.6.1.1 Install</h2></li>
-                            <li><a href="apparmor.html#configure">6.2.1.2 Configure</h2></li>
-                            <li><a href="apparmor.html#profiles">6.2.1.3 Profiles</h2></li>
+                            <li><a href="apparmor.html#configure">2.6.1.2 Configure</h2></li>
+                            <li><a href="apparmor.html#profiles">2.6.1.3 Profiles</h2></li>
                             <li><a href="apparmor.html#audit">2.6.1.4 Profile with audit</h2></li>
                             <li><a href="apparmor.html#edit">2.6.1.5 Edit profiles</h2></li>
                             <li><a href="apparmor.html#speedup">2.6.1.6 Speedup startup</h2></li>
@@ -154,9 +161,42 @@
                     <li><a href="sysctl.html">2.6.2. Sysctl</a></li>
                     <li><a href="toolchain.html">2.6.3. Toolchain</a></li>
                     <li><a href="samhain.html">2.6.4. Samhain</a></li>
+		    <li><a href="fail2ban.html">2.6.5 Fail2ban</a></li>
                 </ul>
             </li>
 
+
+            <li><a href="network.html">2.7. Network</a>
+                <ul>
+                    <li><a href="network.html#resolv">2.7.1. Resolver</a></li>
+                    <li><a href="network.html#static">2.7.2. Static ip</a></li>
+                    <li><a href="network.html#iptables">2.7.3. Iptables</a></li>
+                    <li><a href="network.html#bridge">2.7.4. Bridges</a></li>
+                    <li><a href="network.html#wpa">2.7.5. Wpa and dhcpd</a></li>
+                    <li><a href="network.html#nm">2.7.6. NetworkManager</a></li>
+		    <li><a href="dnsmasq.html">2.7.7. Dnscrypt and Dnsmasq</a></li>
+		    <li><a href="tcpdump.html">2.7.8. Tcpdump</a></li>
+		    <li><a href="nmap.html">2.7.9. Nmap</a></li>
+		    <li><a href="wireless.html">2.7.10 Wireless</a></li>
+		</ul>
+	    </li>
+	    <li><a href="storage.html">2.4 Storage</a>
+		<ul>
+		    <li><a href="storage.html#fsck">1. Maintenance</a></li>
+		    <li><a href="storage.html#mv">2. Moving data</a></li>
+		    <li><a href="storage.html#resize">2. Resize</a></li>
+		</ul>
+	    </li>
+	    <li><a href="lvm.html">2.5. LVM</a>
+		<ul>
+		    <li><a href="lvm.html#lvmpart">1. LVM partition</a></li>
+		    <li><a href="lvm.html#pv">2. Create physical volume</a></li>
+		    <li><a href="lvm.html#vg">3. Create volume group</a></li>
+		    <li><a href="lvm.html#lv">4. Create logical volume</a></li>
+		    <li><a href="lvm.html#fsck">5. Maintenance</a></li>
+		</ul>
+	    </li>
+
         </ul>
 
         <a href="../index.html">Documentation Index</a>
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.
diff --git a/linux/package.html b/linux/package.html
index 4b68b6a..78069eb 100644
--- a/linux/package.html
+++ b/linux/package.html
@@ -2,13 +2,13 @@
 <html dir="ltr" lang="en">
     <head>
         <meta charset='utf-8'>
-        <title>2.3. Package Management</title>
+        <title>2.2. Package Management</title>
     </head>
     <body>
 
         <a href="index.html">GNU/Linux Index</a>
 
-        <h1>2.3. Package Management</h1>
+        <h1>2.2. Package Management</h1>
 
         <p>For more information read crux handbook Package management
         front-end:
@@ -57,7 +57,7 @@
         $ prt-get depinst prt-utils prt-get-bashcompletion
         </pre>
 
-        <h2 id="sysup">2.3.1. Update System</h2>
+        <h2 id="sysup">2.2.1. Update System</h2>
 
         <p>Before build software get latest version of port collections;</p>
 
@@ -87,7 +87,7 @@
         $ prt-get update -fr $(revdep)
         </pre>
 
-        <h2 id="depinst">2.3.2. Install port and dependencies</h2>
+        <h2 id="depinst">2.2.2. Install port and dependencies</h2>
 
         <p>Installing using prt-get tool;</p>
 
@@ -111,7 +111,7 @@
         <p>If you user pkgmk and pkgadd allways check if README, pre and post
         instal files exist.</p>
 
-        <h3 id="ports">2.3.3. Ports collections</h3>
+        <h3 id="ports">2.2.3. Ports collections</h3>
 
         <p>Clone this documentation;</p>
 
@@ -146,7 +146,7 @@
         $ sudo ports -u ports
         </pre>
 
-        <h2 id="info">2.3.4. Show port information</h2>
+        <h2 id="info">2.2.4. Show port information</h2>
 
         <pre>
         $ prt-get info port_name
@@ -164,13 +164,13 @@
         $ pkginfo -o filename
         </pre>
 
-        <h2 id="depends">2.3.5. Show port dependencies</h2>
+        <h2 id="depends">2.2.5. Show port dependencies</h2>
 
         <pre>
         $ prt-get depends port_name
         </pre>
 
-        <h2 id="printf">2.3.6. Print information</h2>
+        <h2 id="printf">2.2.6. Print information</h2>
 
         <p>Example how to get ports installed from contrib. Maybe there is
         a "cleaner" way to this, for now is ok;</p>
diff --git a/linux/tty-terminal.html b/linux/tty-terminal.html
index 77c7b9d..60a9f5d 100644
--- a/linux/tty-terminal.html
+++ b/linux/tty-terminal.html
@@ -2,13 +2,13 @@
 <html dir="ltr" lang="en">
     <head>
         <meta charset='utf-8'>
-        <title>2.4. Consoles, terminals and shells</title>
+        <title>2.3. Consoles, terminals and shells</title>
     </head>
     <body>
 
         <a href="index.html">GNU/Linux Index</a>
 
-        <h1>2.4. Consoles, terminals and shells</h1>
+        <h1>2.3. Consoles, terminals and shells</h1>
 
         <dl>
             <dt>Consoles</dt>
diff --git a/tools/index.html b/tools/index.html
index 1febb5e..991a1b5 100644
--- a/tools/index.html
+++ b/tools/index.html
@@ -69,55 +69,6 @@
 	    <li><a href="x.html">X</a></li>
 	</ul>
 
-	<h2>System Administration</h2>
-
-	<ul>
-	    <li><a href="network.html">Network Tools</a>
-		<ul>
-		    <li><a href="dnsmasq.html">Dnscrypt and Dnsmasq</a></li>
-		    <li><a href="tcpdump.html">Tcpdump</a></li>
-		    <li><a href="nmap.html">Nmap</a></li>
-		    <li><a href="wireless.html">Wireless</a></li>
-		</ul>
-	    </li>
-	    <li><a href="storage.html">Storage</a>
-		<ul>
-		    <li><a href="storage.html#fsck">1. Maintenance</a></li>
-		    <li><a href="storage.html#mv">2. Moving data</a></li>
-		    <li><a href="storage.html#resize">2. Resize</a></li>
-		</ul>
-	    </li>
-	    <li><a href="lvm.html">LVM</a>
-		<ul>
-		    <li><a href="lvm.html#lvmpart">1. LVM partition</a></li>
-		    <li><a href="lvm.html#pv">2. Create physical volume</a></li>
-		    <li><a href="lvm.html#vg">3. Create volume group</a></li>
-		    <li><a href="lvm.html#lv">4. Create logical volume</a></li>
-		    <li><a href="lvm.html#fsck">5. Maintenance</a></li>
-		</ul>
-	    </li>
-	    <li><a href="syslog-ng.html">Syslog-ng</a>
-		<ul>
-		    <li><a href="syslog-ng.html#install">Install syslog-ng</a></li>
-		    <li><a href="syslog-ng.html#configure">Configure syslog-ng</a></li>
-		    <li><a href="logrotate.html">Logrotate</a></li>
-		    <li><a href="logwatch.html">Logwatch</a>
-			<ul>
-			    <li><a href="logwatch.html#conf">Configure Logwatch</a></li>
-			    <li><a href="logwatch.html#cron">Set cron task</a></li>
-			</ul>
-		    </li>
-
-		</ul>
-	    </li>
-	    <li><a href="fail2ban.html">Fail2Ban</a>
-		<ul>
-		    <li><a href="fail2ban.html#conf">Configure Fail2ban</a></li>
-		</ul>
-	    </li>
-
-	</ul>
-
 	<h2>Network Services</h2>
 	<ul>
 	    <li><a href="qemu.html">Qemu</a>