OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: nicholaswkc on January 25, 2025, 06:52:35 AM

Title: Wireguard Setup Guide
Post by: nicholaswkc on January 25, 2025, 06:52:35 AM
Dear all forumer, I tried to setup wireguard vpn by following the official wireguard guide (https://docs.opnsense.org/manual/how-tos/wireguard-client.html) but could not understand it.

In Windows, i just need to import the conf file into wireguard app.

Please bear with me as I am beginner in networking.
Please teach me how to setup in simple step by step.



Title: Re: Wireguard Setup Guide
Post by: RamSense on January 25, 2025, 07:50:18 AM
Hi,
Maybe this detailed guide can help you:
https://homenetworkguy.com/how-to/configure-wireguard-opnsense/ (https://homenetworkguy.com/how-to/configure-wireguard-opnsense/)
Title: Re: Wireguard Setup Guide
Post by: nicholaswkc on January 25, 2025, 09:31:21 AM
Quote from: RamSense on January 25, 2025, 07:50:18 AMHi,
Maybe this detailed guide can help you:
https://homenetworkguy.com/how-to/configure-wireguard-opnsense/ (https://homenetworkguy.com/how-to/configure-wireguard-opnsense/)

The guide is more like setup P2P network to OPNSense firewall. I just need to import conf file in Wireguard app. I want to setup peer wireguard to Proton vpn
Title: Re: Wireguard Setup Guide
Post by: EricPerl on January 25, 2025, 11:19:30 PM
The homenetworkguy how-to is for a single peer (an iOS phone) to connect via Wireguard on OPN.
This is equivalent to the first link you mentioned.

Because he used a phone, a QR code scan was used to import the conf file.
Instead, copy/paste the config to the left of the QR code, save it to a file. Use that file on your PC.
Title: Re: Wireguard Setup Guide
Post by: meyergru on January 26, 2025, 01:27:34 AM
If I understand @nicholaswkc correctly, he wants to connect his while network behind his OpnSense via ProtonVPN, not a single client directly (in that case, OpnSense is not even involved in all that).

However, it does not get any more basic than the linked OpnSense guide, and it is step-by-step, indeed. You have to understand that besides the VPN keys (which can be compacted into a QR code), there are more things like routing, firewall rules and DNS that have to be dealt with, when you connect a whole network or parts of it over a VPN. Part of that depends on how you setup your own network.

If you cannot follow that step-by-step guide, I fear that OpnSense is not for you.