Projet

Général

Profil

Statistiques
| Branche: | Tag: | Révision:

univnautes / sbin @ master

# Date Auteur Commentaire
a9b305a8 11 novembre 2014 04:52 Chris Buechler

Set this to /8 instead since that's how it's done in stock FreeBSD 10.1. Ticket #3941

b0533f16 11 novembre 2014 04:37 Chris Buechler

Setting an interface's IP to 0.0.0.0 with mask 0.0.0.0 overwrites the
default route with that interface's link route. Later in dhclient, that
gets deleted and leaves the system with no default route. Using a /32 mask
here works in every scenario I can find, and stops the default route...

c75e8aed 06 novembre 2014 02:33 Chris Buechler

Disable delete_old_states in dhclient-script. rc.newwanip handles this correctly in 2.2, and this killed states in multiple circumstances where that isn't necessary nor desirable.

2d34e81a 08 juillet 2014 01:12 Renato Botelho

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

ff3da5db 10 juin 2014 15:42 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 28 mars 2014 23:15 Ermal

Remove unused ppp-script

0b1f9973 01 août 2013 13:14 Ermal

Whitespace fixes

8540ee75 01 août 2013 13:13 Ermal

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

1befdbf8 07 mars 2013 11:03 Ermal

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

096f2962 12 février 2013 13:01 Ermal

Ticket #1629 Another round of fixes related to state clearing

8f563bb4 31 janvier 2013 23:04 Ermal

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 30 janvier 2013 11:26 Ermal

pfctl -b is gone just use std tools of pfctl

d53a9a51 05 janvier 2013 16:02 smos

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 12 octobre 2012 12:20 smos

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 27 septembre 2012 06:43 jim-p

Some more state killing refinements.

80c043fa 26 septembre 2012 14:47 jim-p

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 29 août 2012 19:30 jim-p

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 06 mai 2011 23:02 Ermal

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

e5f3359c 29 avril 2011 20:15 Ermal

Send route delete message to blackhole.

cfe92577 29 avril 2011 20:13 Ermal

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

e3dc055a 22 avril 2011 21:48 Ermal

Actually correct check meaning.

bd17f93d 22 avril 2011 21:23 Ermal

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

4eb4b18a 09 avril 2011 18:00 jim-p

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

b510be5c 07 avril 2011 22:17 Scott Ullrich

use same egrep statement for both checks

1fd807da 07 avril 2011 22:16 Scott Ullrich

Use full path to egrep

d0cc727e 07 avril 2011 22:15 Scott Ullrich

Use full path to egrep

955f2d78 07 avril 2011 22:11 Scott Ullrich

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

5766add8 06 avril 2011 12:42 Ermal

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

06d30ce7 07 mars 2011 22:42 Ermal

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

c90ba62d 09 février 2011 20:13 Ermal

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 10 décembre 2010 02:02 Ermal

Actually pass the right parameter!

409dc2e1 08 décembre 2010 18:57 Ermal

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

6cf1cc61 08 décembre 2010 18:55 Ermal

Do not overrite the default gateway if already found.

7afd6325 06 décembre 2010 19:53 Ermal

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 27 octobre 2010 22:30 Ermal

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

6a94b64c 22 septembre 2010 20:47 Ermal

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

This reverts commit 53a37b66d343682700ff49d595b3ea1310ec320f.

53a37b66 22 septembre 2010 19:34 Chris Buechler

comment out line that's hanging dhclient for now

86dcdfc9 17 septembre 2010 00:42 Ermal

Add as a search domain the domains suggested by dhcp.

9d1f614c 17 septembre 2010 00:28 Ermal

Fix typo.

04c528e7 15 septembre 2010 21:47 Ermal

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 15 septembre 2010 21:24 Ermal

Reload dns and interface properly on dynamic types.

0ae6daf8 07 septembre 2010 21:36 Ermal

Use the new events mechanisms to dispatch events.

155e343b 02 juin 2010 00:23 Ermal

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

924f202e 31 mai 2010 21:14 Ermal

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 31 mai 2010 20:21 Ermal

Use full path and use variables to be consistent.

99b9708b 13 mai 2010 17:41 jim-p

Fix static route for DNS from DHCP servers.

1033de74 23 mars 2010 22:13 Ermal

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

1570d27a 04 février 2010 00:55 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 28 janvier 2010 21:07 Ermal Lu?i

Simplify recording of gateway coming form ppp configuration.

3ac30070 21 décembre 2009 18:39 Ermal Lu?i

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

29e6e88b 21 décembre 2009 06:00 Chris Buechler

use correct gateway IP for PPP

9d933d94 26 octobre 2009 17:50 Scott Ullrich

Handle secondary DNS correctly for 3G

1d894eaf 26 octobre 2009 17:43 Scott Ullrich

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

70af94d7 26 octobre 2009 05:55 Scott Ullrich

Add ppp endpoints IP as gateway

36bf235e 26 octobre 2009 05:25 Scott Ullrich

Add and use ppp-script

049a688e 16 mars 2009 18:50 Ermal Lu?i

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

866d2a17 09 novembre 2008 06:38 Scott Ullrich

Correctly set old wan ip

0697645d 09 novembre 2008 06:08 Scott Ullrich

Set /tmp/rc.newwanip_oldip

6c0327f1 12 août 2008 23:24 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 23 février 2007 19:35 Scott Ullrich

DHCP Renew does "too much"

Ticket #1260

e89124ac 20 février 2007 06:29 Scott Ullrich

Nuke old and unused code which was commented out.

a63ce784 20 février 2007 06:28 Scott Ullrich

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

b4a69e17 20 février 2007 01:00 Scott Ullrich

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

c3873def 19 février 2007 04:59 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 30 novembre 2006 20:34 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 28 octobre 2006 04:08 Scott Ullrich

back out recent change.

8ab76dbc 23 octobre 2006 02:16 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 23 octobre 2006 02:14 Scott Ullrich

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

d052c74e 08 janvier 2006 23:37 Scott Ullrich

Write out old ip to /tmp/rc.newwanip_oldip

d6ee4ccf 04 décembre 2005 08:48 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 28 novembre 2005 20:30 Scott Ullrich

Pass rc.newwanip operations off to check_reload_status.c

d2e83802 16 novembre 2005 06:12 Scott Ullrich

Remove the space from #! line

5a5eae32 13 novembre 2005 23:26 Scott Ullrich

Start rc.newwanip in the background

6ce3b4ec 13 novembre 2005 23:10 Scott Ullrich

Pass interface correctly to rc.newwanip

f2d2b5bb 31 octobre 2005 00:15 Scott Ullrich

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

e1c8cdf5 16 octobre 2005 19:34 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 21 septembre 2005 22:54 Scott Ullrich

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

Pointy-hat-to: GeekGod

4a3fd398 21 septembre 2005 22:46 Scott Ullrich

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

897838a8 21 septembre 2005 22:09 Scott Ullrich

Trigger filter reload after changes

ea0c6522 11 septembre 2005 02:42 Scott Ullrich

Use variables

8f687e4c 11 septembre 2005 02:36 Scott Ullrich

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

3ec71029 11 septembre 2005 02:10 Scott Ullrich

Add the interface as the default gateway if all else fails

5b4180d3 11 septembre 2005 01:31 Scott Ullrich

Log commands run to bring up default route

cdda736b 11 septembre 2005 01:20 Scott Ullrich

Uncomment /dev/null.

4671d198 11 septembre 2005 00:52 Scott Ullrich

More full paths to files

24003009 11 septembre 2005 00:22 Scott Ullrich

use full path to sed, sleep, etc

f968bb86 11 septembre 2005 00:19 Scott Ullrich

use full path to route

21132591 10 septembre 2005 23:42 Scott Ullrich

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

4507a044 10 septembre 2005 23:40 Scott Ullrich

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

d2adb1a4 10 septembre 2005 23:33 Scott Ullrich
  • No need to rely on exit-hooks to spawn rc.newwanip, do it here.
  • Exit with 0!
a60a5619 31 août 2005 00:05 Scott Ullrich

Add athctrl.sh which helps in setting distance

aad37fd2 30 août 2005 21:12 Jeb Campbell

Dns from dhcp fixes for GG to test.

03af9b1a 30 août 2005 20:33 Scott Ullrich

Do not echo nameserver $nameserver, simply echo $nameserver

63aab6a1 30 août 2005 20:21 Scott Ullrich

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

b43ba51b 29 août 2005 23:20 Scott Ullrich

Bring back in OpenBSD's dhclient-script for doctoring

c5cbdb53 28 août 2005 04:32 Scott Ullrich

Restore previous dhclient-script.

0d94a9cb 03 août 2005 22:16 Scott Ullrich

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

38d65554 03 août 2005 22:06 Scott Ullrich

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

ddb8b357 10 juillet 2005 22:36 Scott Ullrich

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

8e4ab9fe 10 juillet 2005 20:45 Scott Ullrich

Move dhclient-script to /sbin/