Project

General

Profile

Download (6.79 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
635c00d3 12/27/2013 09:35 PM Ermal LUÇI

Correct the check to what was intended

3e5933f2 12/20/2013 10:50 PM Ermal LUÇI

Use return rather than exit to be friendly on CGI

c71b14fd 12/13/2013 11:09 PM Ermal LUÇI

Make scripts able to react when called from FCGI with GET method

629f07c3 11/11/2013 06:12 PM Jim Pingle

This tag could be present, but empty. Skip processing if the interface has no IP address.

63f72828 11/11/2013 06:10 PM Jim Pingle

If the interface is configured and not enabled, bail. We do not need to change settings for disabled interfaces. Fixes #3313

93821aea 09/27/2013 05:14 PM Jim Pingle

If rc.newwanip is run on an interface that should not have an IP address, do not take any action.

8d8f5e49 09/10/2013 09:35 AM Ermal LUÇI

Require IPv6.inc header so that if ipv6 functions are called no surprises arise

0b18ef05 09/04/2013 03:03 PM Ermal LUÇI

When the v4 wan is dynamic and v6 is type dhcp and v6 information is retrieved through v4 link than trigger dhcp6c reconfiguration.

e506b054 08/01/2013 11:11 AM Ermal LUÇI

Manually revert the patch to cleanup aliases since now its propely handled in the ip assignements. Ticket #2495

de8f0075 07/16/2013 07:31 PM Renato Botelho

Call interface_ipalias_cleanup() after $interface is initialized, and get current IP after it

0007f5b3 07/05/2013 05:56 PM Ermal LUÇI

Actually do this upon entering to get proper ip

4454f1f3 07/05/2013 05:55 PM Ermal LUÇI

Fixes #2495. On trigering of rc.newwanip remove all ipaliases from the interface since they will be readded later on. This will also make sure to have the correct address order

2bc45785 07/03/2013 01:41 PM Ermal LUÇI

Do not reconfigure dhcp v6 on v4 ip address event. Only handle 6rd and 6to4 while the former is questionable if needed

9ce0dd12 07/03/2013 01:38 PM Ermal LUÇI

Copy/pasto does well up to some point

c9065c1e 07/03/2013 01:37 PM Ermal LUÇI

On every ip change renew the hosts file

ef59836c 04/12/2013 06:19 PM Ermal LUÇI

Run reconfiguration only for changed ip address or dynamic interface

d9ae755d 04/12/2013 06:10 PM Ermal LUÇI

Remove these from here

aa752473 04/04/2013 12:06 PM Renato Botelho

Only reload racoon when there is at least one tunnel enabled on the interface used to call rc.newwanip(v6). It fixes #2922

7488a9e0 03/19/2013 12:23 PM Renato Botelho

Fix whitespace and indent

b6c1f22f 03/18/2013 02:36 PM Ermal LUÇI

Use get_interface_ipv6 on rc.newwanipv6 to and teach it to flush the cache on optional parameter. Also teach get_real_interface about the tedios ipv6 tunnel interfaces and return them when ipv6 family is specified

b82e4696 02/20/2013 05:55 PM Renato Botelho

fix typo

77901966 02/15/2013 05:40 PM Renato Botelho

Restart snmpd on rc.newwanip. It should fix #2756

7a04cd20 01/31/2013 11:07 AM Ermal LUÇI

Create link_interface_to_track6 to make code more readble and easily trackble. Also improve the generation of rules to avoid creating problems during filter reload and some optimizations with it

ca7a78d8 11/09/2012 01:11 PM Jim Pingle

Fix interface variable to check against

158f0e7d 11/02/2012 04:29 AM Jim Pingle

Don't resync openvpn if rc.newwanip is being run on an openvpn interface, to avoid a loop.

611b65a8 09/14/2012 04:36 PM Jim Pingle

Force resync of vpns and dns even if the IP doesn't change in rc.newwanip, since we could be doing failover/failback for these services.

b5264f22 06/07/2012 10:05 AM Ermal LUÇI

Sync missing code from interface.inc to newwanip script

b61e8960 05/16/2012 06:03 PM Jim Pingle

Teach mwexec and mwexec_bg how to optionally clear signal masks, and use that when launching ntp or ntpdate.

0b8e9d38 05/16/2012 02:48 PM Jim Pingle

On its own, ntpd does not sync fast enough at bootup, so bring back the ntpdate sync but improve it so it can't get stuck forever.

b5191708 04/16/2012 04:45 PM Seth Mos

Re-order the system routing configure after the tunneled interfaces are configured.

c1a104c7 04/05/2012 05:47 PM Seth Mos

Correct the fieldname we need to look into so we actually configure the tunneled interfaces.

73c8a6c7 04/04/2012 03:36 PM Seth Mos

Make sure that we reconfigure the tunneled interfaces when we get a new ipv4 address.

69b54cbe 04/01/2012 07:50 AM Seth Mos

Add logic that (re)configures the dependent interface that has interface tracking setup for a tunneled IPv6 protocol.

29bf947e 03/15/2012 04:33 AM Phil Davis

Use better is_array test to check if there are any gifs in the config.

efb5b9f1 03/14/2012 08:09 AM Phil Davis

Update etc/rc.newwanip

8614f335 08/29/2011 07:33 PM Ermal LUÇI

Fixes #1666. Check if the interface needs to be added to a bridge during rc.newwanip as well.

90c386ba 07/24/2011 04:28 PM Jim Pingle

Revert "Already doing this no need to duplicate" <- no, we aren't 100% duplicating this. This commit breaks fully reconfiguring assigned gif interfaces.

This reverts commit 87f0f42c3230ad7ad15b14a8a9d63c58f8b2e379.

87f0f42c 07/14/2011 01:13 PM Ermal LUÇI

Already doing this no need to duplicate

5a4c0b5c 07/06/2011 01:41 PM Jim Pingle

Merge remote branch 'upstream/master'

Conflicts:
etc/version

76f5d95c 07/05/2011 08:28 PM Scott Ullrich

Add issing include to avoid PHP fatal error when calling enable_rrd_graphing()

2488a7e7 07/01/2011 03:38 PM Jim Pingle

Merge remote branch 'upstream/master'

dfa766ff 06/28/2011 08:47 PM Ermal LUÇI

Put resolvconf generation first since gif tunnels can use hostanmes

48484aac 06/28/2011 08:45 PM Ermal LUÇI

Add recovery code for gif/gre the same as in interface_configure. This helps gif/gre tunnels. Needed for capr? Suggested-by: jim-p

da70dc36 06/28/2011 08:12 PM Jim Pingle

Move apinger monitor reconfigure down after gif, since gif can add gateways.

ecc584aa 06/28/2011 07:57 PM Jim Pingle

Reconfigure gif so it picks up the new wan ip.

156bf9b1 06/08/2011 06:13 PM Jim Pingle

Merge remote branch 'upstream/master'

0042f5d9 06/08/2011 02:54 PM Ermal LUÇI

Send correct event for reloading packages.

58005e52 06/01/2011 01:00 PM Jim Pingle

Merge remote branch 'upstream/master'

Conflicts:
conf.default/config.xml
etc/inc/filter.inc
etc/inc/globals.inc
etc/inc/pfsense-utils.inc
etc/inc/upgrade_config.inc
usr/local/www/interfaces.php

dfb30a89 05/27/2011 07:56 AM Ermal LUÇI

Trigger reloading of packages through check_reload_status so it can serialize the calls to not DoS the OS with processes triggered from this. Ticket #1534

839ee78f 05/21/2011 09:16 PM Seth Mos

Further fine tune the gif tunnel default route commands.

3be49c5f 05/21/2011 08:41 PM Seth Mos

Run system_routing_configure() for all the gif interfaces when the parent interfaces renews.

cd11a142 04/12/2011 05:52 PM Jim Pingle

Drop the ntpdate sync in favor of using ntpd -s, which should have the same net effect without needing the shell script that has been prone to hanging.

f206afb5 04/04/2011 10:32 AM Ermal LUÇI

On interface ip change reload even igmpproxy. Reported-by: http://forum.pfsense.org/index.php/topic,34372.0.html

9ccecb65 03/04/2011 05:37 PM Ermal LUÇI

If the interface triggering rc.newwanip is not assigned just reload packages and the filter and exit.

3d9e9252 01/21/2011 10:54 PM Ermal LUÇI

Do not write the old ip to the cache file unless it changes. Might help in Ticket #943.

55c51af7 01/03/2011 09:29 PM Ermal LUÇI

Ticket #1152. Call rc.newwanip even on openvpn linkup event to do the correct reloading of gateways and services. Add a safe belt to avoid a recursion in openvpn itself from rc.newwanip.

9c4c5e80 12/16/2010 03:12 PM Jim Pingle

If the IP stays the same, still resync VPNs if it's a PPP type interface.

ebbae443 12/16/2010 03:12 PM Jim Pingle

Move these back, it may not play nice with DHCP renews

b7c38b2e 12/16/2010 02:57 PM Jim Pingle

Move IPsec up too, it should always resync.

4d3367b1 12/16/2010 02:55 PM Jim Pingle

OpenVPN needs resync even if the IP did not change, because the IP may have disappeared and caused it to exit.

2c6b0d67 12/10/2010 11:44 PM Ermal LUÇI

Call a filter reload even though the ip might not have changed. This makes the gateway pools work after an interface comes up again.

9e18b392 12/10/2010 06:55 PM Scott Ullrich

Do not call rc.newwanip on bootup. Remove bogus return 0;

ed62880b 12/06/2010 03:25 PM Ermal LUÇI

Correct code to reconfigure an interface for groups/gre/gif tunnels to take into account that an interface might be part of many instances of this. Also reconfigure interface groups for every newwanip trigger on interfaces to make sure dynamic interfaces retain their membership on groups.

db8e9e53 10/25/2010 12:35 PM Ermal LUÇI

Ticket #943. Call the update procedure directly to not do an unecessary loop.

3640c567 09/30/2010 04:52 PM Ermal LUÇI

Ticket #921. Actually reconfigure apinger in case of newip event because it might impact a previous down event.

3c3ba8f0 09/17/2010 02:29 PM Ermal LUÇI

Correct typo. Spotted by: wagnoza(IRC)

b746dc61 09/17/2010 01:38 PM Ermal LUÇI

on newip event reload the static routes for that interface because on dynamic gateways the ip might have changed. While here make sure the interface argument is repsected on system_routing_configure() and use send_event to reconfigure an interface to aleviate a possible race.

01f1b601 09/14/2010 08:32 PM Ermal LUÇI

Ticket #867. Flush the cache when restarting apinger and also when rc.newwanip is called. also restart apinger earlier in to be on latest address asap.

c3b1ba3f 09/07/2010 07:44 PM Ermal LUÇI

Ticket #876. Reload gateways/apinger before filter_reload so the new ip/gateway is considered up from the beginning.

0ae6daf8 09/07/2010 07:36 PM Ermal LUÇI

Use the new events mechanisms to dispatch events.

17649c87 08/17/2010 10:15 AM Ermal LUÇI

No functional change just code reshuffle.

461c0a1a 04/27/2010 08:50 PM Ermal LUÇI

Ticket #449. Actually save something to read back.

40655051 04/27/2010 08:47 PM Ermal LUÇI

Ticket #449. Bring back the check if there is really an ip change on interface event. This avoids reloading openvpn and other sevices when actually there is no change.

85b2f424 04/13/2010 08:31 PM Ermal LUÇI

Improve startup time by delaying dyndns synching.

547340c4 03/29/2010 05:28 PM Ermal LUÇI

This is of no use. Disable until its writer shows up.

c7f60193 03/29/2010 05:22 PM Ermal LUÇI

Ticket #449. Teach OpenVPN to reload only tunnels for the specified interface. Use this is rc.newwanip script to reload only these tunnels.

f973148e 03/19/2010 07:27 PM Ermal LUÇI

Add needed includes.

e7ee3bfe 03/15/2010 05:28 PM Ermal LUÇI

Create resolv.conf whenever a new ip comes in to have it ready for vpn reloads. Also restart packages in background.

329db705 03/09/2010 06:58 PM Ermal Luçi

Remove legacy code.

2cdf37c6 12/27/2009 10:28 PM Ermal Luçi

Fix function which should fix default gw handling for dynamic interfaces.

ba0be463 12/22/2009 11:18 PM Ermal Luçi

This is not called only for wan.

5e3ed9bc 12/22/2009 11:16 PM Ermal Luçi

Fix logging statements to not consider this only as called from dhcp.

771df54e 12/21/2009 05:31 PM Ermal Luçi

More fine grained update of dyndns and dnsupdate.

0be93267 12/11/2009 11:42 AM Ermal Luçi

Touch up some comments and error messages. Teach dydns_configure to update only one interface.

166c82ed 12/08/2009 12:01 AM Chris Buechler

fix old_ip detection, clean up white space

4494cf6a 12/07/2009 11:50 PM Chris Buechler

fix typos

5f2d078e 11/22/2009 12:10 AM Scott Ullrich

Decouple filter.inc from functions.inc. There is no need to process filter functions most of the time. Include filter.inc where it is needed

483e6de8 11/21/2009 09:08 PM Scott Ullrich

Rework includes/require. This saves about 4 megabytes.
Simplify get_memory(). Tested on mips/i386

b3213553 07/10/2009 02:53 AM Scott Ullrich

Reinstate dhclient_update_gateway_groups_defaultroute() it was moved to gwlb.inc

d8307a65 06/25/2009 02:52 AM Scott Ullrich

It looks like half of my commit is missing, comment this function out for a bit.

2468ae76 03/18/2009 11:04 PM Scott Ullrich

Update gateway group gateway IP for dhcp interface wan interfaces.

5b6eac01 11/10/2008 04:17 AM Scott Ullrich

Use product_name

00518840 11/09/2008 05:43 AM Scott Ullrich

Sync the time on ip change and alert the logs

be38535c 11/08/2008 03:56 PM Ermal Luçi

Try to use where possible filter_configure so upcoming event modifications can be easily integrated.

85a5da13 10/23/2008 09:51 PM Ermal Luçi
  • Rename get_current_wan_address to get_interface_ip
  • Rename get_real_wan_interface to get_real_interface
  • Simplify get_interface_ip by using find_interface_ip which should help in speed to since its using caching. Pointed by billm@
  • Cleanup some code when passing or remove some unused one.
df4ae7c8 10/06/2008 10:23 PM Ermal Luçi
  • Remove bigpond support from backend.
  • Use killbypid instead of sigkillbypid SIGUSR2 is not doing what is expected.
  • Actually start pppoe/pptp when the routing is called for this.
67ee1ec5 07/14/2008 08:43 PM Ermal Luçi
  • Merge multiple PPPoE/PPTP interfaces from RELENG_1_MULTI_ANYTHING
  • Much improved rule generation speed
  • Many bug fixing in general of the interface handling

NOTE: this is only half part of the changes the other half will come after

f7f2ef1f 07/08/2008 09:11 PM Seth Mos

Remove configure_slbd() from rc.newwanip.
Does relayd need this hook no rc.newwanip?

c6a22c85 07/01/2008 07:16 PM Seth Mos

remove the setup_gateways_monitor() from system_routing_configure() as this causes a filter reload loop when
apinger is reloading.
Change apinger to reload instead of killing
use setup_gateways_monitor() in rc.bootup and rc.newwanip

5c6c1712 06/09/2007 08:04 PM Scott Ullrich

Cleanup logging line so that it is more readable.