Date: Mon, 20 Jan 1997 14:53:26 -0500 From: "Matthew A. Gessner" <mgessner@aristar.com> To: "hackers" <hackers@freebsd.org> Subject: ppp alias under 2.1.5 Message-ID: <199701201947.OAA27104@home.winc.com>
next in thread | raw e-mail | index | archive | help
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 <mgessner@aristar.com> Aristar, Inc. Akron, OH 330.668.2267 FAX 330.668.2961
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701201947.OAA27104>