Proxmox VMs behind VPN through virtual router (OpenWrt)

no-reply

New Member
Aug 2, 2022
1
0
1
Hello, so as the title says, I want to put a few of my proxmox vms behind VPN, so they don't get internet access without vpn.
I had a similar setup running in the past with an actual openwrt router behind my isp router.

Since I'm already used to openwrt i set up a vm with openwrt and connected to my vpn service (set up VPN and interface, created a firewall rule that only vpn connections are possible)
My question is now: how can I set up a network adapter/bridge in proxmox which uses the vpn connection of my openwrt vm, so I an connect my vms to this network adapter/to the virtual openwrt router?

I'm quite new to proxmox, I understand that pfsense is much more powerful, but since I am familiar with openwrt it would be much easier for me to get it working this way.

Thank you in advance
 
You can create a second bridge that is connected to no physical NIC (so it acts like a virtual switch). Then attach the virtual NICs of your VMs to that new bridge and attach a virtual NIC of your OpenWRT VM to that bridge to to work as a gateway. Best would be to also use your OpenWRT VM as the firewall/router/gateway/DHCP/DNS server for those other VMs. On your vmbr0 you then connect the virtual NIC of the WAN side of that OpenWRT VM.
 
Last edited: