summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient-script
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "Fix #3700 and other syntax issues:""Renato Botelho2014-06-101-15/+15
| | | | This reverts commit 4cc2ae78d3027c349969437f08a88b1fb88c9de8.
* Revert "Fix sh syntax"Renato Botelho2014-06-101-3/+3
| | | | This reverts commit cd49f9cd5d21a6592ba690cd315f19266092bee5.
* Fix sh syntaxRenato Botelho2014-06-101-3/+3
|
* Revert "Fix #3700 and other syntax issues:"Renato Botelho2014-06-101-15/+15
| | | | This reverts commit e912bfae186b6b657daf52607f9d027f46be0478.
* Fix #3700 and other syntax issues:Renato Botelho2014-06-101-15/+15
| | | | | | | | | - Remove -G parameter from pfctl since it doesn't exist anymore - Initialize $old_router - Fix sh syntax on variable assign, it couldn't have space before = - Simplify logic - Avoid flush states twice, if it was done on IP change, don't do it again if router also has changed
* Whitespace fixesErmal2013-08-011-4/+4
|
* Set the interface as first here to properly be able to identify it after in ↵Ermal2013-08-011-0/+1
| | | | php code. Ticket #2495
* Tune up a bit dhclient-script and call the kill state command only once its ↵Ermal2013-03-071-1/+1
| | | | enough
* Ticket #1629 Another round of fixes related to state clearingErmal2013-02-121-4/+2
|
* Use the better -Fs modifies to pf to kill the states by interface. Also kill ↵Ermal2013-01-311-0/+1
| | | | both sides on an interface when -k needs to be used
* pfctl -b is gone just use std tools of pfctlErmal2013-01-301-1/+1
|
* Some more state killing refinements.jim-p2012-09-271-9/+20
|
* Remove states before removing the old address, or the file will be gone and ↵jim-p2012-09-261-2/+2
| | | | the code to kill the states won't ever run.
* Try to remove old states when a DHCP IP changes, might be related to ticket ↵jim-p2012-08-291-0/+24
| | | | #1629 and also "unable to allocate llinfo" messages from states through an old gateway.
* Actaully put the route adding under the conditional logic checking. Ticket ↵Ermal2011-05-061-1/+1
| | | | #1408.
* Send route delete message to blackhole.Ermal2011-04-291-1/+1
|
* Ticket #1408. Do not add static routes for automatically learned dns servers ↵Ermal2011-04-291-1/+4
| | | | from dhcp if Allow override is not selected.
* Actually correct check meaning.Ermal2011-04-221-1/+1
|
* Do not an ip of all 1s as a gateways since it cannot be pinged.Ermal2011-04-221-1/+5
|
* Revert changes to dhclient-script. Appears to have broken DNS servers from ↵jim-p2011-04-091-4/+3
| | | | DHCP. Ticket #1428
* use same egrep statement for both checksScott Ullrich2011-04-071-1/+1
|
* Use full path to egrepScott Ullrich2011-04-071-1/+1
|
* Use full path to egrepScott Ullrich2011-04-071-1/+1
|
* Use some Seth egrep foo to protect from compromised DHCP servers. ↵Scott Ullrich2011-04-071-3/+4
| | | | CVE-2011-0997
* If the supplied gateway is all ones(255.255.255.255) do not report it as a ↵Ermal2011-04-061-1/+4
| | | | gateway since its useless.
* Handle the case on some special configs with a gateway of all 1's otherwise ↵Ermal2011-03-071-1/+1
| | | | strange thing happens.
* Fix an issue with dhcp parameters not specifying a defaultgw and the dhcp is ↵Ermal2011-02-091-1/+2
| | | | the only interface with gateway as a result the box is left wihtout a default gw. Some sporadic reports have been done on this.
* Actually pass the right parameter!Ermal2010-12-101-1/+1
|
* Actually we do not use this code at all in pfSense.Ermal2010-12-081-6/+6
|
* Do not overrite the default gateway if already found.Ermal2010-12-081-4/+6
|
* Modify dhclient-script to call rc.newwanip after all the changes to system ↵Ermal2010-12-061-10/+8
| | | | have been done so races and no stale information can be extracted from the later.
* Fixes #976. Bring in the piecies for classless routing from FreeBSD 8.1 script.Ermal2010-10-271-0/+59
|
* Revert "comment out line that's hanging dhclient for now"Ermal2010-09-221-1/+1
| | | | This reverts commit 53a37b66d343682700ff49d595b3ea1310ec320f.
* comment out line that's hanging dhclient for nowChris Buechler2010-09-221-1/+1
|
* Add as a search domain the domains suggested by dhcp.Ermal2010-09-161-1/+1
|
* Fix typo.Ermal2010-09-161-1/+1
|
* Ticket #876. Actually the event to send is interface newip $ip rather ↵Ermal2010-09-151-10/+4
| | | | interface configure! also use the fact that now we have a /tmp/$if_defaultgw rather than relying in route get default which might block.
* Reload dns and interface properly on dynamic types.Ermal2010-09-151-9/+9
|
* Use the new events mechanisms to dispatch events.Ermal2010-09-071-5/+2
|
* Do not use netstat to fetch default gateway interface but other faster ↵Ermal2010-06-011-3/+2
| | | | commands to avoid problems on large interface setups.
* Fixes #622. Add a new file status for signaling default gateway under /tmp. ↵Ermal2010-05-311-17/+9
| | | | dhclient script will check for this file to define if the interface needs a default gateway or not from its given routes.
* Use full path and use variables to be consistent.Ermal2010-05-311-4/+4
|
* Fix static route for DNS from DHCP servers.jim-p2010-05-131-1/+1
|
* Resolve problems with dns server setup when allow override is set. Also add ↵Ermal2010-03-231-2/+0
| | | | static routes for all nameservers to be friendly with multiwan.
* When removing a package delete its underlying FreeBSD pacakges.Ermal Luçi2010-02-031-0/+2
| | | | | | | | 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.
* Do not break rc.newwanip by putting more information than requested in the file.Ermal Luçi2009-12-211-4/+4
|
* Remove ftp-proxy/pftpx/ftpsesame references we handle all of this in kernel ↵Ermal Luçi2009-03-161-3/+0
| | | | now.(yay!)
* Correctly set old wan ipScott Ullrich2008-11-091-3/+4
|
* Set /tmp/rc.newwanip_oldipScott Ullrich2008-11-091-0/+1
|
* Remove bogus commands that adds a route to the new address pointing to dhcp.Ermal Luçi2008-08-121-1/+1
| | | | | | 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.
OpenPOWER on IntegriCloud