虚拟化容器,大数据,DBA,中间件,监控。

Proxmox using iptables in openvz guests

21 12月
作者:admin|分类:容器虚拟化

Proxmox using iptables in openvz guests

I recently upgraded Proxmox and noticed iptables was not working in the guests.

Turns out a small edit is required to /etc/vz/vz.conf (we need to add some more modules to be used in the openvz guests).

Using any editor, open /etc/vz/vz.conf and change and find the “IPTABLES=” line

Change:

IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"

To:

IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"

Then reboot (you can probably just re-start your guests).

浏览2044 评论0
返回
目录
返回
首页
OpenVZ 运用iptables防火墙支持 OPENVZ 配置IPtables Setting up an iptables firewall