IP renewal every 30 seconds

Started by subivoodoo, February 06, 2019, 12:28:16 AM

Previous topic - Next topic
February 06, 2019, 12:28:16 AM Last Edit: February 06, 2019, 01:03:29 AM by subivoodoo
Hello,

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

/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

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

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


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:

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


Hi franco,

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

# opnsense-patch c83bb8d

Regards
Adrian

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