Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
2d34e81a 07/07/2014 11:12 PM Renato Botelho

Avoid reseting firewall hostname by WAN DHCP. It should fix #3746

ff3da5db 06/10/2014 01:42 PM Renato Botelho

Fix #3700 and other syntax issues:

- 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...

6214dd36 03/28/2014 10:15 PM Ermal LUÇI

Remove unused ppp-script

0b1f9973 08/01/2013 11:14 AM Ermal LUÇI

Whitespace fixes

8540ee75 08/01/2013 11:13 AM Ermal LUÇI

Set the interface as first here to properly be able to identify it after in php code. Ticket #2495

1befdbf8 03/07/2013 10:03 AM Ermal LUÇI

Tune up a bit dhclient-script and call the kill state command only once its enough

096f2962 02/12/2013 12:01 PM Ermal LUÇI

Ticket #1629 Another round of fixes related to state clearing

8f563bb4 01/31/2013 10:04 PM Ermal LUÇI

Use the better -Fs modifies to pf to kill the states by interface. Also kill both sides on an interface when -k needs to be used

9eb49a51 01/30/2013 10:26 AM Ermal LUÇI

pfctl -b is gone just use std tools of pfctl

d53a9a51 01/05/2013 03:02 PM Seth Mos

The ISC client was far worse then the WIDE client was, back to plan A
Revert "Merge changes required for using the ISC dhclient in pfSense with prefix delegation. This should hopefully be a bit more reliable in the long run."

This reverts commit 651018775c78e38045966825b920b641a0302b43....

65101877 10/12/2012 10:20 AM Seth Mos

Merge changes required for using the ISC dhclient in pfSense with prefix delegation. This should hopefully be a bit more reliable in the long run.
The dhclient6-script could be merged with dhclient-script in the future.
Still need to cleanup old adresses and prefixes, as well as LAN prefixes when a old prefix dissapears. This needs some thought and clue to strap together.

96f7a687 09/27/2012 04:43 AM Jim Pingle

Some more state killing refinements.

80c043fa 09/26/2012 12:47 PM Jim Pingle

Remove states before removing the old address, or the file will be gone and the code to kill the states won't ever run.

06498591 08/29/2012 05:30 PM Jim Pingle

Try to remove old states when a DHCP IP changes, might be related to ticket #1629 and also "unable to allocate llinfo" messages from states through an old gateway.

978cf4fd 05/06/2011 09:02 PM Ermal LUÇI

Actaully put the route adding under the conditional logic checking. Ticket #1408.

e5f3359c 04/29/2011 06:15 PM Ermal LUÇI

Send route delete message to blackhole.

cfe92577 04/29/2011 06:13 PM Ermal LUÇI

Ticket #1408. Do not add static routes for automatically learned dns servers from dhcp if Allow override is not selected.

e3dc055a 04/22/2011 07:48 PM Ermal LUÇI

Actually correct check meaning.

bd17f93d 04/22/2011 07:23 PM Ermal LUÇI

Do not an ip of all 1s as a gateways since it cannot be pinged.

4eb4b18a 04/09/2011 04:00 PM Jim Pingle

Revert changes to dhclient-script. Appears to have broken DNS servers from DHCP. Ticket #1428

b510be5c 04/07/2011 08:17 PM Scott Ullrich

use same egrep statement for both checks

1fd807da 04/07/2011 08:16 PM Scott Ullrich

Use full path to egrep

d0cc727e 04/07/2011 08:15 PM Scott Ullrich

Use full path to egrep

955f2d78 04/07/2011 08:11 PM Scott Ullrich

Use some Seth egrep foo to protect from compromised DHCP servers. CVE-2011-0997

5766add8 04/06/2011 10:42 AM Ermal LUÇI

If the supplied gateway is all ones(255.255.255.255) do not report it as a gateway since its useless.

06d30ce7 03/07/2011 09:42 PM Ermal LUÇI

Handle the case on some special configs with a gateway of all 1's otherwise strange thing happens.

c90ba62d 02/09/2011 07:13 PM Ermal LUÇI

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.

bb92b70f 12/10/2010 01:02 AM Ermal LUÇI

Actually pass the right parameter!

409dc2e1 12/08/2010 05:57 PM Ermal LUÇI

Actually we do not use this code at all in pfSense.

6cf1cc61 12/08/2010 05:55 PM Ermal LUÇI

Do not overrite the default gateway if already found.

7afd6325 12/06/2010 06:53 PM Ermal LUÇI

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.

bacd881e 10/27/2010 08:30 PM Ermal LUÇI

Fixes #976. Bring in the piecies for classless routing from FreeBSD 8.1 script.

6a94b64c 09/22/2010 06:47 PM Ermal LUÇI

Revert "comment out line that's hanging dhclient for now"

This reverts commit 53a37b66d343682700ff49d595b3ea1310ec320f.

53a37b66 09/22/2010 05:34 PM Chris Buechler

comment out line that's hanging dhclient for now

86dcdfc9 09/16/2010 10:42 PM Ermal LUÇI

Add as a search domain the domains suggested by dhcp.

9d1f614c 09/16/2010 10:28 PM Ermal LUÇI

Fix typo.

04c528e7 09/15/2010 07:47 PM Ermal LUÇI

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.

0c452870 09/15/2010 07:24 PM Ermal LUÇI

Reload dns and interface properly on dynamic types.

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

Use the new events mechanisms to dispatch events.

155e343b 06/01/2010 10:23 PM Ermal LUÇI

Do not use netstat to fetch default gateway interface but other faster commands to avoid problems on large interface setups.

924f202e 05/31/2010 07:14 PM Ermal LUÇI

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.

1fb05961 05/31/2010 06:21 PM Ermal LUÇI

Use full path and use variables to be consistent.

99b9708b 05/13/2010 03:41 PM Jim Pingle

Fix static route for DNS from DHCP servers.

1033de74 03/23/2010 09:13 PM Ermal LUÇI

Resolve problems with dns server setup when allow override is set. Also add static routes for all nameservers to be friendly with multiwan.

1570d27a 02/03/2010 11:55 PM Ermal Luçi

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.

5a730049 01/28/2010 08:07 PM Ermal Luçi

Simplify recording of gateway coming form ppp configuration.

3ac30070 12/21/2009 05:39 PM Ermal Luçi

Do not break rc.newwanip by putting more information than requested in the file.

29e6e88b 12/21/2009 05:00 AM Chris Buechler

use correct gateway IP for PPP

9d933d94 10/26/2009 04:50 PM Scott Ullrich

Handle secondary DNS correctly for 3G

1d894eaf 10/26/2009 04:43 PM Scott Ullrich

Switch over to handling DNS from ppp.linkup allowing mulitple 3G cards to coexist on the same box

70af94d7 10/26/2009 04:55 AM Scott Ullrich

Add ppp endpoints IP as gateway

36bf235e 10/26/2009 04:25 AM Scott Ullrich

Add and use ppp-script

049a688e 03/16/2009 05:50 PM Ermal Luçi

Remove ftp-proxy/pftpx/ftpsesame references we handle all of this in kernel now.(yay!)

866d2a17 11/09/2008 05:38 AM Scott Ullrich

Correctly set old wan ip

0697645d 11/09/2008 05:08 AM Scott Ullrich

Set /tmp/rc.newwanip_oldip

6c0327f1 08/12/2008 09:24 PM Ermal Luçi

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.

d0d7f09a 02/23/2007 06:35 PM Scott Ullrich

DHCP Renew does "too much"

Ticket #1260

e89124ac 02/20/2007 05:29 AM Scott Ullrich

Nuke old and unused code which was commented out.

a63ce784 02/20/2007 05:28 AM Scott Ullrich

Bring back hostname option since it is not leading to the short write errors

b4a69e17 02/20/2007 12:00 AM Scott Ullrich

Sprinkle debugging statements throughout to try and obtain a read of where the dhclient process is going south.

c3873def 02/19/2007 03:59 AM Scott Ullrich

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:

15b63fa8 11/30/2006 07:34 PM Scott Ullrich

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...

a85d0fa0 10/28/2006 02:08 AM Scott Ullrich

back out recent change.

8ab76dbc 10/23/2006 12:16 AM Scott Ullrich

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.

fe5869e4 10/23/2006 12:14 AM Scott Ullrich

If for any reason check_reload_status is not started when dhclient fires of dhclient-script, restart it.

d052c74e 01/08/2006 10:37 PM Scott Ullrich

Write out old ip to /tmp/rc.newwanip_oldip

d6ee4ccf 12/04/2005 07:48 AM Scott Ullrich

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.

ddf49291 11/28/2005 07:30 PM Scott Ullrich

Pass rc.newwanip operations off to check_reload_status.c

d2e83802 11/16/2005 05:12 AM Scott Ullrich

Remove the space from #! line

5a5eae32 11/13/2005 10:26 PM Scott Ullrich

Start rc.newwanip in the background

6ce3b4ec 11/13/2005 10:10 PM Scott Ullrich

Pass interface correctly to rc.newwanip

f2d2b5bb 10/30/2005 11:15 PM Scott Ullrich

Echo out the ip address of the interface after renewing to /var/db/${interface}_ip

e1c8cdf5 10/16/2005 05:34 PM Scott Ullrich

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.

c9f9573b 09/21/2005 08:54 PM Scott Ullrich

Pass the interface in question. We're multi-wan now.

Pointy-hat-to: GeekGod

4a3fd398 09/21/2005 08:46 PM Scott Ullrich

Back out last commit. /etc/rc.newwanip is supposed to trigger the filter reload

897838a8 09/21/2005 08:09 PM Scott Ullrich

Trigger filter reload after changes

ea0c6522 09/11/2005 12:42 AM Scott Ullrich

Use variables

8f687e4c 09/11/2005 12:36 AM Scott Ullrich

Cleanup hacks. Only add default route if its not added already.

3ec71029 09/11/2005 12:10 AM Scott Ullrich

Add the interface as the default gateway if all else fails

5b4180d3 09/10/2005 11:31 PM Scott Ullrich

Log commands run to bring up default route

cdda736b 09/10/2005 11:20 PM Scott Ullrich

Uncomment /dev/null.

4671d198 09/10/2005 10:52 PM Scott Ullrich

More full paths to files

24003009 09/10/2005 10:22 PM Scott Ullrich

use full path to sed, sleep, etc

f968bb86 09/10/2005 10:19 PM Scott Ullrich

use full path to route

21132591 09/10/2005 09:42 PM Scott Ullrich

Simply call exit_with_hooks. We do not need to pass it a return value.

4507a044 09/10/2005 09:40 PM Scott Ullrich

No need to check for rc.newwanip, the file will exist on pfSense

d2adb1a4 09/10/2005 09:33 PM Scott Ullrich
  • No need to rely on exit-hooks to spawn rc.newwanip, do it here.
  • Exit with 0!
a60a5619 08/30/2005 10:05 PM Scott Ullrich

Add athctrl.sh which helps in setting distance

aad37fd2 08/30/2005 07:12 PM Jeb Campbell

Dns from dhcp fixes for GG to test.

03af9b1a 08/30/2005 06:33 PM Scott Ullrich

Do not echo nameserver $nameserver, simply echo $nameserver

63aab6a1 08/30/2005 06:21 PM Scott Ullrich

Do not create /var/etc/resolv.conf in dhclient-script. Depend on system_resolvconf_generate() and /etc/rc.newwanip

b43ba51b 08/29/2005 09:20 PM Scott Ullrich

Bring back in OpenBSD's dhclient-script for doctoring

c5cbdb53 08/28/2005 02:32 AM Scott Ullrich

Restore previous dhclient-script.

0d94a9cb 08/03/2005 08:16 PM Scott Ullrich

Use /var/etc/ for temporary staging of resolv.conf

38d65554 08/03/2005 08:06 PM Scott Ullrich

Use /var/etc/ for temporary staging of resolv.conf

ddb8b357 07/10/2005 08:36 PM Scott Ullrich

Bring in m0n0wall specific patches on top of open's dhclient-script

8e4ab9fe 07/10/2005 06:45 PM Scott Ullrich

Move dhclient-script to /sbin/

f19f4e4a 11/08/2004 02:52 AM Scott Ullrich

Delete files.

f1cd913a 11/07/2004 08:22 PM Scott Ullrich

Go ahead and sync up needed binaries since we have a pfSense_sync script.