On Wed, 16 Jul 2003, Ishwar Rattan <(E-Mail Removed)> wrote:
> I found it is in /proc/sys/net/ipv4.
>
> System is Mandrake-9.1 (on a LAN). I am trying to set up dial-in with ppp
> inti this box. The dial-in part with mgetty works. Ppp cpnnection also gets
> set up but the setup as such is not usable. Dial-out from Win'98 box to
> dial-in server is desired.
>
> An account is crasted for ppp-user (pppu) with /usr/sbin/pppd as
> login shell (using a file /etc/ppp/ppplogin):
>
> #!/bin/bash
> mesg n
> stty -echo
> /usr/sbin/pppd auth -chap +pap login debug
>
> The options for pppd server are in /etc/ppp/options:
>
> -detach
> crtscts
> netmask 255.255.255.0
> asyncmap 0
> modem
> proxyarp
>
> PPP server and ppp client addresses are in /etc/ppp/options.ttyS0
> a.b.c.d:w.x.y.z
Note, when I did dialin using proxyarp to a LAN, the local ppp IP (a.b.c.d
in this case) was same as my eth0 IP (in other words, the interface that
should proxy arp the remote ppp IP). In fact I did same for Cisco router
as ppp server. Not sure what happens if it is some other IP.
> where both entries exist /etc/hosts of ppp-server.
>
> /proc/sys/net/ipv4/ip_forward is set to 1
>
> After connection, ipconfig on win'98 shows:
>
> ip-address: w.x.y.z
> mask: 255.255.255.0
> gateway: w.x.y.z
>
> Is there a way to tell the connecting client
>
> gateway/router address (a.b.c.d)
Win9x routing can appear turned around compared with Unix routing. Since
Win9x has no device reference, it may use its own IP to tell what
interface to route _out_ of. As long as you have DUN set to use the PPP
connection as default route, it should work. In fact it even worked for
me between 2 Win boxes when both DUN server and DUN client used same IP
(with NAT32).
> and
>
> dns addresses of ppp-server (a.b.c.d)
See ms-dns in: man pppd
--
David Efflandt - All spam ignored
http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/