amplatfus
Senior Member
Hi,
I am looking for port 21 brute force iptables protection.
I have until now:
Please confirm me. I am on right path? What should I change?
PS: I have activated the FTP access from webgui. I do not know if I should delete first line from the code.
Thank you!
I am looking for port 21 brute force iptables protection.
I have until now:
Code:
iptables -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
iptables -I FORWARD -p tcp --dport 21 -m state --state NEW -m limit --limit 3/min -j ACCEPT
iptables -I FORWARD -p tcp --dport 21 -m state --state RELATED,ESTABLISHED -j ACCEPT
PS: I have activated the FTP access from webgui. I do not know if I should delete first line from the code.
Thank you!