From owner-freebsd-questions Fri Jan 23 04:07:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA25359 for questions-outgoing; Fri, 23 Jan 1998 04:07:21 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA25351 for ; Fri, 23 Jan 1998 04:07:06 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id MAA06137; Fri, 23 Jan 1998 12:01:57 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199801231201.MAA06137@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: "Daniel C. Konnoff" cc: Brian Somers , questions@FreeBSD.ORG Subject: Re: ppp routing and ftp/rlogin problems In-reply-to: Your message of "Fri, 23 Jan 1998 17:21:02 +0800." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 23 Jan 1998 12:01:57 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk > 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 [.....] > ttyd1: > disable passwdauth > set ifaddr 172.16.2.1 172.16.1.247 255.255.0.0 > enable proxy Ah, ok. It's a class B network - that pooh-poohs my last idea :-) > > ########################################## > #!/bin/sh - > ## > ## ppp dialup for server machine mail [.....] > exec /usr/sbin/ppp -direct -alias ttyd1 > ##exec /usr/sbin/ppp -direct -alias cuaa1 Eek. This is a problem. If the server uses IP aliasing, then the client is going to see no connections from any machines beyond that machine. Aliasing is *only* for the client side. > ######################################################################### > # > # ppp linkup file for server machine mail [.....] We don't need any ppp.linkup entries on the server for the client. [.....] > #################################### > # 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 I'm not sure what this is. The client side shouldn't use the -direct switch. > ######################################################################## > # > # ppp.linkup: client machine tpe > # > ######################################################################### [.....] > MYADDR: > add 0 0 HISADDR This should really have a ``delete all'' first, but it will work like this because you have a fixed IP number. > ##################################################### > # how we start ppp from rc.local: client machine tpe > # > /usr/sbin/ppp -auto -alias ondemand Ah, ok. If you're using -auto, you don't need ppp.linkup at all on the client side either (and the above ppp.dialup script isn't used :-) Does everything work when you remove the -alias switch from the server ? This explains why you can't get past `mail', but I'm not sure if it explains why ftp doesn't work - but there's a good chance it does :-) -- Brian , , Don't _EVER_ lose your sense of humour....