Linux Box as a Router

Linux help requests that don't fit into any of the other technical areas go in this forum
i2landscape
Posts: 20
Joined: Tue Aug 28, 2012 6:12 pm

Linux Box as a Router

Post by i2landscape » Mon Sep 03, 2012 8:12 pm

Hello Everyone. I have posted many replies to others questions and this is my first post seeking help I am trying to setup a RedHad 9 Linux box as router. I have searched documentation and even have a few Linux books. But they are lacking (or more than likely I am lacking since I am fairly new to Linux). I cant seem to get traffic from one network to traverse to the other. My Config eth0 IP 111.111.111.160 (Default gateway 111.111.111.1 Firewall) this is the primary network. eht1 192.168.1.254 default gateway 111.111.111.160 (I presume the gw is correct) secondary network. I have read were IP forwarding must be enabled with echo "1" > /proc/sys/net/ipv4/ip_forward I have done this I cant seem to get (ping) from the 192.168.1.0 network to the 111.111.111.0 network and vice versa. I can ping from the eth0 IP 111.111.111.160 from the 192.168.1.0 network And I can ping eth1 IP 192.168.1.254 from the 111.111.111.0 network, but not to any other computer on either network. Now from all that I have read this is a pretty simple process and I am probably over looking something easy. If someone could point me in the right direction I would appreciated it. Thanks in advance The HumbleNetAdmin

iafaneh
Posts: 20
Joined: Tue Aug 28, 2012 6:13 pm

Re: Linux Box as a Router

Post by iafaneh » Mon Sep 03, 2012 8:14 pm

If I read your post correctly, your setup looks something like this (pardon the shortened IP addresses for simplicity). 192.168.1.0 +-------Linux Box-------+ +------------+Eth1 Eth0+---+ FW +1.254 111.160+ +111.1 +-----------------------+ If this diagram is correct, the default gateway for the Linux box needs to point to 111.1 (FW) or it will just go in circles until the TTL expires. If I've not understood your description correctly, then please repost and correct the picture.

Post Reply Previous topicNext topic

Return to “Others”

Who is online

Users browsing this forum: No registered users and 2 guests