3 # This is a working example of ppp.conf.span-isp that uses ppp connections
4 # to the same machine through 3 null-modem serial cables.
10 # with gettys running on cuaD04, cuaD06 and cuaD07. The gettytab entry
11 # for these devices has a pp= capability that references a script that
16 # exec /usr/sbin/pppin -direct isp-in-${tty#${tty%?}}
18 # The whole thing is brought up with these commands:
24 # Something rather strange happens here.
25 # If you connect to the vpn-in diagnostic socket with ``pppctl
26 # /var/run/ppp/vpn-in'' and do a ``show links'', only a single link shows up.
27 # If you connect to the vpn diagnostic socket (which is created in
28 # ppp.linkup.span-isp.working, you see three links. This is because inetd
29 # is told to ``wait'' for ppp to finish and the receiving ppp gets to
30 # handle all incoming packets on the first descriptor.
32 # This is why enabling LQR won't work - VPN-IN has magic number problems,
33 # fails to reply to LQRs and the VPN invocations end up shutting down.
35 # If anyone can come up with a better way of doing PPP over UDP I'd be
36 # interrested to hear it. Currently, the server doesn't connect() or
37 # bind().... but the client connect()s. Is there any other way ?
39 # Answers on a postcard please ! (to brian@Awfulhak.org)
44 set device /dev/cuaD00 /dev/cuaD01 /dev/cuaD03
53 set authname "isp1name"
57 set authname "isp2name"
61 set authname "isp3name"
69 set mru 1504 # Room for the MP header
70 set authname "vpnname"
73 disable deflate pred1 lqr
78 set device 127.0.2.7:ppp/udp
82 set device 127.0.2.6:ppp/udp
86 set device 127.0.2.4:ppp/udp
93 set mru 1504 # Room for the MP header
96 set ifaddr 127.0.0.2 127.0.0.3
97 set server /var/run/ppp/vpn-in "" 0177
101 set ifaddr 127.0.2.7 127.0.3.7
104 set ifaddr 127.0.2.6 127.0.3.6
107 set ifaddr 127.0.2.4 127.0.3.4