Making FORWARD_IPV4=YES permanent / DHCP multiple routers

Mikkel L. Ellertson mikkel at
Tue Feb 12 19:12:19 UTC 2008

Tim Alberts wrote:
> First,
> I'd like to configure my system to forward ip, to act as a gateway for 
> my network.  I've always used a script during startup to do this:
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -t nat -A POSTROUTING -o ${UPLINK} -j SNAT --to ${IP_NAT}
> This works fine, however I want this permanent so I don't have to run 
> the script on startup.  I have the firewall setup with SNAT fine, but 
> when I write the file /etc/sysconfig/network with the line 
> 'FORWARD_IPV4=YES' it still doesn't enable the ip forwarding after boot?
> cat /proc/sys/net/ipv4/ip_forward
> 0
> So how do I do this?
Take a look at /etc/sysctl.conf - this file is the place to add it.


   Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the fedora-list mailing list