Commit 024f9c50 authored by Ivan's avatar Ivan
Browse files

Updating iptables

parent ab33eb02
......@@ -50,7 +50,7 @@ cd $HOME/xtables-addons-3.3/geoip
./xt_geoip_build -S GeoLite2-Country-* -D /usr/share/xt_geoip/LE
echo "Setting up Iptables rules..."
iptables -P INPUT ACCEPT
iptables -I INPUT -j ACCEPT
while read in;
do iptables -I INPUT -m geoip --src-cc $in -p tcp -m tcp -m multiport --dports 80,443 -j DROP;
done < /$HOME/countries.txt
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment