Click to See Complete Forum and Search --> : Routing help needed. Please!


fsvara
11-01-2000, 01:51 PM
I need routing help!
I have read the basic routing NHF, but some things still aren't very clear to me.


This ipautofw the NHF talks about... I can't find it. Is it perhaps outdated?
What the heck are IP masquerading and port forwarding? I guess IP masquerading is what they also call NAT (network adress translation). If that's the case, I know what it is.
What is port forwarding?: My guess is that its a process that send all traffic that goes to a specific port to another port or computer. Is this right?
And now I need some more practical advice:
I've got a network that looks like this:
http://balder.prohosting.com/~fsvara2/netdia.jpg http://balder.prohosting.com/~fsvara2/netdia.jpg
I now want to make ComputerX able to access routerA. From ComputerX, I can ping RouterX, but not RouterA, and from RouterX, I can ping ComputerX and RouterA. (As RouterX has two network cards, on eth0 and eth1.)
I now want the following to work:


ComputerX pings RouterA:
The packets go to the default gateway, RouterX, which forwards them to RouterA.


How can this be done? I also want to be able to put more computers behind Routre X later, and all of them should be able to access RouterA simoultaneously.
What do I need for this, what must I do?
I guess this is about NAT.
Any detailed help and instrauctions would be greatly appreciated.


[This message has been edited by fsvara (edited 01 November 2000).]

fsvara
11-01-2000, 03:13 PM
What problem?
I just asked how to do this routing I have described. Now that the image seems to display properly, you can see better what I mean.
The computers outside the RouterX (on the eth0 side, the side of the other Router Router A are static. They range from 192.9.200.1 to 192.9.200.8, netmask 255.255.255.240.
The IP for The Router X eth1 and Computer X are static, too and are 192.168.0.1 and 192.9.168.0.2, netmask 255.255.255.0.

Note that all computers behind Router A can access the Internet simoultaneously through Router A using NAT.
I want Computer X to be able to reach the Internet through Router X, and later RouterA.

And again, in more detail, what I want to do:
Computer X, on 192.168.0.* pings somehost on the internet:
The packets go to the RouterX, eth1, on the same network.
RouterX routes the packets to the other NIC, eth0, and from there to the other net, 192.9.200.*, where they travel to Router A and are routed to the ISP from there.
It's easy enough. I just want to know how to set up the Router X, what configuration, programs... to use so it routes all packets it recieves from the net on eth1 to the net on eth0, so they can travel further to Router A and reach the Internet.

dieselboy
11-01-2000, 06:00 PM
YOu need to add an ip route or default route for everthing to take and then an ip route for everyhting that stays in the network..

plus with these address you must use NAT or the first internet router will drop your packet based on tcp header...

lates

diesel

fsvara
11-02-2000, 05:47 AM
Yes http://www.linuxnewbie.org/ubb/smile.gif
But I actually would like to know HOW to add an IP route and HOW to get NAT working and what utilities I have tu use, and where I can get those and how the configuration is done.

dieselboy
11-02-2000, 11:30 AM
what distro you doing this on?