With IPTABLES, Is it possible to DROP all network INPUT based on the host or the IP requested?
I want my server reject all incoming transmission if it is the IP who is called E.G.:
The bonus will be it accept only based on the /etc/hosts for its IP…
I know it is possible for HTTP and HTTPS with rules like this:
iptables -I INPUT -p tcp --dport 80 -m string --to 700 --algo bm --string 'Host: 192.168.0.10' -j DROP iptables -I INPUT -p tcp --dport 443 -m string --to 700 --algo bm --string 'Host: 192.168.0.10' -j DROP
and I'm sure it's possible for other protocols, but I don't find how for the moment…
Thanks in advance for your help.