Re: forward eth1 to eth0

Tim Fletcher (
Fri, 12 Mar 1999 00:00:20 +0000 (GMT)

> I work for an ISP and we have decided to use linux as a temporary
> gateway for a few machines. We have installed 2 ethernet cards in this
> machine, and both work properly. I have eth0 connected to the
> internet, and eth1 goes into the hub, for the internal network. I can
> ping internally all machines, but packets do not get forwarded to eth0
> (the internet.) I am running 2.0.36 kernel right now, but i am
> upgrading to 2.2 as we speak. I know this is a routing problem,
> getting packets from eth1 to forward to eth0 and out to the net, but i
> cannot figure it out for the life of me. I have used IP masquerading
> with no problem, but we need real routable IP's. Any help would be
> appreciated, thank you.

Compile ip forwarding into the kernel and boot the kenrel, then run:
echo "1" > /proc/sys/net/ipv4/ip_forward and I think that is it. It was
all I did when I played with ip forwarding a while back.

Tim Fletcher .~.
/V\ L I N U X // \\ >Don't fear the penguin< /( )\

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
-- Isaac Asimov

To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to