Configure VPN for Proxmox hosted on Servermania.com

ThePinkPanther

New Member
Dec 4, 2023
2
0
1
Hi everyone,

I'm new to Proxmox and I wonder if it's possible to configure OpenVPN straight to my Proxmox VLANs.
I got a Proxmox server hosted on Servermania.com. I have a public IP address and Gateway address to connect to the Proxmox dashboard and SSH to the server.
The IP address is a part of a public IP range and I don't want to connect to my VMs via a public IP address.
I want to create VLANs and hopefully connect to the VLAN range with OpenVPN.

My question is, Can I configure VPN access to my Proxmox considering my current situation?

Thanks to everyone :)
 
Why would you want to have VLAN in this setup? This is ONE machine and a simple private bridge/network will be sufficient.

I have a setup like this:

Code:
auto vmbr1
iface vmbr1 inet static
        address  192.168.1.1
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0
        # allow internet access
        post-up iptables -t nat -A POSTROUTING -s 192.168.0.0/16 ! -d 192.168.0.0/16 -j MASQUERADE
        # passthrough 1234/UDP to OpenVPN machine
        post-up iptables -t nat -A PREROUTING -d <public-ip> -p udp --dport 1234 -j DNAT --to 192.168.1.254:1234

and I have a VM inside of this network at IP 254 that has an OpenVPN server running on Port 1234.
 
  • Like
Reactions: gurubert

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!