[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IP forwarding
> I want to set up IP masquerading to share an internet connection
>
> According to a book I have, I have to "Enable IP forwarding in the kernel by
> executing /proc/sys/net/ipv4/ip_forward "
>
> When I try this I get the message "bash:/proc/sys/net/ipv4/ip_forward:
> Permission denied"
You do not execute the file, you poke a one into it.
First, see how it's currently set with a:
cat /proc/sys/net/ipv4/ip_forward
If it's "1" then you're all set. Stop right here.
If it's a zero ("0"), then sent it to one like this:
echo 1 > /proc/sys/net/ipv4/ip_forward
The file is not a "real" file (none of the files are real in /proc).
/proc is a window into the running kernel. That's why it appears
to be zero bytes long in size.
--------------------------------------------
Bruce Smith bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan 49093 USA
http://www.armstrong-intl.com/
--------------------------------------------