From: Richard P. <pe...@pe...> - 2012-08-05 06:08:57
|
The current iptables config docs say to type these two commands: iptables -N sshguard iptables -A INPUT -j sshguard I attempted this and it added it perfectly to the iptables.. Only problem is I am using fedora 16 and configured the firewall with system-config-firewall and the above didn't work for me... it blocked addresses but after the allow rules another huge problem is I do not understand iptables. :) I fixed my problem by changing the line "iptables -A INPUT -j sshguard" to "/sbin/iptables -I INPUT 1 -j sshguard" which inserted the deny rules as the very first item in the list. Which is fine for me, but maybe its an issue... Fedora 16 started using Systemd and in order to save your iptables config you use this: "iptables-save > /etc/sysconfig/iptables" otherwise you get an error... Anyway, thank you! |