Enabling Iptables modules in VPS

0
46

It is easy to enable iptables modules in VPS node.

Please follow these steps.

1 . Before enabling the modules to a VPS , make sure that its enabled in the root node of the VPS. You can check it using the command

Code:
	 lsmod | grep -i module_name

2. If its not enabled, then you can enable it using the modprobe command

Code:
 modprobe iptables_module

3. Stop the container which one you want to enable the module , for example the container is 101, and then run this command

Code:
 vzctl stop 101

4 . Executing the following command

Code:
 vzctl set 101 --iptables iptables_module --iptables iptables_module --save

5. Restart the container.

Code:
 vzctl restart 101

LEAVE A REPLY

Please enter your comment!
Please enter your name here