OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Multiple Roadwarrior IPSEC tunnels?
« previous next »
  • Print
Pages: [1] 2

Author Topic: Multiple Roadwarrior IPSEC tunnels?  (Read 9618 times)

schnipp

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: 19
    • View Profile
Multiple Roadwarrior IPSEC tunnels?
« on: July 12, 2018, 05:56:39 pm »
Hi all,

to access my LAN from different mobile devices I need multiple IPSEC roadwarrior configurations. Is there a plan to support multiple roadwarrior configurations? For strongswan it is no problem to handle multiple connections in parallel. Thanks
Logged
OPNsense 24.7.9_1-amd64

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #1 on: July 12, 2018, 07:53:04 pm »
What exactly so you mean?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

schnipp

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: 19
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #2 on: July 12, 2018, 08:27:22 pm »
In case mobile mobile extensions are enabled, I have only one predefined profile "mobile client" compared to multiple site-to-site profiles. But I also need to configure multiple different tunnels for mobile clients because the devices need different configurations for phase 1 and 2 (e.g. builtin IPSEC client in Linux gnome, Strongswan in android, builtin Windows 7 etc.).
Logged
OPNsense 24.7.9_1-amd64

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #3 on: July 12, 2018, 10:35:48 pm »
Hm, how do you plan to identify which P1 to use when a Client connects?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

schnipp

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: 19
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #4 on: July 12, 2018, 11:20:23 pm »
I am not sure, but it should be possible to distinguish different clients by their proposal (distinguished name, claim for authentication etc.).

The fritzbox was able to distinguish different roadwarriors. But as I replaced it by the opnsense I am not able to connect all my devices via vpn anymore.
Logged
OPNsense 24.7.9_1-amd64

FredTGB

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #5 on: August 03, 2018, 09:31:30 am »
Hello,

I second this request.
At least it would be interesting to have one IkeV1 RW configuration and one IkeV2 configuration.

Otherwise, the authentication method in first allows to distinguish multiple phases 1 (authby field in Strongswan ipsec.conf file). When the same auth method is used the remote ID (rightid field in ipsec.conf file) allows to distinguish multiple phases 1). I've already created such Strongswan configurations with success.

Regards,

Fred.
Logged

schnipp

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: 19
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #6 on: August 14, 2018, 07:52:30 pm »
I did some research, strongswan supports multiple connections as a responder. Furthermore, it is capable to share the same address pool for multiple defined connections (since v.5.0.1).

https://wiki.strongswan.org/projects/strongswan/wiki/VirtualIp#Responder-Configuration

…and some quite old discussions which helped to improve strongswan

https://wiki.strongswan.org/issues/447
https://wiki.strongswan.org/issues/461
https://wiki.strongswan.org/issues/735

Logged
OPNsense 24.7.9_1-amd64

schnipp

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: 19
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #7 on: September 24, 2018, 08:08:36 pm »
Is there a chance to get the support of multiple roadwarrior configurations implemented in the GUI?
Logged
OPNsense 24.7.9_1-amd64

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #8 on: September 24, 2018, 08:37:16 pm »
Not right now, but we already added possibility that you can choose multiple hmac and DHs in Phase1. This should make more systems compatible with one setup.

ATM I'm rewriting documentation and testing a setup which fits all.

But sadly no profile mode like multiple pools etc.
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

schnipp

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: 19
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #9 on: September 25, 2018, 08:48:32 pm »
Unfortunately, this does not help. Systems used as a roadwarrior need different authentication algorithms which is unique in phase1.

BTW, in phase1 I do not see any possibilities for multiple selection of encryption, hash and DH algorithm like in phase2. My Opnsense version is 18.7.3-amd64.

Logged
OPNsense 24.7.9_1-amd64

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #10 on: September 25, 2018, 11:06:10 pm »
Can you post a working example of ipsec.conf ?
Logged
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: 6767
  • Karma: 494
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #11 on: September 26, 2018, 08:33:18 am »
Quote from: schnipp on September 25, 2018, 08:48:32 pm

BTW, in phase1 I do not see any possibilities for multiple selection of encryption, hash and DH algorithm like in phase2. My Opnsense version is 18.7.3-amd64.

It's in master and will come in one of the next releases. .5 or .6
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

FredTGB

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #12 on: September 26, 2018, 03:05:57 pm »
Hi all,

Please find attached an extract of an IPsec.conf with multiple conn sections, for different authentication cases, for IkeV2. Some fields are replaced with fake info (X.Y, Z, modecp@company.com, "Server Certificate Subject"), some options (like algorithms) are supposed to be defined in the %default section.

It contains 6 different cases:
- PSK with mode CP
- PSK without mode CP
- EAP with mode CP
- EAP without mode CP
- Certificate with mode CP
- Certificate + EAP with mode CP

Depending on what the VPN client is requesting, the matching conn section is used.
The rightid (LocalId on VPN client side) allows to distinguish between CP and non CP modes for PSK and EAP.

Regards,

FredTGB

Logged

schnipp

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: 19
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #13 on: September 26, 2018, 08:38:26 pm »
Hi all,

FredTGB many thanks for performing tests with multiple strongswan configurations. When I am back from vacation I can do some additional tests, especially with multiple configurations using the same global address pool for roadwarrior connections. When I have done so far, I'll post the results here.

Logged
OPNsense 24.7.9_1-amd64

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Multiple Roadwarrior IPSEC tunnels?
« Reply #14 on: September 27, 2018, 03:19:55 pm »
So, if you don't need different pools and already have a P1 for mobile you could do this (without warranty):

https://yourfirewall/vpn_ipsec_phase1.php?mobile=true

And add a second one.
The generated ipsec.conf looks sane .. just try it. If it works for you I'll have a talk to Franco and Ad to add a button for adding multiple Mobiles, but we need your testing results.
Logged
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] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Multiple Roadwarrior IPSEC tunnels?
 

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