Hi.
I'm running a Caldera OpenLinux installation with kernel 2.0.29.
I'm having problems setting up the Linux box as a ppp server. I've read
all of the other posts here from those with similar problems and also the
PPP-HOWTO and the SERIAL-HOWTO, as well as Craig Hunt's TCP/IP Network
Admin. annd Olaf Kirch's Linux NAG. And yes, I've checked out the online
docs at Caldera, but I think there is something basic that's eluding me
and hope someone can help.
I'm trying to set the machine up as a limited ppp server (one modem/port)
so that I can dial in with a mac or windows laptop using those OS's ppp
implementations to get full TCP/IP access to the internet. I can't find
any discussion of this anywhere - all talk is about linking Linux to
Linux.
Using mgetty, I've successfully set up dialin access and can connect from
the laptop and use the shell account.
When I try to use MacPPP, for example, and issue the command
'exec /usr/src/pppd -detach'
ppp launches successfully and I can communicate via TCP/IP between the Mac
and the Linux box (Eudora, Anarchie, Netscape, etc.).
But I can't get past the linux box to the rest of the world.
I have compiled the kernel with IP Forwarding enabled.
I'm giving the laptop an IP in the same subnet as the Linux box
(128.264.142.0), which may be a problem (I don't know).
I don't understand how to get the laptop to see the Linux box as a
gateway. Am I even on the right track in trying to do that? I have tried
adding routes manually on the Linux side, but nothing I've tried has
worked.
Thanks in advance for taking a second to look at the following, and if you
can point me in the right direction I'd really appreciate it.
This is a picture of what's going on:
__________________________________________________________________
<INTERNET>
|
|
<GATEWAY FOR MY SUBNET> (128.264.142.1)
|
|
<eth0 OF MY LINUX BOX> (128.264.142.21)
| |
<ppp0 OF MY LINUX BOX> (128.264.142.46)
|
|
<MAC OR WIN CLIENT DIALING IN WITH PPP> (128.264.142.46)
__________________________________________________________________
My /etc/ppp/options looks like this:
__________________________________________________________________
asyncmap 0
proxyarp
lock
crtscts
modem
128.253.144.21:128.253.144.46
__________________________________________________________________
And I've also tried one that looks like this:
__________________________________________________________________
asyncmap 0
defaultroute
lock
crtscts
modem
128.253.144.21:128.253.144.46
__________________________________________________________________
Regardless of which one I use, the results of 'netstat -nr' while the ppp
connection is active always look like this:
_________________________________________________________________
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
128.264.142.46 0.0.0.0 255.255.255.255 UH 1500 0 0 ppp0
128.264.142.0 0.0.0.0 255.255.255.128 U 1500 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 3584 0 0 lo
0.0.0.0 128.264.142.1 0.0.0.0 UG 1500 0 0 eth0
_________________________________________________________________
David DeMello