[CentOS] iptables local forwarding

Filipe Brandenburger filbranden at gmail.com
Thu Oct 23 13:24:20 UTC 2008


Hi,

On Thu, Oct 23, 2008 at 09:15, Tom Brown <tom at ng23.net> wrote:
> However this does not get put into the iptables configuration even after
> running iptables-save

iptables-save will only output the rules in a way that
iptables-restore will be able to rebuild the rules from.

If what you want is for these rules to be up when you boot the
machine, what you want is probably "service iptables save", which will
use iptables-save to record these rules to /etc/sysconfig/iptables,
and a script automatically calls iptables-restore to read that file
upon boot.

HTH,
Filipe


More information about the CentOS mailing list