Date: Fri, 23 Jan 1998 17:21:02 +0800 (CST) From: "Daniel C. Konnoff" <daniel@myson.com.tw> To: Brian Somers <brian@Awfulhak.org> Cc: questions@FreeBSD.ORG Subject: Re: ppp routing and ftp/rlogin problems Message-ID: <Pine.SUN.3.91.980123170428.7220A-100000@lin_km> In-Reply-To: <199801230221.CAA29483@awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Brian: Before I attempt any other changes I have decided to send along the ppp.config files for both the ppp server machine mail and the ppp client machine tpe. They are included at the end of this message. The connection between them is a dedicated line with special modems; this accounts for there being no modem config information in the config files. PPP does not use chap, pap or mgetty on the server serial ports (mgetty was problem prone). The client machine tpe itself serves as a gateway for windows machines and other freebsd machines that form a local lan at the remote site. They read mail via pop from the ppp server machine mail; they must be able to reach mail directly. To recap the machines connected to the client ppp machine tpe (and tpe itself) can ping past mail but that is all. Telnet functions between mail <---> tpe but not ftp or rlogin. Thanks much for your help. Daniel C. Konnoff Myson Technologies 20111 Stevens Creek Blvd. #138 Cupertino, Ca. 95014 daniel@mysonusa.com.tw Tele: 408/252-8788 Fax: 408/252-8789 On Fri, 23 Jan 1998, Brian Somers wrote: > > Hello Brian: > > > > Thanks for the reply to my mail. I again checked the > > rc.conf and sysconfig files; the gateway_enable keyword > > is set to yes. > > > > I am using the user level ppp that came with 2.2.5 and 2.2.1 > > respectively. > > > > Telnet IS working between these two platforms which is what's > > strange; ftp is enabled as you can see and does not function in > > either direction. > > I can telnet from mail to tpe or from tpe to mail without any > > problems. > > > > Where exactly does the output from set log +tcp/ip go? > > Depends on /etc/syslog.conf - usually /var/log/ppp.log. > > > thanks > > > > Daniel C. Konnoff > > Myson Technologies > > 20111 Stevens Creek Blvd. #138 > > Cupertino, Ca. 95014 > > [.....] > > > > 172.16.1.100 link#1 UHLW 0 5 > [.....] > > > > 172.16.1.247 172.16.2.1 UH 2 10355 tun0 > > > > 172.16.1.247 0:0:e8:1f:e5:69 UHLS2 0 0 ed0 > > > > 172.16.1.254 8:0:20:22:e4:e8 UHLW 22 17 ed0 821 > > > > 172.16.2.1 0:0:e8:1f:e5:69 UHLW 1 3419 lo0 > [.....] > > On second thoughts, perhaps this is the problem. This looks like > you've got ``enable proxy'' in your config on mail, but you're giving > tpe 172.16.2.1 as mails IP number. You should be giving it the > 172.16.1.100 number instead with > > set ifaddr 172.16.1.100 172.16.1.247 255.255.255.0 > enable proxy > > -- > Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org> > <http://www.Awfulhak.org> > Don't _EVER_ lose your sense of humour.... > > > ############################################################### # # ppp.conf showing possible setup for ppp server machine mail # default: disable lqr set debug phase lcp chat set timeout 0 enable msext set ns xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx set nbns xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx ttyd1: disable passwdauth set ifaddr 172.16.2.1 172.16.1.247 255.255.0.0 enable proxy ########################################## #!/bin/sh - ## ## ppp dialup for server machine mail ## ## IDENT=`echo $0 | sed -e 's/^.*-\(.*\)$/\1/'` echo IDENT is now $IDENT CALLEDAS="$IDENT" TTY=`tty` if [ x$IDENT = xdialup ]; then IDENT=`basename $TTY` fi echo "PPP for $CALLEDAS on $TTY" echo "Starting PPP for $IDENT" echo "~~~~~~~~~~~~~~~~~~~~~~~~~" exec /usr/sbin/ppp -direct -alias ttyd1 ##exec /usr/sbin/ppp -direct -alias cuaa1 ######################################################################### # # ppp linkup file for server machine mail # # # This file is checked when PPP establishes a connection. # PPP searches the labels in this file as follows: # # 1) The label that matches the IP number assigned to our side. # # 2) The label specified on the command line to ppp. # # 3) If no label has been found, use MYADDR if it exists. # # ######################################################################### # If we've got 192.244.176.32 as our address, then regard peer as a gateway # to 192.244.176.0 network. # #192.244.176.32: 172.16.2.1: add 172.16.2.0 0 HISADDR # If we are invoked with an argument ``iij-demand'', then delete all # existing route entries and add the peer as the default gateway. # iij-demand: delete ALL add 0 0 HISADDR # Otherwise, simply add peer as default gateway. # MYADDR: add 0 0 HISADDR ################################################################# # # # ppp.conf: client machine tpe # ################################################################# # Default setup. Always executed when PPP is invoked. # default: set device /dev/cuaa1 # set device /dev/cuala1 # set speed 38400 set speed 9600 # set speed 57600 # set speed 19200 # set speed 115200 disable lqr deny lqr # set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT" # Example with login script # o From PPP prompt, # ppp> dial simplesite # automatically dials and performs the login script. # # ppp> load simplesite # loads and executes commands, but doesn't dial. # # o From shell, invoke as # % ppp simplesite # to load commands associated with the 'simplesite' label. Use, # ppp> dial # to establish the connection. # site: set phone 5780377 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp ocol: ppp" # set timeout 40 # set ifaddr 172.16.1.247 172.16.1.248 255.255.255.0 # add 0 0 172.16.1.248 # set openmode active # If the peer requires to use CHAP, don't forget to supply authname # and authkey. # # If you'd like to use CHAP to authenticate with the peer, comment out # the line ``enable chap'' below. You also need to prepare /etc/ppp.secret. # # If the remote system sends its system name within the CHAP packet and it # is found in /etc/ppp.secret, then the secret key is taken from that file # and value of authkey specified here is ignored. # chapsite: set phone 12345678 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp" deny pap accept chap # enable chap set authname newcorp set authkey foo # On demand dialup example # Here, we assume that local side use 192.244.185.226 and # remote side use 192.244.176.44 as their IP address. # You must supply -auto option to invoke PPP. # # $ ppp -auto ondemand # ondemand: # set phone 5780377 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp" set timeout 0 set ifaddr 172.16.1.247 172.16.2.1 255.255.0.0 add 0 0 172.16.2.1 set openmode active # ppptelnet: set escape 0xff ppptcp: set device 192.244.191.33:2400 #################################### # ppp.dialup: client machine tpe # IDENT=`echo $0 | sed -e 's/^.*-\(.*\)$/\1/'` echo IDENT is now $IDENT CALLEDAS="$IDENT" TTY=`tty` if [ x$IDENT = xdialup ]; then IDENT=`basename $TTY` fi echo "PPP for $CALLEDAS on $TTY" echo "Starting PPP for $IDENT" echo "~~~~~~~~~~~~~~~~~~~~~~~~~" exec /usr/sbin/ppp -direct $IDENT ######################################################################## # # ppp.linkup: client machine tpe # ######################################################################### # If we've got 192.244.176.32 as our address, then regard peer as a gateway # to 192.244.176.0 network. # #192.244.176.32: 192.9.200.100: add 172.16.1.0 0 HISADDR # If we are invoked with an argument ``iij-demand'', then delete all # existing route entries and add the peer as the default gateway. # iij-demand: delete ALL add 0 0 HISADDR # Otherwise, simply add peer as default gateway. # MYADDR: add 0 0 HISADDR ##################################################### # how we start ppp from rc.local: client machine tpe # /usr/sbin/ppp -auto -alias ondemand
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.980123170428.7220A-100000>