MIKE MacMartin wrote:
One last question for today:

How can I make the comands:
echo "1" >/proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
permanent, meaning executed at boot time?


Copy one of the /etc/init.d scripts and make it your own. For example (here's a quick example):
<SNIP>

.. but gentoo already has one.

/etc/init.d/iptables start

... set your firewall rules, manually or via a script...

/etc/init.d/iptables save

Edit /etc/conf.d/iptables and change:
ENABLE_FORWARDING_IPv4="no"
to: "yes"

Run:
rc-update add iptables default

Now your firewall(/router) will come up every boot.

MAL


-- [EMAIL PROTECTED] mailing list



Reply via email to