diff options
| author | Brian Somers <brian@FreeBSD.org> | 2000-09-16 22:54:54 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2000-09-16 22:54:54 +0000 |
| commit | 0fb10624075a228dcbbb1c0b7ecd1e7ba7759e2b (patch) | |
| tree | eac5e1a97ce3004d22fc8dc4892495f0be7e831a /usr.sbin/pppctl | |
| parent | acb7aab0a1872b55aee7343f46d49d0bd3c0da0a (diff) | |
MFC: Add an example of how to use pppctl to tweak ppp filters to avoid
dial-on-demand at certain times of the day.
Notes
svn path=/stable/4/; revision=65965
Diffstat (limited to 'usr.sbin/pppctl')
| -rw-r--r-- | usr.sbin/pppctl/pppctl.8 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/usr.sbin/pppctl/pppctl.8 b/usr.sbin/pppctl/pppctl.8 index 7e3ebe9ecb64..879a81f42894 100644 --- a/usr.sbin/pppctl/pppctl.8 +++ b/usr.sbin/pppctl/pppctl.8 @@ -158,6 +158,27 @@ You can even make a generic script: exec pppctl /var/run/internet "$@" .Ed .Pp +You could also use +.Nm +to control when dial-on-demand works. Suppose you want +.Nm ppp +to run all the time, but you want to prevent dial-out between 8pm and 8am +each day. However, any connections active at 8pm should continue to remain +active until they are closed or naturally time out. +.Pp +A +.Xr cron 8 +entry for 8pm which runs +.Bd -literal -offset indent +pppctl /var/run/internet set filter dial 0 deny 0 0 +.Ed +.Pp +will block all further dial requests, and the corresponding 8am entry +.Bd -literal -offset indent +pppctl /var/run/internet set filter dial -1 +.Ed +.Pp +will allow them again. .Sh ENVIRONMENT The following environment variables are understood by .Nm |
