Wiki‎ > ‎

IP address lookup and block

posted Nov 27, 2018, 3:40 PM by Dong Xu   [ updated Dec 3, 2018, 1:34 PM ]
To get country and domain info from IP:

geoiplookup IP_address
host IP_address/domain_name
dig
whois

sudo iptables -I INPUT -s x.x.x.x/32 -j DROP 
This will put the drop at the start of the INPUT chain.
Comments