From 6ec55970fe70ad6306c768fe4a07acef50cec555 Mon Sep 17 00:00:00 2001
From: Silvino Silva Just to be sure, setup bash as default login;
@@ -32,7 +32,7 @@
alias, editor.
- Example of ~/.profile; Example of ~/.bashrc; Example of ~/.bash_profile; By default dash installed as /bin/sh, if not relink; To start fail2ban at next boot edit /etc/rc.conf and add fail2ban.
+ Fail2ban will verify if /etc/fail2ban/jail.local exist, if exist will
+ use it. Copy distribution jail.conf to jail.locol; Edit /etc/fail2ban/jail.local, example configuration; Test a filter
+ This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
+ See the file Gnu Free Documentation License for copying conditions. Operation of the network can be handle with init scripts or with
network manager;2.5.2. Bash
+ 2.3.2. Bash
2.5.2.1. Profile
+ 2.3.2.1. Profile
2.5.2.2. Bash RC
+ 2.3.2.2. Bash RC
2.5.2.3. Bash profile
+ 2.3.2.3. Bash profile
2.5.1. Dash
+ 2.3.1. Dash
Fail2ban
+
+
+ $ prt-get depinst fail2ban
+
+
+ 1. Configure
+
+
+ $ sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
+
+
+
+ [ssh-iptables]
+
+ enabled = enable
+ filter = sshd
+ action = iptables[name=SSH, port=ssh, protocol=tcp]
+ sendmail-whois[name=SSH, dest=admin@box, sender=fail2ban@box, sendername="fail2ban"]
+ logpath = /var/log/auth
+ maxretry = 5
+
+
+
+ # fail2ban-regex /var/log/iptables iptables-ssh.conf
+
+
+ Tools Index
+
+
-
+
+
Documentation Index
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 @@
-
+
+ 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. 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 @@
-For more information read crux handbook Package management front-end: @@ -57,7 +57,7 @@ $ prt-get depinst prt-utils prt-get-bashcompletion -
Before build software get latest version of port collections;
@@ -87,7 +87,7 @@ $ prt-get update -fr $(revdep) -Installing using prt-get tool;
@@ -111,7 +111,7 @@If you user pkgmk and pkgadd allways check if README, pre and post instal files exist.
-Clone this documentation;
@@ -146,7 +146,7 @@ $ sudo ports -u ports -$ prt-get info port_name @@ -164,13 +164,13 @@ $ pkginfo -o filename-
$ prt-get depends port_name-
Example how to get ports installed from contrib. Maybe there is a "cleaner" way to this, for now is ok;
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 @@ -