DNAT VM traffic


New Member
Nov 26, 2022

I'm trying to NAT traffic from VMs with specific destination to the Proxmox host, for example, any traffic from VMs to will be routed and handled by a service running within Proxmox host. I tried wrangling with iptables but didn't make it work.

Anyone have any idea what is the iptables rules that help accomplish this?
So I made it work. I needed to use ebtables to spoof gateway MAC on VMs, so that the traffic will go through Proxmox host first instead of go straight to the router.


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!