diff options
author | Brian Somers <brian@FreeBSD.org> | 1997-11-18 18:59:57 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1997-11-18 18:59:57 +0000 |
commit | 37fc1022097857445522e05e6647f0792d9a1e7d (patch) | |
tree | 93e9d93219f36b7541185b6345e27deb40dac528 /etc/ppp | |
parent | 082798e7bd4703ab07fc98292d5aa6089d4f3908 (diff) | |
download | src-37fc1022097857445522e05e6647f0792d9a1e7d.tar.gz src-37fc1022097857445522e05e6647f0792d9a1e7d.zip |
Add a loopback example.
Notes
Notes:
svn path=/head/; revision=31286
Diffstat (limited to 'etc/ppp')
-rw-r--r-- | etc/ppp/ppp.linkup.sample | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/etc/ppp/ppp.linkup.sample b/etc/ppp/ppp.linkup.sample index 4b5357ec8dce..ce584dc27eae 100644 --- a/etc/ppp/ppp.linkup.sample +++ b/etc/ppp/ppp.linkup.sample @@ -12,7 +12,7 @@ # 3) If no label has been found, use MYADDR if it exists. # # -# $Id: ppp.linkup.sample,v 1.10 1997/11/07 20:44:12 brian Exp $ +# $Id: ppp.linkup.sample,v 1.11 1997/11/08 20:58:41 brian Exp $ # ######################################################################### @@ -53,3 +53,28 @@ pmdemand: # min5minutes: !bg sh -c "sleep 240; pppctl -p mypassword 3000 set timeout 60" + +# If you want to test ppp, do it through a loopback: +# +# Requires a line in /etc/services: +# ppploop 6671/tcp # loopback ppp daemon +# +# and a line in /etc/inetd.conf: +# ppploop stream tcp nowait root /usr/sbin/ppp ppp -direct loop-in +# +loop: + set timeout 0 + set log phase chat connect lcp ipcp command + set device localhost:ppploop + set dial + set login + set escape 0xff + set ifaddr 127.0.0.2 127.0.0.3 + set openmode passive + set server /tmp/loop "" + +loop-in: + set timeout 0 + set log phase chat connect lcp ipcp command + set escape 0xff + allow mode direct |