05.08.2013 Views

[PDF] Parallels Server 5 Bare Metal

[PDF] Parallels Server 5 Bare Metal

[PDF] Parallels Server 5 Bare Metal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Tasks<br />

Loading iptables Modules to Containers<br />

The list of iptables modules that are loaded to a Container by default is determined by the<br />

iptables modules loaded on the server at the moment of the Container startup. For example, if<br />

your server has the ipt_REJECT, ipt_tos, ipt_limit, ipt_multiport, and<br />

iptable_filter modules loaded, any Containers on this server will also have these iptables<br />

modules loaded after their startup.<br />

However, <strong>Parallels</strong> <strong>Server</strong> <strong>Bare</strong> <strong>Metal</strong> allows you to prevent certain modules from being loaded<br />

inside a Container on its startup, even if they are loaded on the server itself. The full list of such<br />

iptables modules is listed below:<br />

• ip_table<br />

• ip6_table<br />

• iptable_filter<br />

• ip6table_filter<br />

• iptable_mangle<br />

• ip6table_mangle<br />

• ip_conntrack<br />

• ip_conntrack_ftp<br />

• ip_conntrack_irc<br />

• iptable_nat<br />

• ip_nat_ftp<br />

• ip_nat_irc<br />

To forbid the usage of any of the aforementioned iptables modules inside a Container, you<br />

should explicitly indicate the names of the modules you wish to be loaded to the Container as the<br />

value of the IPTABLES parameter in the Container configuration file<br />

(/etc/vz/conf/.conf) or by using the pctl command. For example:<br />

# pctl set 101 --iptables ip_table --iptables iptable_filter --iptables ip_conntrack -iptables<br />

iptable_nat --iptables iptable_mangle --save<br />

This command will tell <strong>Parallels</strong> <strong>Server</strong> <strong>Bare</strong> <strong>Metal</strong> to:<br />

• load the ip_table, iptable_filter, ip_conntrack, iptable_nat, and<br />

iptable_mangle modules to Container 101 if they are loaded on the server during the<br />

Container startup<br />

• forbid the usage of all the other iptables modules listed above (i.e. ip6_table,<br />

ip6table_filter, ip6table_mangle, ip_conntrack_ftp, ip_conntrack_irc,<br />

ip_nat_ftp, ip_nat_irc) inside Container 101 even if they are loaded on the server during<br />

the Container startup<br />

234

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!