summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ppp-linkdown
Commit message (Collapse)AuthorAgeFilesLines
* Make sure this does not operate on empty parameters, and also log when ↵jim-p2011-08-241-6/+14
| | | | removing states.
* Put a netmask of /32 to all parameters of -k/-K/-b of pfctl to avoid any issues.Ermal2011-07-111-4/+4
|
* Kill states from the previous ip the link had on all mpd consumers. Resolves ↵Ermal2011-07-061-1/+4
| | | | #1629
* Disable state killing in VPN down scripts.jim-p2011-06-201-1/+1
|
* Remove static routes that are added for dns servers when allow override is ↵Ermal2011-04-291-1/+7
| | | | allowed when a ppp interface goes down. Code borrowed from dhclient-script.
* Ticket #876. Actually the event to send is interface newip $ip rather ↵Ermal2010-09-151-0/+3
| | | | 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-0/+1
|
* Ticket #876. Add the ip to the respective files on ppp linkup event so the ↵Ermal2010-09-091-1/+1
| | | | code of dynamic gateways finds them. Also reorganize/simplify/optimize the apinger config generation code. Do not use that 127.0.0.x hack anymore and avoid loops as much as possible.
* Use the new events mechanisms to dispatch events.Ermal2010-09-071-1/+1
|
* Pass the new argumesnts to pfctl -b and correct variable name as reported on ↵Ermal2010-08-231-2/+3
| | | | Ticket #8.
* On ppp type interfaces down event signal for resolv.conf to be generated to ↵Ermal2010-08-231-0/+1
| | | | have the latest dns servers. Ticket #838.
* Ticket #8. Delete states after link fails down.Ermal2010-04-301-0/+1
|
* Revert changes as requested by Ermalgnhb2010-04-121-2/+4
|
* Implement reporting and logging of historical PPP uptime with data ↵gnhb2010-04-101-5/+6
| | | | | | | | | | | | | | | | persistent through reboot. Also, change the way uptime is captured. The mpd console is no longer used to get PPP uptime data, which will prevent spamming of PPP logs with console access messages. This means we no longer have to write out mpd_<interface>.query files to /var/etc. Now, a simple calculation of the age of the /tmp/<interface>up file is used. This gives the same data within the second as the console data so it seems acceptable. I removed some "rm -f" calls from ppp-linkdown as there was already code in interfaces.inc interface_bring_down function that unlinks the <interface>up and <interface>_router files. There is still the rm -r nameserver_<interface> call in the linkdown script. Maybe this should be moved to the interfac_bring_down function for consistency? Also, I commented out the ngctl shutdown <interface>: call. I think it's probably not necessary any more.
* Tell that the interface is down.Ermal2010-03-271-0/+1
|
* Resolve problems with dns server setup when allow override is set. Also add ↵Ermal2010-03-231-2/+2
| | | | static routes for all nameservers to be friendly with multiwan.
* Add other needed files so everything works as expected.Ermal Luçi2008-07-141-0/+6
OpenPOWER on IntegriCloud