OPNsense Forum

English Forums => Virtual private networks => Topic started by: rashnoy on June 07, 2024, 11:00:01 PM

Title: [SOLVED] Wireguard - Unable to connect to Proxmox host
Post by: rashnoy on June 07, 2024, 11:00:01 PM
Hi,

So I just installed OPNsense in a VM on a Proxmox host and passed through two NICs to the VM (one for WAN and one for LAN).

My WAN is assigned an IP 192.168.68.2 (the 192.168.68.0/24 is my ISP provided router's network)
and my LAN is on 192.69.10.1/24.

I created a Wireguard tunnel with 192.70.10.1/24 network and have a peer connected to it with an IP of 192.70.10.2. I have set the Allowed IPs on Wireguard client for the peer as 192.70.10.0/24, 192.69.10.0/24.

Now, I am able to establish a connection to the tunnel and can also SSH into another VM inside of Proxmox that is connected to the LAN with an IP of 192.69.10.2.

I have also set up the Proxmox host machine to be on the LAN with an IP of 192.69.10.10. I am able to ping the OPNsense from Proxmox host and vice versa. So I know that the host is connected to the LAN.

But I can't connect to the Proxmox host (either through the web GUI or SSH) from the Wireguard peer. I have spent 3 days trying to figure this out by following multiple guides on how to setup Wireguard and still couldn't find a solution.

I have set a rule on the Wireguard group to forward all incoming traffic as it is from any source to any destination and added the same rule on the LAN interface.

I would appreciate any help that I can get on how to solve this.

Thanks.
Title: Re: Wireguard - Unable to connect to Proxmox host
Post by: rashnoy on June 10, 2024, 08:04:21 PM
Figured it out.

I had set the LAN port on the host with a static IP but no gateway. Added the gateway and I am now able to connect to the host.