DNAT VM traffic

tinduong1337

Member
Nov 26, 2022
12
0
6
Hello,

I'm trying to NAT traffic from VMs with specific destination to the Proxmox host, for example, any traffic from VMs to 123.123.123.123:80 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.