Re: Centos 7 - iptables service failed to start

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



On 10.08.2014 05:30, Neil Aggarwal wrote:
> Hey everyone:
> 
>> The process /usr/local/bin/firewall.start could not be executed 
>> and failed.
> 
> I just realized I forgot to put #!/bin/sh at the top of my firewall
> scripts.  I added that and it is working perfectly fine now.
> 
> Sorry for any trouble.

You might want to look into using the regular iptables service instead
od custom firewall scripts. The service uses iptables-save and
iptables-restore which are designed to install all iptables rules
atomically.
If you end up with a typo in your script you end up with a partially
initialized firewall but iptables-restore first parses the entire rule
set and doesn't touch the current rules at all if it finds an error
making the process much more robust.

Regards,
  Dennis

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://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