modules and modualrity oh my
This commit is contained in:
10
Modules/Security/secharden-2fa.sh
Normal file
10
Modules/Security/secharden-2fa.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
#secharden-2fa
|
||||
#Coming very soon, 2fa for webmin/cockpit/ssh
|
||||
#libpam-google-authenticator
|
||||
|
||||
#https://www.ogselfhosting.com/index.php/2024/03/21/enabling-2fa-for-cockpit/
|
||||
#https://webmin.com/docs/modules/webmin-configuration/#two-factor-authentication
|
||||
#https://www.digitalocean.com/community/tutorials/how-to-set-up-multi-factor-authentication-for-ssh-on-ubuntu-18-04
|
1
Modules/Security/secharden-audit-agents.sh
Normal file
1
Modules/Security/secharden-audit-agents.sh
Normal file
@@ -0,0 +1 @@
|
||||
#!/bin/bash
|
1
Modules/Security/secharden-auto-upgrade.sh
Normal file
1
Modules/Security/secharden-auto-upgrade.sh
Normal file
@@ -0,0 +1 @@
|
||||
#!/bin/bash
|
1
Modules/Security/secharden-scap-stig.sh
Normal file
1
Modules/Security/secharden-scap-stig.sh
Normal file
@@ -0,0 +1 @@
|
||||
#!/bin/bash
|
9
Modules/Security/secharden-ssh.sh
Normal file
9
Modules/Security/secharden-ssh.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
iptables -I INPUT -p tcp --dport 22 -m state --state NEW -m recent --set
|
||||
iptables -I INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 10 --hitcount 10 -j DROP
|
||||
ip6tables -I INPUT -p tcp --dport 22 -m state --state NEW -m recent --set
|
||||
ip6tables -I INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 10 --hitcount 10 -j DROP
|
||||
|
||||
service netfilter-persistent save
|
||||
|
Reference in New Issue
Block a user