1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1999-06-09 12:32:55 +00:00
|
|
|
|
|
|
|
# This is a working example of ppp.conf.span-isp that uses ppp connections
|
|
|
|
# to the same machine through 3 null-modem serial cables.
|
|
|
|
#
|
|
|
|
# cuaD03 <-> cuaD04
|
|
|
|
# cuaD01 <-> cuaD06
|
|
|
|
# cuaD00 <-> cuaD07
|
|
|
|
#
|
|
|
|
# with gettys running on cuaD04, cuaD06 and cuaD07. The gettytab entry
|
|
|
|
# for these devices has a pp= capability that references a script that
|
|
|
|
# says:
|
|
|
|
#
|
|
|
|
# #! /bin/sh
|
|
|
|
# tty=$(tty)
|
|
|
|
# exec /usr/sbin/pppin -direct isp-in-${tty#${tty%?}}
|
|
|
|
#
|
|
|
|
# The whole thing is brought up with these commands:
|
|
|
|
#
|
|
|
|
# ppp -b isp1
|
|
|
|
# ppp -b isp2
|
|
|
|
# ppp -b isp3
|
|
|
|
#
|
|
|
|
# Something rather strange happens here.
|
|
|
|
# If you connect to the vpn-in diagnostic socket with ``pppctl
|
2001-12-17 22:05:23 +00:00
|
|
|
# /var/run/ppp/vpn-in'' and do a ``show links'', only a single link shows up.
|
1999-06-09 12:32:55 +00:00
|
|
|
# If you connect to the vpn diagnostic socket (which is created in
|
|
|
|
# ppp.linkup.span-isp.working, you see three links. This is because inetd
|
|
|
|
# is told to ``wait'' for ppp to finish and the receiving ppp gets to
|
|
|
|
# handle all incoming packets on the first descriptor.
|
|
|
|
#
|
|
|
|
# This is why enabling LQR won't work - VPN-IN has magic number problems,
|
|
|
|
# fails to reply to LQRs and the VPN invocations end up shutting down.
|
|
|
|
#
|
|
|
|
# If anyone can come up with a better way of doing PPP over UDP I'd be
|
|
|
|
# interrested to hear it. Currently, the server doesn't connect() or
|
|
|
|
# bind().... but the client connect()s. Is there any other way ?
|
|
|
|
#
|
|
|
|
# Answers on a postcard please ! (to brian@Awfulhak.org)
|
|
|
|
#
|
|
|
|
|
|
|
|
default:
|
|
|
|
set speed 115200
|
|
|
|
set device /dev/cuaD00 /dev/cuaD01 /dev/cuaD03
|
|
|
|
set dial
|
|
|
|
set login
|
|
|
|
set redial 3 5
|
|
|
|
set timeout 0
|
|
|
|
enable lqr
|
|
|
|
set lqrperiod 15
|
|
|
|
|
|
|
|
isp1:
|
2003-04-10 21:33:02 +00:00
|
|
|
set authname "isp1name"
|
|
|
|
set authkey "isp1key"
|
1999-06-09 12:32:55 +00:00
|
|
|
|
|
|
|
isp2:
|
2003-04-10 21:33:02 +00:00
|
|
|
set authname "isp2name"
|
|
|
|
set authkey "isp2key"
|
1999-06-09 12:32:55 +00:00
|
|
|
|
|
|
|
isp3:
|
2003-04-10 21:33:02 +00:00
|
|
|
set authname "isp3name"
|
|
|
|
set authkey "isp3key"
|
1999-06-09 12:32:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
vpn:
|
|
|
|
set enddisc LABEL
|
|
|
|
set speed sync
|
|
|
|
set mrru 1500
|
2000-08-17 14:40:42 +00:00
|
|
|
set mru 1504 # Room for the MP header
|
2003-04-10 21:33:02 +00:00
|
|
|
set authname "vpnname"
|
|
|
|
set authkey "vpnkey"
|
1999-06-09 12:32:55 +00:00
|
|
|
add! default HISADDR
|
|
|
|
disable deflate pred1 lqr
|
|
|
|
deny deflate pred1
|
|
|
|
|
|
|
|
vpn1:
|
|
|
|
rename 1
|
|
|
|
set device 127.0.2.7:ppp/udp
|
|
|
|
|
|
|
|
vpn2:
|
|
|
|
rename 2
|
|
|
|
set device 127.0.2.6:ppp/udp
|
|
|
|
|
|
|
|
vpn3:
|
|
|
|
rename 3
|
|
|
|
set device 127.0.2.4:ppp/udp
|
|
|
|
|
|
|
|
|
|
|
|
vpn-in:
|
|
|
|
set enddisc label
|
|
|
|
set speed sync
|
|
|
|
set mrru 1500
|
2000-08-17 14:40:42 +00:00
|
|
|
set mru 1504 # Room for the MP header
|
1999-06-09 12:32:55 +00:00
|
|
|
enable chap
|
|
|
|
disable lqr
|
|
|
|
set ifaddr 127.0.0.2 127.0.0.3
|
2001-11-01 23:44:12 +00:00
|
|
|
set server /var/run/ppp/vpn-in "" 0177
|
1999-06-09 12:32:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
isp-in-7:
|
|
|
|
set ifaddr 127.0.2.7 127.0.3.7
|
|
|
|
|
|
|
|
isp-in-6:
|
|
|
|
set ifaddr 127.0.2.6 127.0.3.6
|
|
|
|
|
|
|
|
isp-in-4:
|
|
|
|
set ifaddr 127.0.2.4 127.0.3.4
|