Re: /etc/sysconfig/iptables syntax

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



Thank you, Mr. Korren.
I'll practice a few times and see if I can reproduce my original rule set.

Best regards.
On May 23, 2016 1:39 AM, "Barak Korren" <bkorren@xxxxxxxxxx> wrote:

> >
> > If I'm understanding correctly, write out all rules in a bash terminal
> and
> > run them, and then do /usr/sbin/iptables-save ---
> >
> > ~#/usr/sbin/iptables rule;
> > ~#/usr/sbin/iptables rule;
> > ~#/usr/sbiniptables rule;
> > ~#/usr/sbin/iptables rule;
> > ~#/usr/sbin/iptables rule;
> > ~#/usr/sbiniptables rule;
> > ~#/usr/sbin/iptables rule;
> > ~#/usr/sbin/iptables rule;
> > ~#/usr/sbiniptables rule;
> > ~#/usr/sbin/iptables rule;
> > ~#/usr/sbin/iptables rule;
> > ~#/usr/sbiniptables rule
> >
> > ~#/usr/sbin/iptables-save > /etc/sysconfig/iptables
>
> Yep.
> And you can copy '/etc/sysconfig/iptables' around if you have
> identical machines and no machine-specific rules...
> (Note, you can even port the rules from other Linux distros as
> iptables-save exists there as well)
>
> --
> Barak Korren
> bkorren@xxxxxxxxxx
> RHEV-CI Team
> _______________________________________________
> 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