block an outgoing port on a vm

tincboy

Renowned Member
Apr 13, 2010
466
6
83
I need to block an outgoing port of xxxx from one of my VMs (KVM one),
Any experience on this job?
 
In proxmox 1.9, I simply add a drop rule in forward table and it was fine, But in Proxmox 2 no success with this trend.
 
I've test it on many servers and it seems the issue will be gone if you enable these options in /etc/sysctl.d/pve.conf
Code:
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 1
and then restart the service below:
Code:
sysctl -p
/etc/init.d/procps restart