routing help
I just installed a DSL mode and also a NetGear Cable/DSL VPN Firewall unit that sits between the cable/dsl mode and my home computers.
I plugged the unit in and it work with my Windows based machines. They all have private network addresses of 192.168.0.x I can surf the net no problem.
Where i am having an issue is with a Linux box that I plan to run a web server on. My ISP provided me with one static IP address e.g 68.16.140.145 to use. The ip of my NetGear unit is 192.168.0.1. I set the ip of the eth0 device on the Linux box to the static IP that my provider gave me (68.16.140.145). I have tried to create a variety of routes trying to get the linux box and the NetGear unit to talk. I want the Linux boxes default route to go to the NetGear firewall unit. No matter what routes I have tried, I cannot ping the NetGear unit from the Linux box even though I have tried to create a static route from the Linux box to the 192.168.0.1 address using eth0. I have also tried adding a route add -net 192.168.0.0 default gw 68.16.140.145 (not sure if i need this or if just a static route will do). When the web site is hit from externally, I will want all traffic routed by default back through the eth0 device.
Can someone tell me what route(s) I need to set up so that these two units can talk to each other? Also, will these routes stay permanent or is there some other file that I also need to modify? I have been using ifconfig to try and set this up, but I have not been successful at this point.
Any help greatly appreciated
Thanks
Dave
|