Close

Not a member yet? Register now and get started.

Support Center » Knowledgebase » config iptable in order to start csf
 config iptable in order to start csf
Article  
In the host machine:

modprobe ipt_MASQUERADE
modprobe ipt_helper
modprobe ipt_REDIRECT
modprobe ipt_state
modprobe ipt_TCPMSS
modprobe ipt_LOG
modprobe ipt_TOS
modprobe tun
modprobe iptable_nat
modprobe ipt_length
modprobe ipt_tcpmss
modprobe iptable_mangle
modprobe ipt_limit
modprobe ipt_tos
modprobe iptable_filter
modprobe ipt_helper
modprobe ipt_tos
modprobe ipt_ttl
modprobe ipt_REJECT



Edit /etc/vz/vz.conf, and comment out the line starting with IPTABLES. Then, insert the following:

IPTABLES="ipt_REDIRECT ipt_owner ipt_recent iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_conntrack ipt_state ipt_helper iptable_nat ip_nat_ftp ip_nat_irc"

Be sure that the entire IPTABLES string is on a single line


In the node machine:

Edit /etc/sysconfig/iptables-config

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"

Be sure that the entire IPTABLES string is on a single line



restart the node machine

service iptables restart


Article Details
Article ID: 377
Created On: 26 Jul 2010 5:50 PM

 This answer was helpful  This answer was not helpful

 Login [Lost Password] 
E-mail:
Password:
Remember Me:
 
 Search
 Article Options