Updating VZ.CONF and restarting without rebooting VMs [message #45009] |
Fri, 20 January 2012 13:47 |
WizJames
Messages: 1 Registered: January 2012 Location: Boston
|
Junior Member |
|
|
I've added a few lines in vz.conf so a friend of mine can do masquerading with iptables. I belive in order to refresh /etc/vz/vz.conf I need to restart the vz service.
1.) Is there an alternative way to restart/update the vz.conf
2.) If there isn't.... How can I without effecting the current VM's loaded.
Thanks in advance.
|
|
|
|
Re: Updating VZ.CONF and restarting without rebooting VMs [message #45065 is a reply to message #45009] |
Wed, 25 January 2012 17:59 |
mustardman
Messages: 91 Registered: October 2009
|
Member |
|
|
If you are asking how to load those additional iptables kernel modules without restarting the node or the openvz service, that is very simple.
From a command line on the Node we can view the already loaded iptables kernel modules.
cat /proc/net/ip_tables_matches
udp
tcp
owner
state
.
.
.
Now load the new iptables kernel modules that you have added to /etc/sysconfig/iptables-config or to etc/vz/vz.conf. So, for example if we have added ipt_recent to either of those 2 config files then:
Now view loaded iptables kernel modules again and you will see the new module load.
cat /proc/net/ip_tables_matches
recent
udp
tcp
owner
state
.
.
.
This document explains the difference between those 2 config files.
http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/en/li n/VzLinuxUG/6167.htm
[Updated on: Wed, 25 January 2012 18:06] Report message to a moderator
|
|
|