Hi guys, Recently, I was called upon to do something that I have never done before..
We have a Dlink router and it can do NAT or route, but not both.. (it had four ports on the back, so I was hopeful, but it wasn't to be as it was just an integrated switch) we need to supply NAT to our internal machines, but host several public IP's as well. My solution was to set the router up to route directly to a linux box I setup, and it can do the NAT for the internal machines (two seperate private network ranges) That linux box has three network cards in it.. one is a privite IP in the 192.168.0.0 range. One is a private 10.0.0.0 range and the last one has several public IP's on it.. (ie: eth2, eth2:0, eth2:1 etc....) The router is connected to that public Interface on the linux box.. (which just port forwards to internal servers.) The public interface is the internet gateway for all via NAT of course... Anyway, it was mostly working, but I had to set some static routes so that the machine would know what interface to send out on for each IP range... Never having done that before.. I searched for a config file. but found nothing.. I ended up using netconf from linuxconf to do it... (its a mdk7.2 box) and it allowed me to "set routes to other local networks" and it worked fine... In other words, I set it up something like the following: 192.168.0.0 IP's => eth0 10.0.0.0 IP's => eth1 I don't like using GUI tools at the best of times, but I hate it when I don't know what they are doing.. Do static routes need to be created via gated? ir iproute?? where can I set them up manually? is there a routing version of fstab?? by that I mean a config file read at boot that sets all the default static routes? Any suggestions would be much appreciated. rgds Frank
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
