OpenVZ Forum

Today's Messages (on)  | Unanswered Messages (off)

Forum: Support
 Topic: Can you use "ipset" with OpenVZ 7 / Virtuozzo 7?
Re: Can you use "ipset" with OpenVZ 7 / Virtuozzo 7? [message #53549 is a reply to message #53544] Mon, 17 June 2019 07:18
HHawk is currently offline  HHawk
Messages: 17
Registered: September 2017
Location: Europe
Junior Member
From: *
Thank you websavers for the reply. Smile

I do have one more question. I am planning to use on our bigger Plesk servers (which will be migrated from OpenVZ 6 to OpenVZ 7 before doing so ofcourse) Juggernaut Security and Firewall.
Now they state that OpenVZ 6 is not working correctly with it. I quote: "Virtuozzo is not the ideal VPS because it does not support ipset for high performance firewall blocking."

However this was based on OpenVZ 6. So it shouldn't apply to OpenVZ 7. Correct?

Furthermore; according to the (old) OpenVZ wiki and I quote: "Also, large numiptent cause considerable slowdown of processing of network packets. It is not recommended to allow containers to create more than 200300 numiptent."

Is it safe to increase the value to 10000 as stated here: onfig-tasks

Thanks in advance.

//edit 1: I just installed the Juggernaut firewall with 10000 numiptent, but the firewall crashes as it already hit the 10000 entries. So I am going to increase it to 100000 instead. This is a test server, but I am still wondering if this is allowed or not?

//edit 2: Okay, a small edit. Apparently with 3 block lists and 3 countries blocked (including China) it required 12629 numiptent setting. So I am guessing a value around 25000 for numiptent should be enough for servers. But is this a safe value with OpenVZ 7? I cannot seem any real information about this setting or modern values. So I am hoping someone can explain this a bit more.

[Updated on: Mon, 17 June 2019 08:11]

Report message to a moderator

Re: Can you use "ipset" with OpenVZ 7 / Virtuozzo 7? [message #53550 is a reply to message #53549] Mon, 17 June 2019 11:18
websavers is currently offline  websavers
Messages: 26
Registered: March 2018
Location: Halifax, NS
Junior Member
From: 199.229.249*
Hey HHawk,

I haven't specifically used Juggernaught before, but I have used a few other firewall solutions and, as long as NETFILTER=full is enabled on the container, they've all worked great.

Even with vz7 I *have* seen slowdowns when too many containers have too many standard iptables rules per node, however I haven't analyzed it in any great detail. This is the big advantage of ipset; you can use that to set up huge chains of rules without any such slowdowns. Hopefully juggernaught uses it too?

I generally try to keep my numiptent to under 5000 per container. I *think* when I ran into trouble it was around 20000 rules across all containers on a node. I'd suggest that juggernaught start using ipset instead. If that's not likely to happen, could always check out csf -- it uses ipset.

Current Time: Mon Jun 17 16:42:56 GMT 2019