OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 16.7 Legacy Series »
  • OpenVPN - Possible Bug with Multiple Servers
« previous next »
  • Print
Pages: [1] 2

Author Topic: OpenVPN - Possible Bug with Multiple Servers  (Read 7138 times)

joer

  • Newbie
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
OpenVPN - Possible Bug with Multiple Servers
« on: August 17, 2016, 04:11:50 pm »
Just tried to add a second client to a peer to peer VPN connection and found that the server can't handle two connections at once, so to get around this added a second server on port 1195.

Problem is a new tab on the firewall rules doesn't appear for the new second OpenVPN interface so can't add any rules; any ideas?

Thanks.
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2115
  • Karma: 94
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #1 on: August 17, 2016, 07:55:30 pm »
There is only ONE Firewall tab for ALL OpenVPN tunnels... ALWAYS
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

joer

  • Newbie
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #2 on: August 17, 2016, 10:25:59 pm »
Are you sure? I've seen two before when I've added a second server during testing, I though this was the norm.
Logged

joer

  • Newbie
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #3 on: August 18, 2016, 10:07:23 am »
Just double-checked, there's definitely some sort of problem with this; I removed and re-added my client and the OpenVPN tab disappeared on the firewall rules as expected, but it didn't reappear.  I had to reboot.

Also, I can't for the life of me get the second tunnel to work; the connection shows as 'up', but I can't get anything to ping either way.  Definitely broken on a second tunnel!
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2115
  • Karma: 94
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #4 on: August 18, 2016, 10:19:28 am »
What are your rules on the openVPN firewall tab? Allow any any?

Allow rule for port 1195 on WAN firewall tab?

And firewalls rules on the client side?
« Last Edit: August 18, 2016, 10:33:48 am by chemlud »
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

joer

  • Newbie
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #5 on: August 18, 2016, 11:11:42 am »
Yup,

1195 allowed on firewall for WAN (VPN connection showing UP).

I don't allow any to any on the OpenVPN tab though, I have two rules server side, one to allow from 10.0.4.0/23 and one to allow from 10.0.2.0/23, which are my remote networks as configured in the servers.

OpenVPN rules on both client sides are to allow traffic from 10.0.0.0/23, first VPN server & client works great, second shows UP but doesn't let any traffic flow in any direction.

Tracert from server side LAN machine to client at the non-working site reveals that the pinging is going down the wrong tunnel, i.e. 10.1.0.0/24 instead of 10.2.0.0/24.

Thanks.
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2115
  • Karma: 94
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #6 on: August 18, 2016, 11:38:45 am »
will tray to reproduce with 2 openvpn servers on a fresh opnsense soon... Currently only have here one with 2 openvpn clients, doing fine

In the meantime: What are your NAT outbound rules? Should include BOTH tunnel networks iirc...
« Last Edit: August 18, 2016, 11:46:28 am by chemlud »
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

chemlud

  • Hero Member
  • *****
  • Posts: 2115
  • Karma: 94
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #7 on: August 18, 2016, 11:56:46 am »
...did you use the Wizard to set up the server? And the export tool for clients?
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

joer

  • Newbie
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #8 on: August 18, 2016, 12:09:27 pm »
No - the wizard doesn't appear to do shared key peer-peer connections.

I followed the guide on the Wiki, which didn't work as my server side is on a multi-wan (to get around this I had to put a rule above the default lan to any rule to point any traffic for remote networks (10.0.2.0/23 and 10.0.4.0/23) to the 'default' gateway and not the gateway group.

NAT outbound rules are on auto, this config worked fine with above firewall rules with one server, just not two.  Also if I have a problem with NAT rules, surely my client should be able to ping in?
« Last Edit: August 18, 2016, 12:13:47 pm by joer »
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2115
  • Karma: 94
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #9 on: August 18, 2016, 01:43:54 pm »
Just to be sure: You followed these instructions

https://docs.opnsense.org/manual/how-tos/sslvpn_s2s.html

?

I don't see the point in the server certificate for a shared key tunnel?!? I set up my servers on pfsense some years ago and did not touch them, except for some new ones for an opnsense installed recent as peer-to-peer (opnsense as client), doing just fine from the start...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

chemlud

  • Hero Member
  • *****
  • Posts: 2115
  • Karma: 94
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #10 on: August 18, 2016, 03:15:11 pm »
Sorry, stuck even before you, I set up 2 peer-to-peer shared key openvpn tunnels, the second doesn't even connect, no errors in the logs, even with verbose 9...

No idea why...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

chemlud

  • Hero Member
  • *****
  • Posts: 2115
  • Karma: 94
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #11 on: August 19, 2016, 10:03:18 am »
Changed the direction of one of the tunnels, i.e. the opnsense has only one server and one client, runs like a charm... (with all appropriate firewall rules on LAN and OpenVPN tabs set...).

Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #12 on: August 23, 2016, 05:30:59 pm »
I shall be looking into this, sorry for the delay.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #13 on: August 28, 2016, 01:40:47 pm »
Quote from: joer on August 18, 2016, 10:07:23 am
Just double-checked, there's definitely some sort of problem with this; I removed and re-added my client and the OpenVPN tab disappeared on the firewall rules as expected, but it didn't reappear.  I had to reboot.

I tracked this down and it should be fixed on -devel. I have no ETA for a merge into the 16.7 release yet, want to batch these changes with the below and other tweaks for VPN in general.

Quote from: joer on August 18, 2016, 10:07:23 am
Also, I can't for the life of me get the second tunnel to work; the connection shows as 'up', but I can't get anything to ping either way.  Definitely broken on a second tunnel!

Working on it now. :)


Cheers,
Franco
Logged

joer

  • Newbie
  • *
  • Posts: 16
  • Karma: 1
    • View Profile
Re: OpenVPN - Possible Bug with Multiple Servers
« Reply #14 on: September 05, 2016, 12:34:49 pm »
Apologies for letting a thread I started slowly die - been away on hols!

Many thanks for your help on this; looking forward to a fix.
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • Archive »
  • 16.7 Legacy Series »
  • OpenVPN - Possible Bug with Multiple Servers
 

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