Article View: aus.computers.linux
Article #54473Re: IP FORWARDING HHHEEEEEEEEEEELLLLLLLLLLLLLLLLPPPPPPPPPPPPp
From: Graham Philip Crowe
Date: Wed, 22 Oct 1997 00:00
Date: Wed, 22 Oct 1997 00:00
98 lines
4624 bytes
4624 bytes
Yes, I see your problem, To the net the dialup machine does not exist!!! It has its default gateway (the only gateway) as being the linux masquerader and when it accesses the internet it appears to be(masquerades as) the linux box. therefore any packets going to it have to be sent to the linux box to the same process that the linux box sent packets out from on behalf of the dialup machine. In short you cannot get to this machine, it can get to the internet only by pretending to be the linux machine and sending packets to the linux machine normally would just be absorbed by the linux machine. What you have to do... You will have to set up linux to forward (not masquerade) packets from the NT machine to the dialup server. Then you will have to set up the NT machine to route all packets for the dialup machine to the linux gateway (I am not sure if NT is smart enough to let you do this). You should then be able to ping direct. The routing tables on the dialup machine and the gateway linux box may have to be tweaked a little more too.. Ben Stewart (bstewart@NOSPAM.ast.net.au) wrote: : Hello there ! : I am currently experiencing a frustrating problem with my little network : I have here running at home....... The setup is as follows.. : I have 3 machines running localy : 486 dx33 running win 95 with a ne2000 card : 486 dx33 running Linux REdHat with ne2000 card : P166 running NT server with ne2000 card : I also have a machine that connects from another suburb via a modem. : This machine Dials into the linux box. : My internet connection comes from a hold in the wall and this plugs into : the back of a little 8 port hub that I have here. I have 3 UTP cables : running to each of the machines. The main Internet machine is the Win : 95. The reason, is that this is the only OS that my ISP supported at the : time. Anyway the win 95 gets its IP from DHCP stuff. Then it logs onto : the network and gets access to the rest of the world. It runs a proxy : server for all the common stuff (telnet, FTP, Realaudio etc etc) and : works well enought. : The NT machine is connected by to the hub the same way as the win95 and : gets its IP address from the DHCP server as well, but it doesn't (can't) : log into the internet so it just uses the win95 machine as a proxy and : works fine. : The Linux machine does a simular thing to the NT box in that it is also : connected to the hub and gets an IP from the DHCP server at my ISP and : uses the win95 box as a proxy. : Ok. i have set up PPP on my linux machine so another win95 machine can : dial in and get access to the internet. I have simply given the dialup : machine a "pretend IP" and setup IP Masq and Forwarding on the linux : box. It all works ok, but the problem is that I cant ping the dialup : machine from my NT box (dialup can ping the NT box) and I want to use : voice software such as Gather Talk, but cant. I have been told that it : is a routing problem, but I have little or NO knowledge of routing and : stuff. I cant telnet to the dialup machine or anything... just no : connection from NT machine to Dialup machine. : If anybody can help I would apprecaite it. : This is what is in my rc.local file for DHCP and ip forwarding stuff. : /usr/sbin/dhcpcd & : /sbin/depmod -a : /sbin/modprobe ip_masq_ftp : /sbin/modprobe ip_masq_raudio : /sbin/modprobe ip_masq_irc : /sbin/ipfwadm -F -p deny : /sbin/ipfwadm -F -a m -S 24.192.19.51/32 -D 0.0.0.0/0 : This is what i get from my route command in linux : Destination Gateway Genmask Flags Metric Ref Use : Iface : 24.192.19.51 * 255.255.255.255 UH 0 0 1 : ppp0 : 24.192.19.0 * 255.255.255.0 U 0 0 14 : eth0 : 127.0.0.0 * 255.0.0.0 U 0 0 5 : lo : default 24.192.19.1 0.0.0.0 G 1 0 1 : eth0 : (note: 24.192.19.51 is the windows machine that is dialing up) : Please email me direct. : Cheers : Ben Stewart : bstewart@ast.net.au --
Technical Details
Message-ID:
<62jpe0$let$1@wyrm.its.uow.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<344C44DD.5C48@NOSPAM.ast.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,7156a85c69ab8a31 X-Google-Attributes: gid102983,public From: gpc01@wraith.cs.uow.edu.au (Graham Philip Crowe) Subject: Re: IP FORWARDING HHHEEEEEEEEEEELLLLLLLLLLLLLLLLPPPPPPPPPPPPp Date: 1997/10/22 Message-ID: <62jpe0$let$1@wyrm.its.uow.edu.au> X-Deja-AN: 282386423 References: <344C44DD.5C48@NOSPAM.ast.net.au> Organization: University of Wollongong, NSW, Australia. Newsgroups: aus.computers.linux