Skip to content

Latest commit

 

History

History
29 lines (14 loc) · 703 Bytes

README.md

File metadata and controls

29 lines (14 loc) · 703 Bytes

"# blacklist"

simple internet blocker based on linux firewall iptables and ipset

a)install on linux gate :

  1. apt-get update ; apt-get install ipset iptables ... etc

  2. copy files to /etc/blacklist

  3. chmod +x /etc/blacklist/block.sh

  4. write /etc/blacklist/block.sh to end of your /etc/init.d/firewall

  5. restart your firewall (simple way by "/etc/init.d/firewall restart")

  6. done

b) use :

  1. modify /etc/blacklist/listdomains.txt(add domain one domain to one string)

  2. restart your firewall

c) how it works

  1. 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)