Linux routing question
Posted on 2013-01-07
I am configuring Linux to route for me....it is Damn Small Linux, which is based on Knoppix, a Debian version of Linux...
Two interfaces on the linux
I turned on routing with echo "1" >> /proct/sys/net/ipv4/ip_forward.
I have two PCs running windows. ..
PC A is on the 10.0.0.0 network - Default Gateway set to 10.0.0.100
PC B is on the 192.168.20.0 network. Default Gateway set to 192.168.20.1
I want PC A and B to be able to ping each other. I have already accomplished that. I can do that with this setup. However. I also want PC A to be able to reach the Internet.
To reach the Internet, it must send to 10.0.0.1, as that is the route to the Internet.
Question: What commands can I setup on my linux router so that it will send packets for the 192.168.20.x network as it is now, to that network, but if it is Internet traffic, it will send it out to the 10.0.0.1 device.