/proc/net/ip_fprward??

Discussion in 'Linux Networking' started by Ishwar Rattan, Jul 16, 2003.

  1. Hello,

    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

    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)

    and

    dns addresses of ppp-server (a.b.c.d)

    Any help will be appreciated.

    -ishwar
     
    Ishwar Rattan, Jul 16, 2003
    #1
    1. Advertisements

  2. 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.
    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).
    See ms-dns in: man pppd
     
    David Efflandt, Jul 16, 2003
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.