Hello all,
I'm new to proxmox and its way of managing VMs/containers and am struggling with setting up my desired networking strategy.
I have 2 VMs and a container. I want the container to act as a VPN server and be exposed to the public internet so that I can access my local network through it.
I followed this guide for setting up the VPN server container and OpenVPN appears to have been setup correctly (its running, generated an opvn file, and the CA keys look OK), but when trying to connect to it from a different machine, the TLS handshake times out with no data reaching the server (which sounds like a firewall issue):
Firewall on container:
I'm assuming that once my client is connected to the VPN, that I should just have access to my local network from there? I'm also not sure what goes into reserving a public IP for my VPN server - what I tried (which is likely wrong) is take the IP for my router and use one of the available addresses. I assume I'll have to make my router's IP static from there? Pretty lost here. Also, are there any firewall changes that I can make to protect my VPN server?
Here's my network interface on the proxmox host:
Here's my network interface on the VPN server:
And my router's IP (that I made static based on what was assigned via DHCP)
I can ssh into every machine no problem using the private IPs and they can each connect to the internet, its just the public IP and VPN connection that appear to be failing.
Sorry for all the questions - I've been trying to do my own research but everything I find gets so deep into the weeds that I don't understand what's required.
I'm new to proxmox and its way of managing VMs/containers and am struggling with setting up my desired networking strategy.
I have 2 VMs and a container. I want the container to act as a VPN server and be exposed to the public internet so that I can access my local network through it.
I followed this guide for setting up the VPN server container and OpenVPN appears to have been setup correctly (its running, generated an opvn file, and the CA keys look OK), but when trying to connect to it from a different machine, the TLS handshake times out with no data reaching the server (which sounds like a firewall issue):
Code:
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
TLS Error: TLS handshake failed
Firewall on container:
Code:
Firewall no
DHCP yes
nap yes
...
Here's my network interface on the proxmox host:
Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.0.0.200/24 # local IP
gateway 10.0.0.1
bridge_ports eno1
bridge_stp off
bridge_fd 0
Here's my network interface on the VPN server:
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.100/24 # local IP
gateway 10.0.0.1
bridge-ports enol
bridge-stp off
bridge-fd 0
auto eth1
iface eth1 inet static
address ###.###.248.100/24 # public IP? I took my router's IP address and changed the number a bit. I don't know how to get this or if its setup correctly
gateway ###.###.248.1
And my router's IP (that I made static based on what was assigned via DHCP)
Code:
Internet
IP: ###.###.248.121
Subnet: 255.255.252.0
Gateway: ###.###.248.1
LAN
IP: 10.0.0.1
Subnet: 255.255.255.0
I can ssh into every machine no problem using the private IPs and they can each connect to the internet, its just the public IP and VPN connection that appear to be failing.
Sorry for all the questions - I've been trying to do my own research but everything I find gets so deep into the weeds that I don't understand what's required.
Last edited: