[CentOS] /etc/sysconfig/iptables syntax

Mon May 23 03:55:53 UTC 2016
Barak Korren <bkorren at redhat.com>

בתאריך 23 במאי 2016 05:56,‏ "Mike" <1100100 at gmail.com> כתב:
>

>
> After using iptables for a long time, I can't figure out where this syntax
> comes from.
> Can anyone point me in the right direction to understand the proper syntax
> necessary in /etc/sysconfig/iptables?
>
The syntax comes from the output of the 'iptables-save' command.
You can configure 'iptables' from the command line as you normally would
and then run

iptables-save > /etc/sysconfig/iptables

On centos<=6 the init.d script also included a 'save' command to do it for
you, I'm not sure about the systemd unit file though.

HTH,
Barak _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos