OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Problem getting Wireguard-VPN Roadwarrior Setup to work
« previous next »
  • Print
Pages: [1]

Author Topic: Problem getting Wireguard-VPN Roadwarrior Setup to work  (Read 5201 times)

sashxp

  • Newbie
  • *
  • Posts: 36
  • Karma: 2
    • View Profile
Problem getting Wireguard-VPN Roadwarrior Setup to work
« on: August 05, 2019, 09:46:21 pm »
Hi Guys,

i can't get my new Wireguard VPN Setup to work. I can't see established connection but i cant see my Mistake!? Perhaps some of the Wireguard Experts could help me a bit?!

1. Server Setup, i have configured the following things on the OPNSense Site:






upload pictures

2. On the iPhone i have configured as following:


Perhaps i have missed just a little? So, please help me :-)

i have read the following Links:
https://forum.opnsense.org/index.php?topic=11737.0
https://forum.opnsense.org/index.php?topic=13461.0
https://genneko.github.io/playing-with-bsd/networking/freebsd-wireguard-quicklook/
the great site from mimugmail https://www.routerperformance.net/opnsense/opnsense-and-wireguard/


sash




« Last Edit: August 05, 2019, 09:50:04 pm by sashxp »
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6407
  • Karma: 446
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #1 on: August 06, 2019, 01:30:54 pm »
On the iPhone allowed IPs should be 0.0.0.0/0 in ordner to get everything over the tunnel.
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

sashxp

  • Newbie
  • *
  • Posts: 36
  • Karma: 2
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #2 on: August 06, 2019, 02:09:26 pm »
I don't think that this would be the Problem. I don't get a "handshake" - and i don't find the right Log to locate the Problem.

Can it be a Problem with the Keys? Or the Endpoints?
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6407
  • Karma: 446
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #3 on: August 06, 2019, 02:12:08 pm »
Public Key of Server and Endpoint can't be the same, this doesn't make sense.
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

sashxp

  • Newbie
  • *
  • Posts: 36
  • Karma: 2
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #4 on: August 06, 2019, 02:24:31 pm »
Wooohooooo Thank you! That was it! Everything works now like a charm :)
Logged

sashxp

  • Newbie
  • *
  • Posts: 36
  • Karma: 2
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #5 on: August 06, 2019, 02:27:02 pm »
Now i try to get AZIREVPN to work with WireGuard. I'll follow your tut at https://www.routerperformance.net/opnsense-wireguard-plugin-azirevpn/ :-) Thank you!
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6407
  • Karma: 446
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #6 on: August 06, 2019, 02:47:59 pm »
It's also at the official doc at docs.opnsense.org :)
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

sashxp

  • Newbie
  • *
  • Posts: 36
  • Karma: 2
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #7 on: August 06, 2019, 03:29:23 pm »
Next Problem in Configuration is to add a Gateway which doesn't work. I follow your Tut, but i cannot create a Gateway. If i click to add and fill in the fields, and then apply the settings, there is no new entry.

am i doing something wrong or is it just a bug?

Screenshots:

Logged

sashxp

  • Newbie
  • *
  • Posts: 36
  • Karma: 2
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #8 on: August 06, 2019, 11:02:54 pm »
Okay, i've testing around and "created" tons of Gateway entry but none showed up in the Table of the Gateways.

if i export my config i see tons of gateways, all for opt3 (the azirevpn interface)

Code: [Select]

<gateway_item>
      <interface>opt3</interface>
      <gateway>dynamic</gateway>
      <name>x</name>
      <priority>255</priority>
      <weight>1</weight>
      <ipprotocol>inet</ipprotocol>
      <interval/>
      <descr/>
      <monitor_disable>1</monitor_disable>
</gateway_item>

in addition i have now 4 dpinger service instances which couldn't start and my "real gateway" to route the Traffic isnot there.

@mimugmail - are you having a hint? Or is it just a bug in OPNSense?! At this point i did not get any further.



Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6407
  • Karma: 446
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #9 on: August 07, 2019, 03:05:13 pm »
Can you open config.xml and remove those entries by hand, then add a new gateway via UI and instead of using IP "dynamic", set the gateway IP of Azire.
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

mimugmail

  • Hero Member
  • *****
  • Posts: 6407
  • Karma: 446
    • View Profile
Re: Problem getting Wireguard-VPN Roadwarrior Setup to work
« Reply #10 on: August 09, 2019, 07:20:30 am »
https://forum.opnsense.org/index.php?topic=13728.msg63369#msg63369
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Problem getting Wireguard-VPN Roadwarrior Setup to work
 

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