I've got a clean install of Proxmox 4 with a newly created lxc container. I enabled the firewall for the datacenter and the node. I see the the expected rules when I run iptables-save.
Next, as a test, I enabled the container's firewall and added two rules, one to DROP POP3 and the other to REJECT IMAP. When I view the rules using iptables-save, no rules have been added for POP3 or IMAP. Also, pve-firewall simulate shows that the rules are not working.
What am I missing?
# cat 100.fw:
# cat cluster.fw:
# pve-firewall simulate -to ct100 -dport 143
# pve-firewall simulate -to ct100 -dport 110
Next, as a test, I enabled the container's firewall and added two rules, one to DROP POP3 and the other to REJECT IMAP. When I view the rules using iptables-save, no rules have been added for POP3 or IMAP. Also, pve-firewall simulate shows that the rules are not working.
What am I missing?
# cat 100.fw:
Code:
[OPTIONS]
enable: 1
[RULES]
IN POP3(DROP) -i net0
IN IMAP(REJECT) -i net0
# cat cluster.fw:
Code:
[OPTIONS]
enable: 1
# pve-firewall simulate -to ct100 -dport 143
Code:
Test packet:
from : outside
to : ct100
proto : tcp
dport : 143
ACTION: ACCEPT
# pve-firewall simulate -to ct100 -dport 110
Code:
Test packet:
from : outside
to : ct100
proto : tcp
dport : 110
ACTION: ACCEPT