Report this

What is the reason for this report?

iptables question

Posted on 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 91.207.6.154 -j DROP</pre> it shows in iptables as <pre> DROP all – 154.6.207.91.unknown.SteepHost.Net 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



This textbox defaults to using Markdown to format your 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 91.207.6.154 -j DROP</pre> <br>Re-add it: <br><pre>iptables -I INPUT -s 91.207.6.154 -j DROP</pre>

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.