Re: /etc/sysconfig/iptables syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



בתאריך 23 במאי 2016 05:56,‏ "Mike" <1100100@xxxxxxxxx> כתב:
>

>
> 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@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux