block an outgoing port on a vm

tincboy

Renowned Member
Apr 13, 2010
466
4
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!