From owner-freebsd-hackers Mon Jan 20 11:48:32 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA21675 for hackers-outgoing; Mon, 20 Jan 1997 11:48:32 -0800 (PST) Received: from home.winc.com (root@home.winc.com [204.178.182.2]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA21669 for ; Mon, 20 Jan 1997 11:48:27 -0800 (PST) Received: from inetgw.aristar.com (slip134.winc.com [204.178.182.134]) by home.winc.com (8.8.4/8.8.4) with ESMTP id OAA27104 for ; Mon, 20 Jan 1997 14:47:42 -0500 Message-Id: <199701201947.OAA27104@home.winc.com> From: "Matthew A. Gessner" To: "hackers" Subject: ppp alias under 2.1.5 Date: Mon, 20 Jan 1997 14:53:26 -0500 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello, all, I received the ppp aliasing code from Eivind Eklund that has Charles Mott's extensions for doing ppp aliasing. It works fine on the LAN; as a matter of fact, I'm composing this message under Win95 and it will go out on my ethernet and through my modem. However, we have a number of serial devices that I want to use, and I've got serial ports on my internet gateway (inetgw.aristar.com) but I'm having some problems. I have Steve Sim's guide to setting the LAN up, but it appears that the ppp server doesn't work properly this way (tun1 -> tun0). I'll give an example. I've attached the ppp.conf files from two machines: inetgw and voyager. If someone could point out to me why packets AREN'T being forwarded from tun1 to tun0 and what I need to change, I'd appreciate it. The only thing I found that works is to create a route after ppp is logged in (say I want to go from voyager (10.0.0.133) to home.winc.com (204.178.182.2) through inetgw (10.0.0.4): I have to do route add 204.178.182.2 10.0.0.4) and then I can ping it. But that doesn't do me a lot of good). And before I forget, inetgw has its ed1 address set to 10.0.0.4 as well as tun1 when the other machine is connected. Maybe I'm accidentally causing a loop by doing this, but I don't have any luck if I set it to something else. If you're wondering where all this is going, we write software for Newton MessagePads, and we need to be able to hook them up via serial PPP to test some server applications we've written that use TCP/IP across the Internet. This is a convenient way to test our client/server models locally without having to dial up long distance calls to the server. Anyway, here are my files. --------------------------------------------------- # # Begin inetgw ppp.conf # default: set device /dev/cuaa0 set speed 115200 disable lqr deny lqr set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 45 CONNECT" wincppp: set phone 867-5895 accept pap set authname %^&*^&* set authkey &$%^&* set timeout 0 set redial 1 10 set ifaddr 204.178.182.134 204.178.182.20 set openmode active dial dialup: disable pap enable chap enable proxy set authname ppp-server set ifaddr 0.0.0.0/24 10.0.0.3/24 255.255.255.0 # # End inetgw ppp.conf # --------------------------------------------------- # # Begin inetgw ppp.linkup # 204.178.182.134: add 0 0 HISADDR 10.0.0.133: add 0 0 HISADDR # # End inetgw ppp.linkup # --------------------------------------------------- # # Begin voyager ppp.conf # default: set device /dev/cuaa0 set speed 9600 disable lqr deny lqr serial: accept pap set authname ppp2 set authkey pppari* set timeout 0 set ifaddr 10.0.0.133 10.0.0.4/24 255.255.255.0 set openmode active # # Now go into terminal mode, login and away we go! # # End voyager ppp.conf --------------------------------------------------- # # Begin voyager ppp.linkup # MYADDR: add 0 0 HISADDR # # End voyager ppp.linkup # ---------------------------------------------------- One last question: When I run 'ppp serial' on voyager (the ppp client) I can't put 'dial' at the end, b/c I get a core dump. Any ideas? Do I need to set a 'set dial ""' to make that work? -- Matthew A. Gessner, Computer Scientist Aristar, Inc. Akron, OH 330.668.2267 FAX 330.668.2961