iptables question

  • Posted December 29, 2013

I have noticed a bot trying a brute force on one of my CMS’s.

When I try to add the IP address with <pre>iptables -A INPUT -s -j DROP</pre> it shows in iptables as <pre> DROP all – anywhere</pre> and the ip is still able to connect to the server. Am I doing something wrong with adding the IP? Can I add the IP and not have the host for that IP show in iptables? Maybe that has something to do with it.

Thank you


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Try adding it to the top of the chain: <br> <br>Delete the old rule: <br><pre>iptables -D INPUT -s -j DROP</pre> <br>Re-add it: <br><pre>iptables -I INPUT -s -j DROP</pre>

Yep that worked. Had a brain fart there for a second. <br> <br>Thank you