"# blacklist"
simple internet blocker based on linux firewall iptables and ipset
a)install on linux gate :
-
apt-get update ; apt-get install ipset iptables ... etc
-
copy files to /etc/blacklist
-
write /etc/blacklist/block.sh to end of your /etc/init.d/firewall
-
restart your firewall (simple way by "/etc/init.d/firewall restart")
-
done
b) use :
-
modify /etc/blacklist/listdomains.txt(add domain one domain to one string)
-
restart your firewall
c) how it works
- dig your domains from /etc/blacklist/listdomains.txt, collect ip to /etc/blacklist/listip.txt, block it, add whitelist local ip in block.sh(today it 192.168.0.11 use own)