Portal Home > Knowledgebase > Articles Database > Firewall on the hypervm


Firewall on the hypervm




Posted by persianwhois, 05-16-2009, 02:48 AM
I installed CSF on my hypervm node. Its installed and work correctly. But when i block a port, for example "80" i see "80" blocked to all vps too! Where is issue and how can fix this problem?

Posted by DigitalLinx, 05-16-2009, 02:56 AM
Add in /etc/csf/csfpre.sh then restart csf

Posted by persianwhois, 05-16-2009, 03:26 AM
Thank you verymuch. I have only followinf files in /etc/csf

Posted by persianwhois, 05-16-2009, 03:34 AM
also wich interface must be set on following config? # By default, csf will auto-configure iptables to filter all traffic except on # the local (lo device. If you only want iptables rules applied to a specific # NIC, then list it here (e.g. eth1, or eth+) ETH_DEVICE = "" # If you don't want iptables rules applied to specific NICs, then list them in # a comma separated list (e.g "eth1,eth2") ETH_DEVICE_SKIP = "" Thanks for your help.

Posted by DigitalLinx, 05-16-2009, 03:35 AM
etc/csf/csfpre.sh is executed before all the other iptables statements when csf is started, by default the file is not created.

Posted by persianwhois, 05-16-2009, 04:07 AM
Im created "/etc/csf/csfpre.sh" and put above iptables command on it. Then i restarted csf, everything is ok. But, im blocked port "80" on main node for test. But its can be see and is not blocked!



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
oracle question (Views: 516)
[CSS] Bottom? (Views: 454)