OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • IP renewal every 30 seconds
« previous next »
  • Print
Pages: [1]

Author Topic: IP renewal every 30 seconds  (Read 5378 times)

subivoodoo

  • Newbie
  • *
  • Posts: 44
  • Karma: 1
    • View Profile
IP renewal every 30 seconds
« on: February 06, 2019, 12:28:16 am »
Hello,

After Upgrade to 19.1 I get every 30 seconds an IP renew try on my WAN port:

Code: [Select]
/usr/local/etc/rc.newwanip: IP renewal is starting on 'em0'
I don't think that my ISP has a lease time of just 30 seconds... but this causes every time a VPN link DOWN/UP

Code: [Select]
kernel: ovpns1: link state changed to DOWN
kernel: ovpns1: link state changed to UP

What can it be? Or is this 30 second retry normal?

In the dhcp log I can find the following

Code: [Select]
Feb  6 00:43:53 FireLW10 dhclient: Creating resolv.conf
Feb  6 00:43:56 FireLW10 dhclient[56474]: bound to MYIPADDRESS -- renewal in 30 seconds.
Feb  6 00:44:23 FireLW10 dhclient[56474]: DHCPREQUEST on em0 to 213.173.44.1 port 67
Feb  6 00:44:23 FireLW10 dhclient[56474]: DHCPACK from 213.173.44.1
Feb  6 00:44:23 FireLW10 dhclient: Creating resolv.conf
Feb  6 00:44:26 FireLW10 dhclient[56474]: bound to MYIPADDRESS -- renewal in 30 seconds.
Feb  6 00:44:53 FireLW10 dhclient[56474]: DHCPREQUEST on em0 to 213.173.44.1 port 67
Feb  6 00:44:53 FireLW10 dhclient[56474]: DHCPACK from 213.173.44.1
Feb  6 00:44:53 FireLW10 dhclient: Creating resolv.conf
Feb  6 00:44:56 FireLW10 dhclient[56474]: bound to MYIPADDRESS -- renewal in 30 seconds.
Feb  6 00:45:23 FireLW10 dhclient[56474]: DHCPREQUEST on em0 to 213.173.44.1 port 67
Feb  6 00:45:23 FireLW10 dhclient[56474]: DHCPACK from 213.173.44.1
Feb  6 00:45:23 FireLW10 dhclient: Creating resolv.conf
Feb  6 00:45:26 FireLW10 dhclient[56474]: bound to MYIPADDRESS -- renewal in 30 seconds.
Feb  6 00:45:53 FireLW10 dhclient[56474]: DHCPREQUEST on em0 to 213.173.44.1 port 67

Thanks for every input.

Regards
Adrian
« Last Edit: February 06, 2019, 01:03:29 am by subivoodoo »
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: IP renewal every 30 seconds
« Reply #1 on: February 06, 2019, 06:08:53 am »
Update to 19.1.1 please
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

subivoodoo

  • Newbie
  • *
  • Posts: 44
  • Karma: 1
    • View Profile
Re: IP renewal every 30 seconds
« Reply #2 on: February 06, 2019, 07:15:50 am »
Upgrade to 19.1.1 no fix

After a short night I think it is an ISP issue that I've recognized during the upgrade. Capture the DHCP packages brings:

Code: [Select]
Option: (51) IP Address Lease Time
    Length: 4
    IP Address Lease Time: (60s) 1 minute
Option: (58) Renewal Time Value
    Length: 4
    Renewal Time Value: (30s) 30 seconds

I will contact my ISP today.

But why is the VPN link DOWN/UP? Could it be a bug as assumed here:

https://forum.opnsense.org/index.php?topic=11456.0
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17707
  • Karma: 1618
    • View Profile
Re: IP renewal every 30 seconds
« Reply #3 on: February 06, 2019, 06:20:48 pm »
Might be related to https://github.com/opnsense/core/issues/3197


Cheers,
Franco
Logged

subivoodoo

  • Newbie
  • *
  • Posts: 44
  • Karma: 1
    • View Profile
Re: IP renewal every 30 seconds
« Reply #4 on: February 07, 2019, 08:34:34 am »
Hi franco,

Yes and there is already a patch for my issue there:

Code: [Select]
# opnsense-patch c83bb8d
Regards
Adrian
Logged

amichel

  • Jr. Member
  • **
  • Posts: 87
  • Karma: 8
    • View Profile
Re: IP renewal every 30 seconds
« Reply #5 on: February 08, 2019, 01:38:11 am »
I had a similar issue and for me it turned out that my 4G modem when configured in bridge mode configures a 2 minute DHCP lease time. When set In router mode with nat the modem got the up Adress with the ISP configured settings of one week. I verified that behavior by connecting a pc to the 4g modem in bridge mode and got the same 2 minutes lease time.
Fixed that by changing the 4G modem.


Gesendet von meinem EML-L29 mit Tapatalk

Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • IP renewal every 30 seconds
 

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