[CentOS] iptables: forwarding on internal device

Filipe Brandenburger filbranden at gmail.com
Sat Feb 7 19:22:43 UTC 2009


Hi Marcus,

On Sat, Feb 7, 2009 at 13:17, Marcus Moeller <mm at gcug.de> wrote:
> Doesn't it fit to just execute service iptables save?

"service iptables save" will merely copy what you have running
(basically what "iptables -nvL" outputs) and save it to
/etc/sysconfig/iptables, so that that same configuration will be used
on your next reboot (or next time you run "service iptables start" or
"service iptables restart").

Looking at http://pastebin.centos.org/23912 the rule you mentioned is
not there either. Maybe the rule was not loaded when you ran "service
iptables save".

I suggest you verify the output of "iptables -nvL" after you load the
rule again, and verify the contents of /etc/sysconfig/iptables after
you run "service iptables save" again. If there is indeed a problem,
looking at those might give you a clue of where/when it is happening.

HTH,
Filipe



More information about the CentOS mailing list