Correctly set old wan ip
Set /tmp/rc.newwanip_oldip
Correct location to "true".
Noticed-by: dsh
Quiet down the dhclient log files in preperation for 1.-2-BETA-1 release.
DHCP Renew does "too much"
Ticket #1260
Nuke old and unused code which was commented out.
Bring back hostname option since it is not leading to the short write errors
Sprinkle debugging statements throughout to try and obtain a read of where the dhclient process is going south.
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
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 almostcertainly the problem. You should not exit from dhclient-exit-hooksat all since it occurs in the context of dhclient-script and this exit...
back out recent change.
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.
If for any reason check_reload_status is not started when dhclient fires of dhclient-script, restart it.
Write out old ip to /tmp/rc.newwanip_oldip
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.
Pass rc.newwanip operations off to check_reload_status.c
Remove the space from #! line
Start rc.newwanip in the background
Pass interface correctly to rc.newwanip
Echo out the ip address of the interface after renewing to /var/db/${interface}_ip
MFC 6871If 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.
Pass the interface in question. We're multi-wan now.
Pointy-hat-to: GeekGod
Back out last commit. /etc/rc.newwanip is supposed to trigger the filter reload
Trigger filter reload after changes
Use variables
Cleanup hacks. Only add default route if its not added already.
Add the interface as the default gateway if all else fails
Log commands run to bring up default route
Uncomment /dev/null.
More full paths to files
use full path to sed, sleep, etc
use full path to route
Simply call exit_with_hooks. We do not need to pass it a return value.
No need to check for rc.newwanip, the file will exist on pfSense
Add athctrl.sh which helps in setting distance
Dns from dhcp fixes for GG to test.
Do not echo nameserver $nameserver, simply echo $nameserver
Do not create /var/etc/resolv.conf in dhclient-script. Depend on system_resolvconf_generate() and /etc/rc.newwanip
Bring back in OpenBSD's dhclient-script for doctoring
Restore previous dhclient-script.
Use /var/etc/ for temporary staging of resolv.conf
Bring in m0n0wall specific patches on top of open's dhclient-script
Move dhclient-script to /sbin/
Delete files.
Go ahead and sync up needed binaries since we have a pfSense_sync script.