Project

General

Profile

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

# Date Author Comment
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.

a2b58f83 06/09/2007 08:02 PM Scott Ullrich

find_interface_ip() requires a real interface

4c91a356 05/15/2007 05:11 AM Seth Mos

Add function to forcefully reload VPN on wan ip change.

6161e99d 05/14/2007 10:53 PM Scott Ullrich

Add missing )'s.

How this got past our PHP LINT checker is beyond me.

39b11811 04/27/2007 07:51 PM Scott Ullrich

Trim carriage return off of the $old_ip so that the <> comparison works.

This should fix the packages from always being restarted even if the ip was the same.

8f8f9721 04/22/2007 06:25 PM Scott Ullrich

When dhclient renews the ip address and the ip has not changed then old_ip_address will not be set. Ignore this and do not reload all packages when the ip has not changed.

5b4c9c6b 02/19/2007 05:31 AM Scott Ullrich

Exit after restarting dhclient.

31a66d44 02/18/2007 08:26 PM Scott Ullrich

Log more information during rc.newwanip

a8840317 02/18/2007 08:24 PM Scott Ullrich

Log more information during rc.newwanip

2aa80139 02/18/2007 08:20 PM Scott Ullrich

Note the interface that we are working on in the logs to ensure that we are obtaining the IP address correctly initially

f00f6397 02/09/2007 09:29 PM Scott Ullrich

Only restart packages if the IP address changes

45f2708c 01/25/2007 12:56 AM Scott Ullrich

Work around DHCLIENT issue temporarily until we can deterimine why it is occuring.

cebf4a35 01/08/2007 04:24 PM Scott Ullrich

Instead of killing openvpn and restarting, simply HUP it to reload its settings.

401452ec 12/30/2006 12:45 AM Seth Mos Merge in new (outbound) load balancing configuration code from HEAD.
  • assign interfaces to pool instead of manual IP configuration
  • Only show interfaces with a gateway
  • Offer list of monitor IPs including interface gateways.

This code is tested for outbound load balancing on a carp cluster and...

ec9e5b7b 12/23/2006 01:33 AM Scott Ullrich

Remove old workaround code now that ISC dhclient is back

1cbc2a1c 12/17/2006 06:04 PM Scott Ullrich

Use correct interface when restarting dhclient

b1f7e75e 12/16/2006 01:37 AM Scott Ullrich

Revert previous dhclient crontab mojo. When running rc.newwanip if the ip == 0.0.0.0 then fire off dhclient again.

As seen on the forums ( http://forum.pfsense.org/index.php/topic,2645.0/topicseen.html )

c4b966b7 12/05/2006 01:39 AM Scott Ullrich

Back out changes to try and fix OpenVPN. We really need to fix check_reload_status

687092ae 12/03/2006 11:04 PM Scott Ullrich

Misc spelling mistakes. Remove old commented out code.

ae87302c 12/03/2006 10:22 PM Scott Ullrich

Work around the fact that check_reload_status is inheriting socket descriptors from other programs. Kill check_reload_status on wan ip change and restart it. That way openvpn can be killed and restarted, etc.

In addition while I am here, we really should restart openvpn after WAN ip changes as well.

5f3e1f12 10/03/2006 12:18 AM Scott Ullrich

Misc OpenNTPD changes. Do not restart on wan ip change

895f6e8c 10/01/2006 01:05 AM Scott Ullrich

Restart msntp on ip change

9c2640a0 10/01/2006 12:58 AM Scott Ullrich

Start packages on ip change again, in Holgers case all pacakges are exiting during the ip changeover

411d8c36 09/13/2006 04:56 PM Scott Ullrich

Kill correct process

0363c100 09/12/2006 05:31 PM Scott Ullrich

Correctly deterimine the previous ip address when running under pppoe, as well. Log an error if we cannot deterimine the ip address for any reason.

ceaf11ad 07/21/2006 09:08 PM Scott Ullrich

Only attempt kill if $helpers is defined

7ca5e057 07/21/2006 09:06 PM Scott Ullrich

Use friendly awk instead of cut.

39ac8421 07/21/2006 04:24 AM Scott Ullrich

s/$$/$/

ca8e4ed2 03/21/2006 11:07 PM Scott Ullrich

MFC Seths most excellent RRD graphing items

8af4ca7b 03/13/2006 03:57 AM Scott Ullrich

Remove \n

5f28e2d6 03/13/2006 03:56 AM Scott Ullrich

Remove \n

9c9b6357 02/15/2006 05:16 PM Scott Ullrich

Do not alter loopback interface.

41a77064 02/09/2006 10:08 PM Scott Ullrich

Fix errors:
Parse error: syntax error, unexpected ';' in /etc/rc.newwanip on line 52
Parse error: syntax error, unexpected '}' in /etc/rc.newwanip on line 55

Thanks to Trendchiller for allowing me access to his firewall to investigate.

eec69055 01/08/2006 10:39 PM Scott Ullrich

Killoff old incoming FTP helpers

Ticket #772

ecde5166 11/28/2005 06:53 PM Scott Ullrich

Try to shave off more time from rc.newwanip. Apparently MPD is STILL being blocked.

33cbbb60 11/25/2005 08:06 PM Scott Ullrich

If for some reason we fail to get the wanip, use get_current_wan_address();

c158266d 11/25/2005 07:25 PM Scott Ullrich

Make sure we are using the friendly interface name.

Ticket #702

a6a6a9c2 10/30/2005 11:23 PM Scott Ullrich

@fopen -> fopen

81b338bd 10/30/2005 07:21 PM Scott Ullrich

Do not check the old recorded ip, dhclient-script creates the file before running rc.newwanip which will result in the ip never "changing"

a35f811a 10/03/2005 07:49 PM Scott Ullrich

If ['system']['use_old_dyndns'] is set, use the old style ez-ipupdate.

06ad079b 09/21/2005 10:13 PM Scott Ullrich

Include interface in the syslog notice

bf091a77 09/21/2005 09:17 PM Scott Ullrich

Correctly handle multiple WAN's.

Pointy-hat-to: GeekGod

ca1944c3 09/10/2005 11:04 PM Scott Ullrich

Use filter_configure()

284dcdcc 09/10/2005 11:04 PM Scott Ullrich

Use filter_configure()

eece173c 09/10/2005 11:03 PM Scott Ullrich

Do not flush nat table

4c808788 09/10/2005 10:16 PM Scott Ullrich

return 0 at end of script

0cecf9db 09/09/2005 03:50 PM Scott Ullrich

Call services_dyndns_configure() after IP change

fc897bec 08/30/2005 01:24 AM Scott Ullrich

Configure filter via sync()

7916216b 08/28/2005 01:46 AM Scott Ullrich

Do not wait on boot sleep holds

f59ddc98 08/28/2005 01:36 AM Scott Ullrich

call non async filter_configure()

e7012ec3 08/28/2005 01:12 AM Scott Ullrich

revert to 1.2b9 rc.newwanip

f2f0c830 08/13/2005 09:22 PM Bill Marquette

Recommit fix for #334

68a95758 08/13/2005 05:15 AM Bill Marquette

revert

7878e137 08/13/2005 05:08 AM Bill Marquette

update dyndns

036f7009 08/01/2005 12:32 AM Scott Ullrich

Fix a XXX

8b22314b 07/16/2005 06:33 PM Scott Ullrich
  • Clean up, remove old commented out code.
  • Ensure that we are generating racoon policies after wan ip changes
602d9466 06/07/2005 05:27 PM Scott Ullrich

Relaunch pftpx on dhclient changes if necessary