[CentOS] Recommended way of handling iptables firewall in CentOS?

Niki Kovacs info at microlinux.fr
Mon Oct 13 10:30:57 UTC 2014


Le 13/10/2014 11:11, Reindl Harald a écrit :
> just write a bash script which resets and configures iptables with the
> "iptables" command and at the end of the script call "/sbin/service
> iptables save" which writes the current rules to /etc/sysconfig/iptables
> and so at boot the rules get loaded atomically

Thanks very much! I followed your advice, and here's a first version of 
a firewall script for a LAN server:

https://github.com/kikinovak/centos/blob/master/6.x/firewall/firewall-lan.sh

Cheers,

Niki

-- 
Microlinux - Solutions informatiques 100% Linux et logiciels libres
7, place de l'église - 30730 Montpezat
Web  : http://www.microlinux.fr
Mail : info at microlinux.fr
Tél. : 04 66 63 10 32



More information about the CentOS mailing list