בתאריך 23 במאי 2016 05:56, "Mike" 1100100@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@centos.org https://lists.centos.org/mailman/listinfo/centos