Cannot access proxmox over wireguard

Aerialflame7125

New Member
May 9, 2023
14
0
1
I have a set of 5 nodes, one of which is offsite, I set up a wireguard tunnel with the following parameters,

Server to client:

Code:
[Interface]
Address = 10.0.0.1/24
DNS = 192.168.1.2
MTU = 1320
SaveConfig = true
ListenPort = 53
PrivateKey = 

# +2 other clients...

[Peer]
PublicKey = 
AllowedIPs = 192.168.1.27/32
Endpoint =

Client to server:

Code:
[Interface]
PrivateKey = 
DNS = 8.8.8.8
MTU = 1320

[Peer]
PublicKey = 
AllowedIPs = 0.0.0.0/0
Endpoint =

I connected, and got pings working/got dns resolutions working.
Code:
root@pve:~# ping google.com
PING google.com (142.251.116.100) 56(84) bytes of data.
64 bytes from rt-in-f100.1e100.net (142.251.116.100): icmp_seq=1 ttl=249 time=112 ms
64 bytes from rt-in-f100.1e100.net (142.251.116.100): icmp_seq=2 ttl=249 time=158 ms
64 bytes from rt-in-f100.1e100.net (142.251.116.100): icmp_seq=3 ttl=249 time=295 ms
64 bytes from rt-in-f100.1e100.net (142.251.116.100): icmp_seq=4 ttl=249 time=147 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3015ms
rtt min/avg/max/mdev = 111.960/178.063/295.009/69.651 ms

Now what's left is for connecting the clients together, I already have said four nodes are already in a cluster, I just need to add this. The proxmox server that is offsite is currently under 192.168.1.27, and it seems so that the other servers cannot connect. I have tried many ways and many other options, I have not yet installed wireguard on the other servers. I also have tried pinging the other local network,
Code:
root@pve:~# ping 192.168.1.26
PING 192.168.1.26 (192.168.1.26) 56(84) bytes of data.
From 192.168.1.27 icmp_seq=1 Destination Host Unreachable
From 192.168.1.27 icmp_seq=2 Destination Host Unreachable
From 192.168.1.27 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.1.26 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3158ms
pipe 4
To no avail. The other 2 clients are able to connect and talk to the other devices on the network. I also have tried joining the cluster, to which it replies with "* local node address: cannot use IP '192.168.1.26', not found on local node!" If anyone out there knows how I can resolve this matter please help. This may not pertain solely to proxmox, but I still need a way to add these nodes together.
 
Hi,

Its not recommended for an Wireguard VPN tunnel between servers.
If i where you could use an router in front of these servers and route between routers on VPN.
Other way to configure it is port forwarding Proxmox server but this is not secure.

If as an example 1 server is by Hetnzer an other one at home I don't recommend it to connect to each other.
You think mabye why i use at home vlans, yes it good but its an danger for you local network its an resson that Bussinss using 2 datacenters or some times 3 to sync data not at home only for off site backup.

It can configured on Wireguard there for you will need setup Site to Site vpn not Client to VPN.
The danger for these setup is low speeds over vpn an if one node goes down all the 8 or 10 server VMs will moved over an VPN tunnel is not good way.

Happy to Help,
By Netwerkfix :)
 
It can configured on Wireguard there for you will need setup Site to Site vpn not Client to VPN.
I don't think I can go through with this because my router does not support it on the other side, At the offsite location, I am just using a 5g modem with a router that came with it, and proxmox is running off of a laptop, which if you connect the dots cannot run OPNsense or PFsense. I am using client to vpn because I don't really care much about the speeds, I just care about the connection, and that the node can run vms or containers. In that case i'm fine.
 

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!