Click to See Complete Forum and Search --> : Here's a good one....


mychl
11-11-2001, 08:54 PM
Ok I'm running RH7.2, 2.4.7, iptables...

I have to type echo 1 > /proc/sys/net/ipv4/ip_forward manually everytime I boot up. I put it in my iptables script so it should start when iptables does... wtf??? I also put it in my network script, no go....

Any ideas.....

Thanks..
Mike

[ 11 November 2001: Message edited by: mychl ]

thedexman
11-12-2001, 05:22 PM
What do you mean by "no go"?

mychl
11-12-2001, 05:25 PM
The network starts, but I still have to run /proc/sys/net/ipv4/ip_forward to get my network online.

thedexman
11-12-2001, 06:05 PM
Look in /etc/sysctl.conf for a line like

net.ipv4.ip_forward=0

and just change the 0 to a 1. That may do it.

mychl
11-13-2001, 02:06 AM
Thanks for the help...

Here's how I got it working.

edited the /etc/init.d/network file

found the start) function in the code.

went to the last line before the end of the funtion and added the line

echo "1" > /proc/sys/net/ipv4/ip_forward

The reason putting it in iptables wasn't working was because during boot up, iptables was loading before the network...duh..
And I think last time I put it in the network file, I put it in the wrong spot.

Works now though...

:D