Ermal
978cf4fd6c
Actaully put the route adding under the conditional logic checking. Ticket #1408 .
2011-05-06 21:02:30 +00:00
Ermal
e5f3359c33
Send route delete message to blackhole.
2011-04-29 18:15:54 +00:00
Ermal
cfe9257765
Ticket #1408 . Do not add static routes for automatically learned dns servers from dhcp if Allow override is not selected.
2011-04-29 18:13:57 +00:00
Ermal
e3dc055a4f
Actually correct check meaning.
2011-04-22 19:48:29 +00:00
Ermal
bd17f93d4a
Do not an ip of all 1s as a gateways since it cannot be pinged.
2011-04-22 19:23:37 +00:00
jim-p
4eb4b18a0f
Revert changes to dhclient-script. Appears to have broken DNS servers from DHCP. Ticket #1428
2011-04-09 12:00:53 -04:00
Scott Ullrich
b510be5cc1
use same egrep statement for both checks
2011-04-07 16:17:23 -04:00
Scott Ullrich
1fd807da8a
Use full path to egrep
2011-04-07 16:16:26 -04:00
Scott Ullrich
d0cc727eb7
Use full path to egrep
2011-04-07 16:15:55 -04:00
Scott Ullrich
955f2d788e
Use some Seth egrep foo to protect from compromised DHCP servers. CVE-2011-0997
2011-04-07 16:11:45 -04:00
Ermal
5766add891
If the supplied gateway is all ones(255.255.255.255) do not report it as a gateway since its useless.
2011-04-06 10:42:21 +00:00
Ermal
06d30ce7db
Handle the case on some special configs with a gateway of all 1's otherwise strange thing happens.
2011-03-07 21:42:39 +00:00
Ermal
c90ba62d26
Fix an issue with dhcp parameters not specifying a defaultgw and the dhcp is the only interface with gateway as a result the box is left wihtout a default gw. Some sporadic reports have been done on this.
2011-02-09 19:13:51 +00:00
Ermal
bb92b70f9c
Actually pass the right parameter!
2010-12-10 01:02:10 +00:00
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 Luçi
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 Luçi
5a73004904
Simplify recording of gateway coming form ppp configuration.
2010-01-28 20:07:46 +00:00
Ermal Luçi
3ac300702c
Do not break rc.newwanip by putting more information than requested in the file.
2009-12-21 17:39:14 +00:00
Chris Buechler
29e6e88b80
use correct gateway IP for PPP
2009-12-21 00:00:05 -05:00
Scott Ullrich
9d933d9497
Handle secondary DNS correctly for 3G
2009-10-26 12:50:21 -04:00
Scott Ullrich
1d894eafbf
Switch over to handling DNS from ppp.linkup allowing mulitple 3G cards to coexist on the same box
2009-10-26 12:43:46 -04:00
Scott Ullrich
70af94d7b3
Add ppp endpoints IP as gateway
2009-10-26 00:55:48 -04:00
Scott Ullrich
36bf235ee5
Add and use ppp-script
2009-10-26 00:25:44 -04:00
Ermal Luçi
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