Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
What do I do to connect to the vps wireguard peer on my PC
« previous
next »
Print
Pages: [
1
]
Author
Topic: What do I do to connect to the vps wireguard peer on my PC (Read 935 times)
ddeell
Newbie
Posts: 3
Karma: 0
What do I do to connect to the vps wireguard peer on my PC
«
on:
July 02, 2023, 09:23:28 am »
This is my first time using opnsense and everything is working very well, but when I try to connect to the VPN using the wireguard client on my PC, the VPN is connected but there is no network, how do I set up the firewall or routing rules to make it work?
My LAN segment is 10.10.10.1/24, the VPN segment is 10.8.0.1/24.
Best Regards.
Logged
Patrick M. Hausen
Hero Member
Posts: 6816
Karma: 572
Re: What do I do to connect to the vps wireguard peer on my PC
«
Reply #1 on:
July 02, 2023, 12:15:23 pm »
What does your Wireguard config on your PC look like? Specifically the allowed networks? What do the firewall rules for Wireguard on your OPNsense look like?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
ddeell
Newbie
Posts: 3
Karma: 0
Re: What do I do to connect to the vps wireguard peer on my PC
«
Reply #2 on:
July 02, 2023, 01:46:18 pm »
Thansk for your replay.
This is my wireguard config on my PC below. I hope all traffic will flow through this tunnel when I connect to the VPN.
[Interface]
PrivateKey = xxxxxxxxx
Address = 10.8.0.2/24
DNS = 1.1.1.1
[Peer]
PublicKey = xxxxxxxxxxxxx
PresharedKey = xxxxxxxxxx
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = "vps ip address":51820
PersistentKeepalive = 25
I have tried to configure firewall rules and nat, but none of them seem to work, can you point out what is wrong in these?(Please refer to the attachments).
Thanks!
«
Last Edit: July 04, 2023, 12:28:17 pm by ddeell
»
Logged
ddeell
Newbie
Posts: 3
Karma: 0
Re: What do I do to connect to the vps wireguard peer on my PC
«
Reply #3 on:
July 04, 2023, 12:30:37 pm »
I have fixed this issue. I have to explicitly let udp 51820 on the other side into my firewall
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
What do I do to connect to the vps wireguard peer on my PC