OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [Solved] vpn connection drops after update
« previous next »
  • Print
Pages: 1 [2] 3

Author Topic: [Solved] vpn connection drops after update  (Read 22697 times)

tbandixen

  • Newbie
  • *
  • Posts: 18
  • Karma: 2
    • View Profile
Re: vpn connection drops after update
« Reply #15 on: February 06, 2019, 12:59:12 pm »
I can trigger the connection drop by manually executing /usr/local/etc/rc.newwanip
Logged
APU1D4 (PC Engines) with OPNsense 19.1.2
Wingo FTTH 1 Gbit/s

subivoodoo

  • Newbie
  • *
  • Posts: 44
  • Karma: 1
    • View Profile
Re: vpn connection drops after update
« Reply #16 on: February 06, 2019, 01:04:28 pm »
In my case (confirmed by ISP that WAN IP Renewal Time = 30 seconds) I get 2 VPN drops per minute.

Also the NTP service is not running: it get's a SIGTERM 15 every 30 seconds because of the rc.newwanip script.
Logged

Joergen

  • Newbie
  • *
  • Posts: 12
  • Karma: 1
    • View Profile
Re: vpn connection drops after update
« Reply #17 on: February 06, 2019, 01:25:45 pm »
I can confirm that it has something to do with automaticly renewal of WAN. Here on my box 19.1.1 it happens every 30 minutes. (13:00, 13:30 etc) And the same time all VPN connections are lost.
Thats why the VPN drops after 0 to 30 minutes - its depending on what time you connect.

It most be someting new in 19.1.

here is my log from the box
_______
Feb 6 13:00:06   opnsense: /usr/local/etc/rc.newwanip: Interface '' is disabled or empty, nothing to do.
Feb 6 13:00:06   opnsense: /usr/local/etc/rc.newwanip: IP renewal is starting on 'ovpns1'
Feb 6 13:00:06   kernel: ovpns1: link state changed to UP
Feb 6 13:00:04   kernel: ovpns1: link state changed to DOWN
Feb 6 13:00:04   opnsense: /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.
Feb 6 13:00:02   opnsense: /usr/local/etc/rc.newwanip: ROUTING: skipping IPv6 default route
Feb 6 13:00:02   opnsense: /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway X.XXX.XX.XXX'
Feb 6 13:00:02   opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to X.XXX.XX.XXX
Feb 6 13:00:02   opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv6 default gateway set, assuming wan
Feb 6 13:00:02   opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv4 default gateway set, assuming wan
Feb 6 13:00:02   opnsense: /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'
Feb 6 13:00:02   opnsense: /usr/local/etc/rc.newwanip: On (IP address: X.XXX.XX.XXX) (interface: WAN[wan]) (real interface: em1).
Feb 6 13:00:02   opnsense: /usr/local/etc/rc.newwanip: IP renewal is starting on 'em1'
______

Any idears for solutions??

Joergen
Logged

Joergen

  • Newbie
  • *
  • Posts: 12
  • Karma: 1
    • View Profile
Re: vpn connection drops after update
« Reply #18 on: February 06, 2019, 01:34:08 pm »
Is there an easy and fast way to return to 18.7

Joergen
Logged

Mr.Goodcat

  • Full Member
  • ***
  • Posts: 103
  • Karma: 8
    • View Profile
Re: vpn connection drops after update
« Reply #19 on: February 06, 2019, 01:43:17 pm »
I think you are onto something here.
Upon renewing the WAN IP, connections get dropped, and VPN as well as dpinger and sometimes NTP die :-/
Logged

drakosha

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: vpn connection drops after update
« Reply #20 on: February 06, 2019, 02:42:19 pm »
Quote from: Mr.Goodcat on February 06, 2019, 01:43:17 pm
I think you are onto something here.
Upon renewing the WAN IP, connections get dropped, and VPN as well as dpinger and sometimes NTP die :-/
It's strange, for example i have static IP from my ISP, but! It should be requested over DHCP, and it works fine over the year on 18.* series.

I'll try to check newwanip script today evening...
Logged

tbandixen

  • Newbie
  • *
  • Posts: 18
  • Karma: 2
    • View Profile
Re: vpn connection drops after update
« Reply #21 on: February 06, 2019, 02:49:27 pm »
According to github, the last changes where 5 month ago.
I think it has something to do with the switch to HardenedBSD, but I am absolutly not a unix guy...
Logged
APU1D4 (PC Engines) with OPNsense 19.1.2
Wingo FTTH 1 Gbit/s

qinohe

  • Full Member
  • ***
  • Posts: 160
  • Karma: 19
    • View Profile
Re: vpn connection drops after update
« Reply #22 on: February 06, 2019, 03:43:06 pm »
Quote from: Joergen on February 06, 2019, 04:51:23 am
Hey Mark

If you take the time to read my first post you would see it has been working fine with OTP.
I made the setup in march 2017.
Only change since then is an update of the cerfificates in March 2018.
I use the vpn quite often and it has always been with OTP for the ekstra security.
In oktober 2018 I was away from my country and was working remotely via VPN. That time i had sessions up to 10 hours via VPN - there was no proplem at all - it just worked perfekt.

Just to see if there was a problem with Viscosity I tried to connect from my android device via open vnp to android.
Its the same problem the connection drops after some time because of inactivity in the certificate. Same message as when connecting via Viscosity. You can see the log in my first post.

So there most clearly be a bug in opnsense

Joergen

Hi Joergen,

I know you were using OTP all that time, I was merely trying to find a cause/solution but I don't see drops in any way on my network.
I'm not able to track anything further besides what I tried already, hope you guys find a solution soon...

About it being a bug On OPNsense, could be, but I leave that for the devs to decide.  ;)

Have a nice day, mark
Logged

Joergen

  • Newbie
  • *
  • Posts: 12
  • Karma: 1
    • View Profile
Re: vpn connection drops after update
« Reply #23 on: February 06, 2019, 03:54:33 pm »
Hey Mark

Thanks for the help.

Hope somebody find out. I am not a technician

Best regards

Joergen
Logged

subivoodoo

  • Newbie
  • *
  • Posts: 44
  • Karma: 1
    • View Profile
Re: vpn connection drops after update
« Reply #24 on: February 06, 2019, 04:06:29 pm »
What is the easiest way to downgrade?

New install of 18.x and restore config Backup?
Logged

qinohe

  • Full Member
  • ***
  • Posts: 160
  • Karma: 19
    • View Profile
Re: vpn connection drops after update
« Reply #25 on: February 06, 2019, 04:31:58 pm »
Quote from: subivoodoo on February 06, 2019, 04:06:29 pm
What is the easiest way to downgrade?

New install of 18.x and restore config Backup?

Hi subivoodoo,

There is 'opnsense-revert' have a look at https://wiki.opnsense.org/manual/opnsense_tools.html

Greetings, mark
Logged

Joergen

  • Newbie
  • *
  • Posts: 12
  • Karma: 1
    • View Profile
Re: vpn connection drops after update
« Reply #26 on: February 06, 2019, 04:34:57 pm »
I was just going to reply the same as Mark

https://wiki.opnsense.org/manual/opnsense_tools.html?highlight=reverse

The only thing is I dont know if its possible to reverse from 19 to 18?? or its only possible inside the same series??

Regards

Joergen
Logged

tbandixen

  • Newbie
  • *
  • Posts: 18
  • Karma: 2
    • View Profile
Re: vpn connection drops after update
« Reply #27 on: February 06, 2019, 04:39:43 pm »
I opened an issue on github:
https://github.com/opnsense/core/issues/3197
« Last Edit: February 06, 2019, 04:45:58 pm by tbandixen »
Logged
APU1D4 (PC Engines) with OPNsense 19.1.2
Wingo FTTH 1 Gbit/s

Mr.Goodcat

  • Full Member
  • ***
  • Posts: 103
  • Karma: 8
    • View Profile
Re: vpn connection drops after update
« Reply #28 on: February 06, 2019, 05:00:43 pm »
Quote from: Joergen on February 06, 2019, 04:34:57 pm
I was just going to reply the same as Mark

https://wiki.opnsense.org/manual/opnsense_tools.html?highlight=reverse

The only thing is I dont know if its possible to reverse from 19 to 18?? or its only possible inside the same series??

Regards

Joergen

On my box the downgrade fails, i.e. doesn't even start properly  :(

Running on Intel CPU and NIC btw.

Update:
So far the patch seems to have fixed the issue with dropping connections and dead VPN/Dpinger/NTP. Will update tomorrow to report if it was stable throughout the night.

Update II:
Still no issues. Great!  8)
« Last Edit: February 07, 2019, 09:36:51 pm by Mr.Goodcat »
Logged

drakosha

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: vpn connection drops after update
« Reply #29 on: February 06, 2019, 11:26:54 pm »
Finally... Fresh 18.7.10 setup, restore configs from backup, and i have working router...
Logged

  • Print
Pages: 1 [2] 3
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [Solved] vpn connection drops after update
 

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