Thanks C!
descarte's blog is awesome...I will spend more time reading it.
I think I just answered my own question. You cannot use the GUI Firewall tool and the iptables command at the same time because it conflicts. I tested the sshd by enabling it in the GUI Firewall by checking the SSH Service. Then I used the command iptables -t filter -A INPUT -s 192.168.0.25 -p tcp --dport 22 -j REJECT. The sshd is still accepting the ssh connection from the machine 192.168.0.25
I get the message "ssh: connect to host 192.168.0.15 port 22: no route to host" after disabling it from the Firewall GUI and then using only the iptables command.
Is that the correct message I should be getting with the REJECT action from iptables?
Also, after entering the iptables command, do I need to do service iptables restart? Because I am doing a service iptables save, and then the service iptables restart command. I heard that you have to use the save function in order to make the iptables changes persistent.
|