OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Wireguard in opnsense
« previous next »
  • Print
Pages: 1 ... 6 7 [8] 9 10

Author Topic: Wireguard in opnsense  (Read 96832 times)

guest15389

  • Guest
Re: Wireguard in opnsense
« Reply #105 on: April 29, 2019, 06:05:38 pm »
So there isn’t a setting like in OpenVPN to push a DNS server? The way I read that as it was for that but your reply makes it seem like not the case. I didn’t infer from the description it would overwrite my system DNS but be interface specific like the OpenVPN client setting.

So I flipped that out of my config and just left the DNS in the client side config and everything is working perfectly at this point. Appreciate that as it was just causing some goofiness in terms of updating plugins and such as my DNS was pointing to that IP instead.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Wireguard in opnsense
« Reply #106 on: April 29, 2019, 08:42:03 pm »
Wireguard works on system Level, it adds real IPs to Interfaces and changes also system DNS. Thats why the Code ist so small :) (with it's downsides)
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

white_rabbit

  • Full Member
  • ***
  • Posts: 240
  • Karma: 4
    • View Profile
Re: Wireguard in opnsense
« Reply #107 on: May 01, 2019, 09:43:53 am »
Hi. I didn't read the whole thread ... so don't know if it's already listed here.
I tried to create two wireguard endpoints. The first one with 100.64.0.10/24 works but the second one with 100.64.0.11/24 only works when I choose the pub/priv keys of the first endpoint.
 Moreover: When I clicked the "Save" button in the webUI the whole OPNSense VM crashed and rebooted. The warning "alpha software" is clear ... but is this already a known issue?
Thanks.
« Last Edit: May 01, 2019, 10:58:28 am by white_rabbit »
Logged

guest15389

  • Guest
Re: Wireguard in opnsense
« Reply #108 on: May 01, 2019, 11:59:25 am »
You should read more of the thread for your answer. :)
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Wireguard in opnsense
« Reply #109 on: May 01, 2019, 02:23:29 pm »
19.1.7 scheduled for tomorrow will include a fix which will Stop crashing the system ...
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17712
  • Karma: 1618
    • View Profile
Re: Wireguard in opnsense
« Reply #110 on: May 02, 2019, 06:55:16 am »
A workaround in the wireguard code anyway. ;)
Logged

Dark-Sider

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Wireguard in opnsense
« Reply #111 on: May 02, 2019, 10:57:11 am »
Hey guys,

thanks for bringing wireguard to opnsense! Maybe my question will become obsolete since a fix that should stop crashing is apparently on its way:

Is the crashing only related to configuration tasks while setting up the tunnels / config or is the whole setup unstable while in use?

regards,

Darky
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17712
  • Karma: 1618
    • View Profile
Re: Wireguard in opnsense
« Reply #112 on: May 02, 2019, 11:01:36 am »
Hi Darky,

The bugs relate to two classes of FreeBSD kernel bugs that are prone to race conditions during interface reconfiguration which will throw a system panic.

Once the interfaces are successfully configured the tunnel is stable as far as I know.


Cheers,
Franco
Logged

theq86

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 37
    • View Profile
Re: Wireguard in opnsense
« Reply #113 on: May 08, 2019, 03:19:36 pm »
Hello,

First, thanks for the work and effort of providing a wireguard plugin for OPNsense.

While testing it I stumbled upon a scenario which caused the vpn tunnel not to work. It may be a rare case, I don't know.


Code: [Select]
-----------------           -------------------
| OPNsense Home | --------- | OPNsense Remote |
|---------------|           |-----------------|
| - dynamic IP  |           | - fixed IP      |
| - dual stack  |           | - dual stack    |
-----------------           -------------------

- OPNsense Home has dynamic dns domain with both A and AAAA records
- Remote Endpoint in OPNsense Remote is set to that above domain
- Both senses prefer IPv6 in general
- The transfer network and the networks to route are IPv4 networks

OPNsense Remote will query the domain, get the AAAA record and connect via IPv6.

But what, if I want to connect via IPv4 only, although IPv6 is available?
A checkbox that asks which protocol to use for the outer connection would be great.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Wireguard in opnsense
« Reply #114 on: May 08, 2019, 03:29:50 pm »
On OPN with static IP I wouldn't configure an endpoint IP (0.0.0.0) and on OPN home use the v4 address as endpoint.
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

theq86

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 37
    • View Profile
Re: Wireguard in opnsense
« Reply #115 on: May 08, 2019, 03:42:31 pm »
But that would mean, after some reconnect, the dynamic site must send some initial packages before connection is working on both sides.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Wireguard in opnsense
« Reply #116 on: May 08, 2019, 08:47:00 pm »
And what exactly would you do?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

theq86

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 37
    • View Profile
Re: Wireguard in opnsense
« Reply #117 on: May 08, 2019, 09:15:58 pm »
Well, after thinking about it, everything is fine as it is.

I just thought about what would solve my "issue" the easiest way without taking into consideration if it is a reasonable solution.

As it turned out, I was also missing an allow rule for my wireguard port on OPNsense Home for IPv6. There is no real problem having the outer hosts connected via v6 and tunneling v4.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Wireguard in opnsense
« Reply #118 on: May 09, 2019, 06:51:21 am »
Good to hear, less work for me :)
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

firewall

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 7
    • View Profile
Re: Wireguard in opnsense
« Reply #119 on: May 24, 2019, 11:17:43 pm »
I keep reading that wireguard is "so much easier to setup than openvpn"...yet I honestly don't think I've spent more time trying to get something working in opnsense longer than I've spent with this.  Still not working!  ::)
Logged

  • Print
Pages: 1 ... 6 7 [8] 9 10
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Wireguard in opnsense
 

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