Ermal
409dc2e1cc
Actually we do not use this code at all in pfSense.
2010-12-08 17:57:23 +00:00
Ermal
6cf1cc6116
Do not overrite the default gateway if already found.
2010-12-08 17:55:04 +00:00
Ermal
7afd6325f5
Modify dhclient-script to call rc.newwanip after all the changes to system have been done so races and no stale information can be extracted from the later.
2010-12-06 18:53:48 +00:00
Ermal
bacd881efc
Fixes #976 . Bring in the piecies for classless routing from FreeBSD 8.1 script.
2010-10-27 20:30:38 +00:00
Ermal
6a94b64c23
Revert "comment out line that's hanging dhclient for now"
...
This reverts commit 53a37b66d3 .
2010-09-22 18:47:47 +00:00
Chris Buechler
53a37b66d3
comment out line that's hanging dhclient for now
2010-09-22 13:34:35 -04:00
Ermal
86dcdfc9af
Add as a search domain the domains suggested by dhcp.
2010-09-16 22:42:22 +00:00
Ermal
9d1f614cf5
Fix typo.
2010-09-16 22:28:48 +00:00
Ermal
04c528e72b
Ticket #876 . Actually the event to send is interface newip $ip rather interface configure! also use the fact that now we have a /tmp/$if_defaultgw rather than relying in route get default which might block.
2010-09-15 19:47:39 +00:00
Ermal
0c452870cd
Reload dns and interface properly on dynamic types.
2010-09-15 19:24:26 +00:00
Ermal
0ae6daf834
Use the new events mechanisms to dispatch events.
2010-09-07 19:36:53 +00:00
Ermal
155e343b82
Do not use netstat to fetch default gateway interface but other faster commands to avoid problems on large interface setups.
2010-06-01 22:23:58 +00:00
Ermal
924f202ee8
Fixes #622 . Add a new file status for signaling default gateway under /tmp. dhclient script will check for this file to define if the interface needs a default gateway or not from its given routes.
2010-05-31 19:14:29 +00:00
Ermal
1fb059612c
Use full path and use variables to be consistent.
2010-05-31 18:21:42 +00:00
jim-p
99b9708b2f
Fix static route for DNS from DHCP servers.
2010-05-13 11:41:51 -04:00
Ermal
1033de7481
Resolve problems with dns server setup when allow override is set. Also add static routes for all nameservers to be friendly with multiwan.
2010-03-23 21:13:32 +00:00
Ermal Lui
1570d27a49
When removing a package delete its underlying FreeBSD pacakges.
...
Correct checks for avioding as much as possible errors.
Simplify logic in some cases.
Remove package include files when uninstalling packages.
NOTE: Some work is needed to have more error reporting. Espescially when failing to retrieve files or add them locally.
2010-02-03 23:55:22 +00:00
Ermal Lui
3ac300702c
Do not break rc.newwanip by putting more information than requested in the file.
2009-12-21 17:39:14 +00:00
Ermal Lui
049a688e5d
Remove ftp-proxy/pftpx/ftpsesame references we handle all of this in kernel now.(yay!)
2009-03-16 17:50:44 +00:00
Scott Ullrich
866d2a177e
Correctly set old wan ip
2008-11-09 05:38:41 +00:00
Scott Ullrich
0697645dfb
Set /tmp/rc.newwanip_oldip
2008-11-09 05:08:18 +00:00
Ermal Luçi
6c0327f13f
Remove bogus commands that adds a route to the new address pointing to dhcp.
...
It seems uncertain either to be a typo of $new_ip_address and $old_ip_address my test show that either cases it does more harm than good.
For now remove it altogether since it causes strange issues and makes ipsec tunnels not work on the interface with the new address.
2008-08-12 21:24:26 +00:00
Scott Ullrich
d0d7f09ab3
DHCP Renew does "too much"
Ticket #1260
2007-02-23 18:35:27 +00:00
Scott Ullrich
e89124ac81
Nuke old and unused code which was commented out.
2007-02-20 05:29:37 +00:00
Scott Ullrich
a63ce78441
Bring back hostname option since it is not leading to the short write errors
2007-02-20 05:28:47 +00:00
Scott Ullrich
b4a69e179f
Sprinkle debugging statements throughout to try and obtain a read of where the dhclient process is going south.
2007-02-20 00:00:39 +00:00
Scott Ullrich
c3873def96
Somehow the HOSTNAME code will lead to short write errors under unusual renew load. Comment out this code until we can figure out why this is happening.
Found-by: GAndreone@imapro.com
2007-02-19 03:59:55 +00:00
Scott Ullrich
15b63fa83b
Do not set an exit status in dhclient-script.
...
From a post that I dug up from Brooks:
Why on earth are you exiting with $1 as the status? This is almost
certainly the problem. You should not exit from dhclient-exit-hooks
at all since it occurs in the context of dhclient-script and this exit
values is entirely bogus.
2006-11-30 19:34:24 +00:00
Scott Ullrich
a85d0fa00c
back out recent change.
2006-10-28 02:08:55 +00:00
Scott Ullrich
8ab76dbc44
Woops, log an error to system logs when we restart check_reload_status from dhclient-script instead of simply echoing out where someone may not even see it.
2006-10-23 00:16:39 +00:00
Scott Ullrich
fe5869e43e
If for any reason check_reload_status is not started when dhclient fires of dhclient-script, restart it.
2006-10-23 00:14:34 +00:00
Scott Ullrich
d052c74ef8
Write out old ip to /tmp/rc.newwanip_oldip
2006-01-08 22:37:12 +00:00
Scott Ullrich
d6ee4ccf44
When adding nameservers to the system, add a route to the ip through the interface in question. This ensures that domain name server lookups to the nameserver goes out the correct wan address. Also before adding new entries route delete the old nameserver routes that are on file to ensure that a long uptime doesn't result in stale routes.
2005-12-04 07:48:43 +00:00
Scott Ullrich
ddf49291bd
Pass rc.newwanip operations off to check_reload_status.c
2005-11-28 19:30:04 +00:00
Scott Ullrich
5a5eae3269
Start rc.newwanip in the background
2005-11-13 22:26:06 +00:00
Scott Ullrich
6ce3b4ec13
Pass interface correctly to rc.newwanip
2005-11-13 22:10:58 +00:00
Scott Ullrich
f2d2b5bbe7
Echo out the ip address of the interface after renewing to /var/db/${interface}_ip
2005-10-30 23:15:28 +00:00
Scott Ullrich
e1c8cdf529
MFC 6871
...
If WAN is pppoe, hold down boot until connection is established This will help anyone with PPPOE on WAN and DHCP on OPTx not get incorrect gateways assigned.
2005-10-16 17:34:42 +00:00
Scott Ullrich
c9f9573b4b
Pass the interface in question. We're multi-wan now.
...
Pointy-hat-to: GeekGod
2005-09-21 20:54:59 +00:00
Scott Ullrich
4a3fd398ce
Back out last commit. /etc/rc.newwanip is supposed to trigger the filter reload
2005-09-21 20:46:41 +00:00
Scott Ullrich
897838a8c2
Trigger filter reload after changes
2005-09-21 20:09:39 +00:00
Scott Ullrich
ea0c65226a
Use variables
2005-09-11 00:42:19 +00:00
Scott Ullrich
8f687e4c07
Cleanup hacks. Only add default route if its not added already.
2005-09-11 00:36:52 +00:00
Scott Ullrich
3ec710291a
Add the interface as the default gateway if all else fails
2005-09-11 00:10:03 +00:00
Scott Ullrich
5b4180d345
Log commands run to bring up default route
2005-09-10 23:31:02 +00:00
Scott Ullrich
cdda736bb3
Uncomment /dev/null.
2005-09-10 23:20:35 +00:00
Scott Ullrich
4671d198db
More full paths to files
2005-09-10 22:52:58 +00:00
Scott Ullrich
240030098b
use full path to sed, sleep, etc
2005-09-10 22:22:07 +00:00
Scott Ullrich
f968bb86fd
use full path to route
2005-09-10 22:19:38 +00:00
Scott Ullrich
21132591a3
Simply call exit_with_hooks. We do not need to pass it a return value.
2005-09-10 21:42:27 +00:00