[CentOS] Centos 7 - iptables service failed to start
Dennis Jacobfeuerborn
dennisml at conversis.deSun Aug 10 11:12:20 UTC 2014
- Previous message: [CentOS] Centos 7 - iptables service failed to start
- Next message: [CentOS] Centos 7 - iptables service failed to start
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [CentOS] Centos 7 - iptables service failed to start
- Next message: [CentOS] Centos 7 - iptables service failed to start
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list