Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 1998 12:01:57 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        "Daniel C. Konnoff" <daniel@myson.com.tw>
Cc:        Brian Somers <brian@Awfulhak.org>, questions@FreeBSD.ORG
Subject:   Re: ppp routing and ftp/rlogin problems 
Message-ID:  <199801231201.MAA06137@awfulhak.org>
In-Reply-To: Your message of "Fri, 23 Jan 1998 17:21:02 %2B0800." <Pine.SUN.3.91.980123170428.7220A-100000@lin_km> 

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
[.....]
> 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801231201.MAA06137>