1
23.1 Legacy Series / Re: States not reset after internet reconnect since 23.1
« on: February 24, 2023, 12:33:47 pm »
I have now found this out.
/usr/local/etc/rc.newwanip
The if statement is true and the cachefile is deleted.
This means that it can no longer be read for the states kill function.
As a workaround I have commented out the @unlink($cacheip_file). Then it works.
/usr/local/etc/rc.newwanip
Quote
$cacheip_file = "/tmp/{$device}_oldip";
if (!is_ipaddr($ip)) {
/* remove previously cached IP since it is gone */
@unlink($cacheip_file);
/*
* Take care of OpenVPN and similar if you generate the event
* to reconfigure an interface. OpenVPN might be in tap(4)
* mode and not have an IP address.
*/
if (substr($device, 0, 4) != 'ovpn') {
log_msg("Failed to detect IP for {$interface_descr}[{$interface}]", LOG_WARNING);
return;
}
}
The if statement is true and the cachefile is deleted.
This means that it can no longer be read for the states kill function.
As a workaround I have commented out the @unlink($cacheip_file). Then it works.
Quote
/usr/local/etc/rc.newwanip: IP renwal starting (new: 87.156.7.x, old: 87.144.15.x, interface: VDSL[opt6], device: pppoe0)