OpenVZ Forum


Home » General » Support » AFP or CSF on vzID
AFP or CSF on vzID [message #21263] Wed, 03 October 2007 23:49 Go to next message
bryan is currently offline  bryan
Messages: 2
Registered: October 2007
Junior Member
Hello,

Please let me know how to install

AFP or CSF on vzID i tried it but it just cut the connection

form vzid.

I changed the interface in conf files to venet0

and KERNEL to Monoletic 0 to 1 in conf files. but still no use.

am i missing anything else.

~ Abhay
Re: AFP or CSF on vzID [message #21265 is a reply to message #21263] Thu, 04 October 2007 02:21 Go to previous messageGo to next message
tomfra is currently offline  tomfra
Messages: 28
Registered: September 2007
Junior Member
This may or may not help, but take a look at:

http://forum.lxlabs.com/index.php?t=msg&goto=13353#msg_1 3353

I don't have enough info to be able to say you are experiencing the same problem but it seems to be a common one.

Tomas


Do you really believe the Internet is a safe place?
IdentityCloaker.com - Take Back Your Privacy!
Re: AFP or CSF on vzID [message #21315 is a reply to message #21263] Fri, 05 October 2007 03:02 Go to previous messageGo to next message
bryan is currently offline  bryan
Messages: 2
Registered: October 2007
Junior Member
Hello,

Yeepee, this helped me to install CSF successfully on my vps

soluation is:

edit /etc/sysconfig/iptables and add

-A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
-A FORWARD -j ACCEPT -p all -s 0/0 -o venet0

-A INPUT -i venet0 -j ACCEPT
-A OUTPUT -o venet0 -j ACCEPT

create file /etc/csf/csfpre.sh and enter all the extra rules directly into it prefixed with "iptables" so the contents of that file should look something like:


iptables -A INPUT -i venet0 -j ACCEPT
iptables -A OUTPUT -o venet0 -j ACCEPT
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -o venet0

edit /etc/csf/csf.conf file and add
and search for
ETH_DEVICE = "" change to ETH_DEVICE = "venet+"

and other standar setting of csf.

then restart the csf.

thats all

Thankz of Bunch to all

~ Bryan
Re: AFP or CSF on vzID [message #21332 is a reply to message #21263] Fri, 05 October 2007 10:18 Go to previous messageGo to next message
tomfra is currently offline  tomfra
Messages: 28
Registered: September 2007
Junior Member
There seems to be some kind of bug that you may experience during CSF upgrade. For some reason it can't find the "iptables" command in the standard PATH so it's necessary to use full paths to iptables in the csfpre.sh file.

In other words, instead of:

iptables -A INPUT -i venet0 -j ACCEPT
iptables -A OUTPUT -o venet0 -j ACCEPT
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -o venet0

put there something like this:

/sbin/iptables -A INPUT -i venet0 -j ACCEPT
/sbin/iptables -A OUTPUT -o venet0 -j ACCEPT
/sbin/iptables -A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
/sbin/iptables -A FORWARD -j ACCEPT -p all -s 0/0 -o venet0

And of course, change the path if you have iptables elsewhere although I believe it should normally be indeed in /sbin .

If the CSF upgrade process can't find the iptables command, the csfpre.sh contents will be ignored which in turn means the traffic from venet0 will be blocked. This is a big problem if you have automatic CSF updates enabled because it will not send you a warning email. Instead, it will simply cut off all the VPSes silently...

Tomas


Do you really believe the Internet is a safe place?
IdentityCloaker.com - Take Back Your Privacy!
Re: AFP or CSF on vzID [message #25406 is a reply to message #21263] Sun, 23 December 2007 02:50 Go to previous messageGo to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
NICE WORK

[Updated on: Mon, 24 December 2007 16:19]

Report message to a moderator

Re: AFP or CSF on vzID [message #28843 is a reply to message #21332] Sun, 30 March 2008 15:44 Go to previous messageGo to next message
jasbor is currently offline  jasbor
Messages: 2
Registered: March 2008
Junior Member
Did you do this on the hardware node or from within the VE?
I tried from within the ve, and still getting an error.


www.webresellers.net
Re: AFP or CSF on vzID [message #28848 is a reply to message #28843] Sun, 30 March 2008 21:54 Go to previous messageGo to next message
tomfra is currently offline  tomfra
Messages: 28
Registered: September 2007
Junior Member
jasbor wrote on Sun, 30 March 2008 17:44

Did you do this on the hardware node or from within the VE?
I tried from within the ve, and still getting an error.


You need to do this on the hardware node.

Tomas


Do you really believe the Internet is a safe place?
IdentityCloaker.com - Take Back Your Privacy!
Re: AFP or CSF on vzID [message #28849 is a reply to message #28848] Sun, 30 March 2008 23:11 Go to previous messageGo to next message
jasbor is currently offline  jasbor
Messages: 2
Registered: March 2008
Junior Member
I guess I am just having a different issue....
I am trying to install CSF on a VE running cpanel, and I am getting:

iptables: Unknown error 4294967295
LOG tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 limit: avg 30/min burst 5 LOG flags 0 level 4 prefix `Firewall: *TCP_IN Blocked* '
Error: iptables command [/sbin/iptables -v -A LOGDROPIN -p tcp -m limit --limit 30/m --limit-burst 5 -j LOG --log-prefix 'Firewall: *TCP_IN Blocked* '] failed, at line 204

any suggestions?


www.webresellers.net
Re: AFP or CSF on vzID [message #34067 is a reply to message #21263] Sat, 29 November 2008 09:15 Go to previous messageGo to next message
ittec is currently offline  ittec
Messages: 41
Registered: February 2008
Member
Quote:

I guess I am just having a different issue....
I am trying to install CSF on a VE running cpanel, and I am getting:

iptables: Unknown error 4294967295
LOG tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 limit: avg 30/min burst 5 LOG flags 0 level 4 prefix `Firewall: *TCP_IN Blocked* '
Error: iptables command [/sbin/iptables -v -A LOGDROPIN -p tcp -m limit --limit 30/m --limit-burst 5 -j LOG --log-prefix 'Firewall: *TCP_IN Blocked* '] failed, at line 204

any suggestions?


Hi im getting exactly same error. I tried to install CSF on VE too. But after read thread I think that guys do is install CSF on Hardware Node, not in VE. But I dont know if Im wrong and there is a way to do it.

This is interesting because, in my case, I have a VE running with Plesk CP and Plesk have a Firewall mode. (So what happens with firewall mode or iptables inside VE?)

So the question maybe is, if we are running VE is better to install CSF or whatever on HN or do the install in VE level?

Thanks!
Re: AFP or CSF on vzID [message #34068 is a reply to message #21263] Sat, 29 November 2008 16:25 Go to previous message
tomfra is currently offline  tomfra
Messages: 28
Registered: September 2007
Junior Member
It surely is possible to install CSF on an OpenVZ VE. I have done this many times, both in a cPanel VPS as well as a non-cPanel one. You can, and in my opinion should, install CSF on the hardware node too.

Cannot say much about the error you are experiencing, I have never seen it.

Tomas


Do you really believe the Internet is a safe place?
IdentityCloaker.com - Take Back Your Privacy!
Previous Topic: USB printer inside VE
Next Topic: Wrong quota
Goto Forum:
  


Current Time: Thu Nov 07 22:21:11 GMT 2024

Total time taken to generate the page: 0.04057 seconds