iptables not blocking ssh attempts
Logcheck keeps warning me about ssh unauthorised connection attempts from a particular IP address, so, to cut down the noise, I put in an iptables rule to block it.
Code:
# iptables -s iptables -A INPUT -s 94.31.197.10 -j DROP Thanks for any help. |
iptables
The DROP is after the
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh so the accept rule applies first and the Drop never gets applied yes You really need to insert the before the accept and you need to edit the iptables file so that it is permenant for example I think this is closer to what you want [CODE]# iptables -s iptables -I INPUT 1 -s 94.31.197.10 -j DROP Quote:
|
All times are GMT -5. The time now is 10:02 PM. |