OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: harrym888 on January 23, 2024, 06:48:33 AM

Title: wireguard not get vpn conection after change from plugin to os pls help
Post by: harrym888 on January 23, 2024, 06:48:33 AM
Hi i have a wireguard client to my vpn, in the past version in the interface section i put the info of my vpn provider, but only put always private key and the public key always empty, now in this version i cant save changes without put a public key, but not have in interface

expample vpn provider config:

[Interface]

PrivateKey = CLIENT_PRIVATE_KEY

Address = 10.0.0.11/24

DNS = 10.0.0.1

 

[Peer]

PublicKey = SERVER_PUBLIC_KEY

Endpoint = SERVER_IP_ADDRESS:51820

AllowedIPs = 0.0.0.0/0
Title: Re: wireguard not get vpn conection after change from plugin to os pls help
Post by: sofax on January 23, 2024, 07:54:41 AM
Your instance always needs a public and a private key pair.
For the peers, you only need the public key of the other side.
Generate a new key pair and add the new public key to your provider.