It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
Howdy, Stranger!
It looks like you've been lurking for a while.
If you register, we also will remember what you have read and notify you about new comments. You will also be able to participate in discussions.
So if you'd like to get involved, register for an account, it'll only take you a minute!
iptables -A INPUT -s xx.xx.xx.xx -j DROP
How do you block an IP from a specific port?iptables -A INPUT -p tcp -s xx.xx.xx.xx --dport PORT -j DROP
iptables -A INPUT -s xx.xx.xx.xx -j ACCEPT
How do you allow access to an IP to a specific port using iptables?iptables -A INPUT -p tcp -s xx.xx.xx.xx --dport PORT -j ACCEPT
(Again, xx.xx.xx.xx is the remote IP address and PORT is the port number you wish to allow/deny access to.)iptables -I INPUT -p tcp --dport 80 -m string --algo bm \
--string 'GET /blablabla.at.ISC.SANS.' -j DROP
More information can be found in our article about the most common iptables rules: