proxmox run through a vpn

Hanry

New Member
Nov 19, 2021
5
0
1
24
I want all my containers and everything on proxmox to run through my vpn server. I am just wondering if this is possible and how I would go about doing something like this.
 
hi,

I want all my containers and everything on proxmox to run through my vpn server.
what do you mean by this exactly?
do you want to run a VPN server on your PVE?
or do you have a VPN server that you wish to route all your VM/CT traffic to?

both are doable ;)

for the first option you could just create an openvpn container [0]

for the second option you could probably make a VM and use it as a router for the rest of your VMs.
you would have to configure that VM to connect to your VPN server, and act as a gateway for the rest of your subnet. for networking you can check out our wiki[1] and docs[2].

[0]: https://pve.proxmox.com/wiki/OpenVPN_in_LXC
[1]: https://pve.proxmox.com/wiki/Network_Configuration
[2]: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration
 
A OPNsense VMs works fine as gateway for all the other VMs/LXCs. There are also some plugins so that this VM can work as the VPN server too.

But it sounds like you really want the complete host behind a VPN and not just the guests running on it?
 
It's on a different network if you will because it's vpn (192.168.3.1) traffic but is bridged to my LAN network (192.168.1.1) I can access all other devices on LAN but not the proxmox hosts. At first I was able to access them and then suddenly without making any changes they are gone only when I'm accessing via vpn if I am actually local they are present and working fine.
openVPN should only be "aware" of networks. Therefore if it is "aware" on your lan it should able to access anything on it. azarchatrandom
 
Last edited:

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!