1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-21 03:02:09 +00:00

polished, more finalized, from now on minor features added (lists, new countries), but the foundation I believe is complete

This commit is contained in:
ChiefGyk 2016-06-29 21:37:56 -04:00
parent 6ee8852a67
commit 88365d43ac

View File

@ -13,8 +13,10 @@ if [[ $EUID -ne 0 ]]; then
echo echo
exit exit
fi fi
echo iptables-persistent iptables-persistent/autosave_v4 boolean false | debconf-set-selections
echo iptables-persistent iptables-persistent/autosave_v6 boolean false | debconf-set-selections
apt-get update apt-get update
apt-get install -y ipset dialog apt-get install -y ipset dialog iptables-persistent
cp conf/iptables-persistent /etc/init.d/iptables-persistent cp conf/iptables-persistent /etc/init.d/iptables-persistent
ipset create blacklist hash:net ipset create blacklist hash:net
iptables -I INPUT -m set --match-set blacklist src -j DROP iptables -I INPUT -m set --match-set blacklist src -j DROP