summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #4257 With the platform_booting() fixes a regression was done on ↵RELENG_2_2_0Ermal LUÇI2015-01-221-6/+10
| | | | | | openvpn tap interfaces or dynamic ones that are part of a bridge. Allow during bootup rc.newwanip to continue up to a ceratin part to handle bridges or other complex interfaces.
* Reload Unbound after IP changes, to fix issues noted in Ticket #4095. Do so ↵Chris Buechler2014-12-301-0/+3
| | | | before Dynamic DNS updates occur to ensure the host has functioning DNS.
* Call filter_configure_sync() is a better fix for #4066, as pointed by ErmalRenato Botelho2014-12-051-3/+2
|
* Fix #4066:Renato Botelho2014-12-051-3/+12
| | | | | | | Make sure pf is configured before other services are restarted when WAN IP changes. The way it was before, 'pass out' rules with route-to still have old IP set as 'from' and some Dynamic DNS ended up not being updated.
* Fixup misleading commentPhil Davis2014-11-281-1/+1
| | | | This comment was misleading - this is the IP of whatever interface that is being processed, not just WAN IP. Might as well fix while noticed, to save someone else from misunderstanding in future. The curwanip var is really "Current Interface IP" and could be called curinterfaceip, but I was not about to search/replace all that at this point, since it is only a var name.
* Use the pfsense module functions rather than execing. Fixes also possible ↵Ermal LUÇI2014-11-271-1/+1
| | | | attack vectors.
* Rather than set the g['booting'] on globals provide a function to test for ↵Ermal LUÇI2014-11-261-1/+1
| | | | that doing the right checks
* Fix variable typos introduced in eb8ad408Renato Botelho2014-11-261-3/+3
|
* Cleanup code and make sense of it. While here do not forget gre tunnels as well:Ermal LUÇI2014-11-261-14/+15
|
* clarify logs generated by newwanip(v6) when restarting packages, it's not ↵Chris Buechler2014-11-011-1/+1
| | | | only IP changes that end up here (by design).
* Kill states associated with the old WAN IP when WAN IP has changed. RetainChris Buechler2014-10-301-1/+4
| | | | | | hidden config option to wipe all states on IP change, as there seemed to be circumstances where the 'pfctl -k $oldip' didn't suffice for others (much of history in redmine ticket, some on forum and elsewhere). ticket
* only kill all states if the IP changed. ticket #1629Chris Buechler2014-10-301-3/+5
|
* fix up textChris Buechler2014-10-291-2/+2
|
* Add option to kill all states on IP change, currently a hidden option for ↵Chris Buechler2014-10-281-0/+6
| | | | more testing. ticket #1629
* fix variable typo. ticket #3669Chris Buechler2014-05-201-1/+1
|
* Take care of interfaces that have no ip but might be part of the bridge as ↵Ermal2014-04-301-5/+9
| | | | done for openvpn to avoid loops
* Fix susbstr-substr typoPhil Davis2014-04-151-1/+1
| | | I just got this error again on 14 Apr 2014 2.2 snapshot. I can see the fix in 2.1 branch. I could have sworn it got fixed in Master also, but I can't see it. So here is the fix for Master.
* Forgot to remove the problematic part from previous OpenVPN loop fix commitErmal2014-04-121-4/+0
|
* Take care of the loops reported for OpenVPN in tap mode. Also fixes the ↵Ermal2014-04-121-6/+15
| | | | problems of tap disappearing from bridge if its a member.
* standardize on https://www.pfsense.orgChris Buechler2014-03-141-1/+1
|
* Correct the check to what was intendedErmal2013-12-271-1/+1
|
* Use return rather than exit to be friendly on CGIErmal2013-12-201-3/+3
|
* Make scripts able to react when called from FCGI with GET methodErmal2013-12-131-1/+4
|
* This tag could be present, but empty. Skip processing if the interface has ↵jim-p2013-11-111-1/+1
| | | | no IP address.
* If the interface is configured and not enabled, bail. We do not need to ↵jim-p2013-11-111-0/+6
| | | | change settings for disabled interfaces. Fixes #3313
* If rc.newwanip is run on an interface that should not have an IP address, do ↵jim-p2013-09-271-0/+4
| | | | not take any action.
* Require IPv6.inc header so that if ipv6 functions are called no surprises ariseErmal2013-09-101-0/+1
|
* When the v4 wan is dynamic and v6 is type dhcp and v6 information is ↵Ermal2013-09-041-0/+4
| | | | retrieved through v4 link than trigger dhcp6c reconfiguration.
* Manually revert the patch to cleanup aliases since now its propely handled ↵Ermal2013-08-011-3/+0
| | | | in the ip assignements. Ticket #2495
* Call interface_ipalias_cleanup() after $interface is initialized, and get ↵Renato Botelho2013-07-161-4/+8
| | | | current IP after it
* Actually do this upon entering to get proper ipErmal2013-07-051-1/+3
|
* Fixes #2495. On trigering of rc.newwanip remove all ipaliases from the ↵Ermal2013-07-051-0/+1
| | | | interface since they will be readded later on. This will also make sure to have the correct address order
* Do not reconfigure dhcp v6 on v4 ip address event. Only handle 6rd and 6to4 ↵Ermal2013-07-031-4/+0
| | | | while the former is questionable if needed
* Copy/pasto does well up to some pointErmal2013-07-031-6/+4
|
* On every ip change renew the hosts fileErmal2013-07-031-2/+1
|
* Run reconfiguration only for changed ip address or dynamic interfaceErmal2013-04-121-34/+26
|
* Remove these from hereErmal2013-04-121-5/+0
|
* Only reload racoon when there is at least one tunnel enabled on the ↵Renato Botelho2013-04-041-2/+2
| | | | interface used to call rc.newwanip(v6). It fixes #2922
* Fix whitespace and indentRenato Botelho2013-03-191-42/+42
|
* Use get_interface_ipv6 on rc.newwanipv6 to and teach it to flush the cache ↵Ermal2013-03-181-0/+4
| | | | on optional parameter. Also teach get_real_interface about the tedios ipv6 tunnel interfaces and return them when ipv6 family is specified
* fix typoRenato Botelho2013-02-201-1/+1
|
* Restart snmpd on rc.newwanip. It should fix #2756Renato Botelho2013-02-151-0/+3
|
* Create link_interface_to_track6 to make code more readble and easily ↵Ermal2013-01-311-2/+2
| | | | trackble. Also improve the generation of rules to avoid creating problems during filter reload and some optimizations with it
* Fix interface variable to check againstjim-p2012-11-091-1/+1
|
* Don't resync openvpn if rc.newwanip is being run on an openvpn interface, to ↵jim-p2012-11-021-1/+2
| | | | avoid a loop.
* Force resync of vpns and dns even if the IP doesn't change in rc.newwanip, ↵jim-p2012-09-141-7/+14
| | | | since we could be doing failover/failback for these services.
* Sync missing code from interface.inc to newwanip scriptErmal2012-06-071-4/+12
|
* Teach mwexec and mwexec_bg how to optionally clear signal masks, and use ↵jim-p2012-05-161-1/+1
| | | | that when launching ntp or ntpdate.
* On its own, ntpd does not sync fast enough at bootup, so bring back the ↵jim-p2012-05-161-1/+2
| | | | ntpdate sync but improve it so it can't get stuck forever.
* Re-order the system routing configure after the tunneled interfaces are ↵smos2012-04-161-11/+11
| | | | configured.
OpenPOWER on IntegriCloud