Networking Forums

Networking Forums > Computer Networking > Linux Networking > /proc/net/ip_fprward??

Reply
Thread Tools Display Modes

/proc/net/ip_fprward??

 
 
Ishwar Rattan
Guest
Posts: n/a

 
      07-16-2003, 06:16 PM
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

 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      07-16-2003, 08:53 PM
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/
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is tw at /proc/net/sockstat?! bh98013@gmail.com Linux Networking 3 06-06-2006 10:38 AM
iptables problem (proc) Maaged Mazyek Linux Networking 3 03-28-2006 05:39 AM
mapping /proc/PID with proper URL jean-francois Linux Networking 3 12-25-2005 03:27 AM
/proc/net/dev information broken Gerrit Holl Linux Networking 0 04-25-2005 11:23 AM
/proc/net/ip_fprward?? Ishwar Rattan Linux Networking 4 07-17-2003 02:41 AM



1 2 3 4 5 6 7 8 9 10 11