Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Setting up an iptables firewall

25 bytes added, 21:52, 13 July 2019
Moved link to HN definition at its first occurence, for anyone confused by the acronym
This document consists of two parts. The first is setting up a firewall (using iptables) on the [[HN]], which will restrict traffic to the containers. The effect would emulate, as far as the containers and their customers are concerned, an external hardware firewall controlled by the sysadmin. The second is setting up a firewall that protects the [[HN]] itself but still allows traffic to the containers, thus allowing individual containers to define their own iptables.
While the firewalls shown here can be accomplished using iptables manually (or using Fedora core's iptables service), the methods presented here are especially modular and easy to modify. This is important when you have 20+ containers and a lot of other things to be doing...
Above information is outdated, to enable iptables you need to make sure that CT.conf(CT - id of your container, 100 for example) contains following line: <pre>NETFILTER="full" line. </pre> When this done, you should reboot your container and iptables should work properly.
== See also ==
Anonymous user