mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
fixes
This commit is contained in:
parent
b66ab07ea0
commit
84040e56f8
@ -1,13 +1,12 @@
|
|||||||
# I found this script somewhere a long time ago and modified it
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
IPTABLES=/sbin/iptables
|
IPTABLES=/sbin/iptables
|
||||||
URL=http://feeds.dshield.org/block.txt
|
URL=http://feeds.dshield.org/block.txt
|
||||||
FILE=/tmp/dshield_block.text
|
FILE=/tmp/dshield_block.text
|
||||||
CHAIN=dshield
|
CHAIN=dshield
|
||||||
|
|
||||||
IP_TMP=/tmp/ip.tmp
|
IP_TMP=/tmp/ip.tmp
|
||||||
IP_BLACKLIST=/etc/ip-blacklist.conf
|
IP_BLACKLIST=/etc/ip-blacklist.conf
|
||||||
IP_BLACKLIST_TMP=/tmp/ip-blacklist.tmp
|
IP_BLACKLIST_TMP=/tmp/ip-blacklist.tmp
|
||||||
IP_BLACKLIST_CUSTOM=/etc/ip-blacklist-custom.conf # optional
|
|
||||||
BLACKLISTS=(
|
BLACKLISTS=(
|
||||||
# Project Honey Pot Directory of Dictionary Attacker IPs
|
# Project Honey Pot Directory of Dictionary Attacker IPs
|
||||||
"http://www.projecthoneypot.org/list_of_ips.php?t=d&rss=1"
|
"http://www.projecthoneypot.org/list_of_ips.php?t=d&rss=1"
|
||||||
@ -104,5 +103,4 @@ echo "Done!"
|
|||||||
unlink $FILE
|
unlink $FILE
|
||||||
|
|
||||||
# Persistence
|
# Persistence
|
||||||
ipset save > /etc/ipset.up.rules
|
invoke-rc.d iptables-persistent save
|
||||||
iptables-save > /etc/iptables.up.rules
|
|
Loading…
Reference in New Issue
Block a user