Subject: Re: modemd and pppd dialup server
To: None <Bbmillerr@aol.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 10/10/2001 21:19:40
On Wed, Oct 10, 2001 at 01:05:00PM -0400, Bbmillerr@aol.com wrote:
> I am using modemd as a dialup server into my NetBSD box. The machine I am
> dialing has an IP address of 203.60.55.195 on my local LAN. I have been able
> to get modemd to answer the phone without any problems. However, I am trying
> to access my httpd server over the phone line just as if it was attached to
> my LAN using a browser. This I have not been able to do. My settings are as
> follows:
>
> * My hosts file is:
>
> 127.0.0.1 localhost
> 203.60.55.195 bsdtest
>
> * In my ttys file I have added the line:
>
> tty00 "/usr/pkg/sbin/modemd cashsafe " unknown on rtscts
>
> * My modemcap file is:
>
> cashsafe:br#57600:bt#8:hf:is=AT:pp=/usr/sbin/pppd auth -chap +pap
>
> * My pppd options file is:
>
> passive
> silent
> lock
> proxyarp
> crtscts
> modem
> -detach
> netmask 255.255.255.0
>
> * My options.tty00 file is:
>
> 203.60.55.195:203.60.56.150
>
>
> I am very confused on these settings in my files listed above. If I point my
> browser to http://203.60.55.195 then I get access to my httpd server without
> any problems over my LAN. However, when I dialup my NetBSD box and modemd
> answers I cannot seem to have access to anything with my browser. What will
> the IP address be when I dial-in to my box. It can't be 203.60.55.195
> because that is the address of the box over my LAN. I know I need a new IP
> address but I don't know how to get to that point. It seems my IP settings
> are wrong or I don't understand what I need to do. Can anyone help with this
> and these settings?
No, you can have the same address on the LAN and the ppp interface.
However it's possible that the kernel already has a route to 203.60.56.150
via the LAN. 'netstat -rn' should tell you that.
--
Manuel Bouyer <bouyer@antioche.eu.org>
--