Issue : while adding an iptable rule on the server i got the following error
[root@cape /]#iptables -A input -p tcp –dport 26 -j ACCEPT
iptables: No chain/target/match by that name
Solution :
1. Open the file /etc/sysconfig/iptables-config in the server
i.e: vi /etc/sysconfig/iptables-config
check for the entry IPTABLES_MODULES
It should bee seen like IPTABLES_MODULES=””
It means iptabel modules are not compiled to the server.
2. Now go to vpsnode and check the modules are available or not using lsmod command
lsmod | grep ipt
If it shows the modules do the following steps.
3.Open the file /etc/sysconfig/iptables-config in the node and check the entry IPTABLES_MODULES
it will shows like
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 ipt_owner ipt_REDIRECT”
4. Now copy it from the node and paste in to the file /etc/sysconfig/iptables-config of the server.
5. Restart iptables of the server after saving it.
That’s all………!!!!!!!
Recent Comments