mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
polished and finalized, removed two last lines in blocklist.sh. They were redundant.
This commit is contained in:
parent
d27cb57d0c
commit
2bdae89d24
@ -2,11 +2,11 @@
|
|||||||
# Add Blocklist.de malicious IP Addresses to Daily Crontab
|
# Add Blocklist.de malicious IP Addresses to Daily Crontab
|
||||||
# Also IPtables-persistent to save IP addresses upon reboot
|
# Also IPtables-persistent to save IP addresses upon reboot
|
||||||
# Added by Alon "ChiefGyk" Ganon
|
# Added by Alon "ChiefGyk" Ganon
|
||||||
|
# alonganon.info
|
||||||
|
# alon@ganon.me
|
||||||
cp conf/blocklist/sync-fail2ban /etc/cron.daily/sync-fail2ban
|
cp conf/blocklist/sync-fail2ban /etc/cron.daily/sync-fail2ban
|
||||||
chmod a+x /etc/cron.daily/sync-fail2ban
|
chmod a+x /etc/cron.daily/sync-fail2ban
|
||||||
time /etc/cron.daily/sync-fail2ban
|
time /etc/cron.daily/sync-fail2ban
|
||||||
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
|
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
|
||||||
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
|
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
|
||||||
apt_install iptables-persistent
|
apt_install iptables-persistent
|
||||||
iptables-save > /etc/iptables/rules.v4
|
|
||||||
ip6tables-save > /etc/iptables/rules.v6
|
|
Loading…
Reference in New Issue
Block a user