1 2# This is a working example of ppp.conf.span-isp that uses ppp connections 3# to the same machine through 3 null-modem serial cables. 4# 5# cuaD03 <-> cuaD04 6# cuaD01 <-> cuaD06 7# cuaD00 <-> cuaD07 8# 9# with gettys running on cuaD04, cuaD06 and cuaD07. The gettytab entry 10# for these devices has a pp= capability that references a script that 11# says: 12# 13# #! /bin/sh 14# tty=$(tty) 15# exec /usr/sbin/pppin -direct isp-in-${tty#${tty%?}} 16# 17# The whole thing is brought up with these commands: 18# 19# ppp -b isp1 20# ppp -b isp2 21# ppp -b isp3 22# 23# Something rather strange happens here. 24# If you connect to the vpn-in diagnostic socket with ``pppctl 25# /var/run/ppp/vpn-in'' and do a ``show links'', only a single link shows up. 26# If you connect to the vpn diagnostic socket (which is created in 27# ppp.linkup.span-isp.working, you see three links. This is because inetd 28# is told to ``wait'' for ppp to finish and the receiving ppp gets to 29# handle all incoming packets on the first descriptor. 30# 31# This is why enabling LQR won't work - VPN-IN has magic number problems, 32# fails to reply to LQRs and the VPN invocations end up shutting down. 33# 34# If anyone can come up with a better way of doing PPP over UDP I'd be 35# interrested to hear it. Currently, the server doesn't connect() or 36# bind().... but the client connect()s. Is there any other way ? 37# 38# Answers on a postcard please ! (to brian@Awfulhak.org) 39# 40 41default: 42 set speed 115200 43 set device /dev/cuaD00 /dev/cuaD01 /dev/cuaD03 44 set dial 45 set login 46 set redial 3 5 47 set timeout 0 48 enable lqr echo 49 set lqrperiod 15 50 51isp1: 52 set authname "isp1name" 53 set authkey "isp1key" 54 55isp2: 56 set authname "isp2name" 57 set authkey "isp2key" 58 59isp3: 60 set authname "isp3name" 61 set authkey "isp3key" 62 63 64vpn: 65 set enddisc LABEL 66 set speed sync 67 set mrru 1500 68 set mru 1504 # Room for the MP header 69 set authname "vpnname" 70 set authkey "vpnkey" 71 add! default HISADDR 72 disable deflate pred1 lqr 73 deny deflate pred1 74 75vpn1: 76 rename 1 77 set device 127.0.2.7:ppp/udp 78 79vpn2: 80 rename 2 81 set device 127.0.2.6:ppp/udp 82 83vpn3: 84 rename 3 85 set device 127.0.2.4:ppp/udp 86 87 88vpn-in: 89 set enddisc label 90 set speed sync 91 set mrru 1500 92 set mru 1504 # Room for the MP header 93 enable chap 94 disable lqr 95 set ifaddr 127.0.0.2 127.0.0.3 96 set server /var/run/ppp/vpn-in "" 0177 97 98 99isp-in-7: 100 set ifaddr 127.0.2.7 127.0.3.7 101 102isp-in-6: 103 set ifaddr 127.0.2.6 127.0.3.6 104 105isp-in-4: 106 set ifaddr 127.0.2.4 127.0.3.4 107