Project

General

Profile

Actions

Bug #3669

closed

WAN IPs not being cached causing unnecessary "rc.start_packages: Restarting/Starting all packages"

Added by Nic Hannekum almost 10 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
High
Assignee:
Ermal Luçi
Category:
Interfaces
Target version:
Start date:
05/20/2014
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1.x
Affected Architecture:
All

Description

First bug report so please excuse administrative mistakes.

Affected version is actually 2.1.3 (maybe others)

There are actually two bugs, causing the /var/db/wan_cacheip and /var/db/wan_cacheipv6 files to not be generated.

The first is a typo in /etc/rc.newwanip:

[2.1.3-RELEASE][root@pfsense]/etc: diff rc.newwanip.pfsense rc.newwanip
191c191
<     if (is_ipaddr($curnwanip))
---
>     if (is_ipaddr($curwanip))

and the second is an invalid initial IPv6 IP address causing the is_ipaddrv6 function to return false:

[2.1.3-RELEASE][root@pfsense]/etc: diff rc.newwanipv6.pfsense rc.newwanipv6
114c114
< $oldipv6 = "";
---
> $oldipv6 = "::";

Note that the above IPv6 'fix' causes the following in /var/log/system.log:

May 20 22:21:20 pfsense php: rc.newwanipv6: The command '/sbin/ifconfig pppoe0 inet6 :: delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
Actions

Also available in: Atom PDF