diff options
author | nik <nik@FreeBSD.org> | 2000-04-30 22:28:21 +0000 |
---|---|---|
committer | nik <nik@FreeBSD.org> | 2000-04-30 22:28:21 +0000 |
commit | 6c88ac1d5081e258886157114878adfeaeb5f348 (patch) | |
tree | 74f8ebc7a669c8458fac02a694583c3af198f92c /usr.sbin | |
parent | 1549480661aa1bd816f0a32c3403b83ff9b8437f (diff) | |
download | FreeBSD-src-6c88ac1d5081e258886157114878adfeaeb5f348.zip FreeBSD-src-6c88ac1d5081e258886157114878adfeaeb5f348.tar.gz |
Add another example showing how you can use pppctl to only allow
dial out at certain times of the day.
Approved by: brian
Diffstat (limited to 'usr.sbin')
-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 7e3ebe9..879a81f 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 |