Bug #3669
closedWAN IPs not being cached causing unnecessary "rc.start_packages: Restarting/Starting all packages"
100%
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'
Updated by Chris Buechler over 10 years ago
- Category changed from 62 to Interfaces
- Priority changed from Normal to High
- Target version set to 2.2
I fixed the typo in the variable part. Leaving this here for Ermal's review on the other.
Updated by jeroen van breedam over 10 years ago
Would it be possible to set target version to 2.1.x ?
I've been struggling with the same thing (altough i thought it was a new feature) and had to set the gw monitoring to 3000ms to avoid a frequent restart of openvpn (i max out the upload speed of my vpn's a lot).
It would be nice to see a quick 2.1.4 release.
If that is impossible, a forum post with a link to an easy to implement patch by using the "system patches" package would also be a great help
kind regards.
Updated by Renato Botelho over 10 years ago
You can always use gitsync to sync your installation with latest changes made on branch, in this case RELENG_2_1.
https://doc.pfsense.org/index.php/Updating_pfSense_code_between_snapshots
Updated by Chris Buechler over 10 years ago
- Status changed from New to Feedback
- Target version changed from 2.2 to 2.1.4
- Affected Version changed from 2.1-IPv6 to 2.1.x
Updated by Chris Buechler over 10 years ago
- Status changed from Feedback to Resolved
Updated by David Burns almost 10 years ago
Whilst this ticket has been marked resolved, the second part of the fix relating to /etc/rc.newwanipv6 has never been applied to 2.1 or 2.2.
The supplied fix to rc.newwanipv6 certainly seems to work ... but is there another issue identified by Ermal (or others) which has prevented the fix from being integrated?
Would be great if this fix could make it into 2.2.1
Updated by Ermal Luçi almost 10 years ago
- Status changed from Resolved to New
- Assignee set to Ermal Luçi
- Target version changed from 2.1.4 to 2.2.1
Let me double check this issue again.
Updated by Ermal Luçi almost 10 years ago
- Status changed from New to Feedback
Thank you for the persistence.
Merged a better/modified version of the fix suggested here.
Updated by Ermal Luçi almost 10 years ago
- % Done changed from 0 to 100
Applied in changeset 322cc0188107e8b8ca912511915e71334fe4089b.
Updated by Ermal Luçi almost 10 years ago
Applied in changeset 68716545c5fde880d7a22cd9b13b901d01ccb561.
Updated by Chris Buechler almost 10 years ago
- Status changed from Feedback to Resolved
last part fixed in 2.2.1, remainder fixed quite some time ago.