Skip to content

abitfan/xtblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

xtblock

Use iptables and ipset to block XT nodes

Install ipset:

	apt-get install ipset

Clone this repository:

	git clone https://github.com/abitfan/xtblock 

Create an ipset blacklist:

	ipset create xtblock hash:net

Add iptables drop rule:

	iptables -I INPUT -m set --match-set xtblock src -j DROP

Fetch list of XT nodes:

	./fetchxtnodes.py > /tmp/xtnodes.txt

Add nodes to blacklist:

	./reloadipset < /tmp/xtnodes.txt

Add to cron:

	5 6 * * * /path/to/fetchxtnodes.py > /tmp/xtnodes.txt && /path/to/reloadipset < /tmp/xtnodes.txt

About

Use iptables to block XT nodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published