Tearing my hair out with this one!
To check that Iptables is actually installed, on my Centos 5 VPS, I run this, and it looks like it is:
Code:
rpm -q iptables
iptables-1.3.5-9.1.el5
To check if iptables is actually running, I run the following, but get an error:
Code:
lsmod | grep ip_tables
Opening /proc/modules: No such file or directory
And quite correctly, there isn't a "/proc/modules" folder. Am I running the wrong command?
To add the modules to iptables, I added the following entry to my /etc/sysconfig/iptables-config and rebooted the server:
Code:
IPTABLES_MODULES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp ip_conntrack_ftp ipt_conntrack ip_tables ip_conntrack_netbios_ns"
It doesn't seem to have worked. What is the correct way to add modules to Iptables?