[CentOS] /etc/sysconfig/iptables syntax
bkorren at redhat.com
Mon May 23 03:55:53 UTC 2016
בתאריך 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.
> CentOS mailing list
> CentOS at centos.org
More information about the CentOS