OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: subivoodoo on February 06, 2019, 12:28:16 am

Title: IP renewal every 30 seconds
Post by: subivoodoo 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
Title: Re: IP renewal every 30 seconds
Post by: mimugmail on February 06, 2019, 06:08:53 am
Update to 19.1.1 please
Title: Re: IP renewal every 30 seconds
Post by: subivoodoo 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 (https://forum.opnsense.org/index.php?topic=11456.0)
Title: Re: IP renewal every 30 seconds
Post by: franco on February 06, 2019, 06:20:48 pm
Might be related to https://github.com/opnsense/core/issues/3197


Cheers,
Franco
Title: Re: IP renewal every 30 seconds
Post by: subivoodoo 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
Title: Re: IP renewal every 30 seconds
Post by: amichel 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