OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • Wireguard Full Tunnel not working
« previous next »
  • Print
Pages: [1]

Author Topic: Wireguard Full Tunnel not working  (Read 5651 times)

CJ

  • Hero Member
  • *****
  • Posts: 832
  • Karma: 30
    • View Profile
    • Have Answer, Will Blog
Wireguard Full Tunnel not working
« on: March 14, 2021, 06:12:12 pm »
I followed the steps in the documentation and I have WireGuard up and running.  https://docs.opnsense.org/manual/how-tos/wireguard-client.html

However, I can only reach internal resources.  Nothing on the internet.  I did step 2c and added the interface rule along with setting AllowedIPs to 0.0.0.0/0 on the client but I still can't get out to the internet.

The weirdest part is that I can see my device making DNS queries to OPNSense and I can see the occasional 443 traffic being passed but nothing on my device works.  Additionally, I don't see any blocked entries in the firewall logs.

Any ideas where to look for the next steps?  While a split tunnel is useful, I want to be able to fully tunnel all of my traffic across the VPN.

Thanks.
Logged
Have Answer, Will Blog

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: Wireguard Full Tunnel not working
« Reply #1 on: March 14, 2021, 06:17:20 pm »
Trace your traffic an the various interfaces involved and have a look where it stops (or the replies, maybe?). Nobody can debug this on a forum without knowing how your network is configured...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

CJ

  • Hero Member
  • *****
  • Posts: 832
  • Karma: 30
    • View Profile
    • Have Answer, Will Blog
Re: Wireguard Full Tunnel not working
« Reply #2 on: March 14, 2021, 06:22:53 pm »
That's what I'm trying to do.  I'm just confused as to why I'm seeing entries in the logs for traffic being passed when it doesn't seem to be and I'm not seeing entries for blocked traffic.

Also, I just realized that doing a split tunnel doesn't work either.

I'm seeing entries in the firewall logs showing that traffic is being passed to Unbound but Chrome gives me a DNS_PROBE_FINISHED_BAD_CONFIG error.  Looking in the Unbound logs there doesn't seem to be anything relating to my WG client.
Logged
Have Answer, Will Blog

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: Wireguard Full Tunnel not working
« Reply #3 on: March 14, 2021, 06:24:16 pm »
do package capture on the interfaces involved. for wg it won't work on the GUI afaik...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

CJ

  • Hero Member
  • *****
  • Posts: 832
  • Karma: 30
    • View Profile
    • Have Answer, Will Blog
Re: Wireguard Full Tunnel not working
« Reply #4 on: March 14, 2021, 06:45:26 pm »
Apparently the problem was Unbound.  It was refusing queries and restarting it fixed it.  Not sure why considering I had restarted the whole server when I applied the update.
Logged
Have Answer, Will Blog

CJ

  • Hero Member
  • *****
  • Posts: 832
  • Karma: 30
    • View Profile
    • Have Answer, Will Blog
Re: Wireguard Full Tunnel not working
« Reply #5 on: May 03, 2021, 02:30:33 am »
And it happened again.  Unbound stopped serving DNS to my WG clients until I restarted it.
Logged
Have Answer, Will Blog

CJ

  • Hero Member
  • *****
  • Posts: 832
  • Karma: 30
    • View Profile
    • Have Answer, Will Blog
Re: Wireguard Full Tunnel not working
« Reply #6 on: June 01, 2021, 04:24:09 pm »
And again.
Logged
Have Answer, Will Blog

xpendable

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
    • View Profile
Re: Wireguard Full Tunnel not working
« Reply #7 on: June 01, 2021, 04:59:44 pm »
I believe this is because the unbound service initializes before the wireguard service, try manually adding an access list in unbound for your wireguard subnet.

Unbound DNS -> Access Lists

This solved the same/similar issue for me.
« Last Edit: June 01, 2021, 05:15:14 pm by xpendable »
Logged

CJ

  • Hero Member
  • *****
  • Posts: 832
  • Karma: 30
    • View Profile
    • Have Answer, Will Blog
Re: Wireguard Full Tunnel not working
« Reply #8 on: June 09, 2021, 12:48:02 pm »
Quote from: xpendable on June 01, 2021, 04:59:44 pm
I believe this is because the unbound service initializes before the wireguard service, try manually adding an access list in unbound for your wireguard subnet.

Unbound DNS -> Access Lists

This solved the same/similar issue for me.

I'll give that a try, but why would it stop working after a time period?  The machine hasn't been rebooted and I've connected and disconnected multiple times.
Logged
Have Answer, Will Blog

5SpeedFun

  • Full Member
  • ***
  • Posts: 119
  • Karma: 7
    • View Profile
Re: Wireguard Full Tunnel not working
« Reply #9 on: June 12, 2021, 06:31:38 am »
I had issues on this until I had unbound listening on a loopback interface.  Are you listening on a local interface or a loopback?
Logged

CJ

  • Hero Member
  • *****
  • Posts: 832
  • Karma: 30
    • View Profile
    • Have Answer, Will Blog
Re: Wireguard Full Tunnel not working
« Reply #10 on: July 08, 2021, 02:54:04 pm »
Unbound listens on all interfaces.
Logged
Have Answer, Will Blog

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • Wireguard Full Tunnel not working
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2