Thomas Sapp wrote:
Edit /etc/sysconfig/iptables and insert your "-s 204.99.118.0/24" into the ssh rule there, then duplicate it and change the port number for each of your desired tcp services.Can anyone help me with what I am doing wrong? How do I add the ACCEPT and the state? I have tried --state but it keeps telling me that it is an incorrect option.
Notice that the magic is to put "-m state" before "--state..."
Also if you are running an ftp server you may need to edit /etc/sysconfig/iptables-config to load the ip_nat_ftp module.
-- ----------------------------------------------------------- "Spend less! Do more! Go Open Source..." -- Dirigo.net Chris Johnson, RHCE #807000448202021