I'm trying to open the Port 80 in my CentOS 6.5, on my virtual machine, so I can access the apache from my desktop's browser.If you take a look at the screenshot above.... I've added the line before the blue arrow, as is written on http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/Now I do get the apache test page when entering the IP-address in my browser, but still when restarting the iptables, I get a FAILED when CentOS tries to apply the new rule.Does anyone know a solution for this? Or do I need to ignore the failure? 
Open port 80 in CentOS 6.5
centos;iptables;apache httpd
Rather than key the rules in manually you can use iptables to add the rules to the appropriate chains and then save them. This will allow you to debug the rules live, confirming they're correct, rather than having to add them to the file like you appear to be doing.To open port 80 I do this:$ sudo iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT$ sudo /etc/init.d/iptables saveThe last command will save the added rules. This is the rule I would use to open up the port for web traffic.Why your rule is causing issuesIf you notice the rule you're attempting to use:-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPTHas a chain called RH-Firewall-1-INPUT. If you do not have this chain, or a link from the INPUT chain to this chain, then this rule will never be reachable. This rule could likely be like this:-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPTOr your INPUT chain should link to this chain RH-Firewall-1-INPUT with a rule like this:$ sudo iptables --listChain INPUT (policy ACCEPT)num  target     prot opt source               destination1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0....NOTE: You can see what chains you have with this command: $ sudo iptables -L| grep ChainChain INPUT (policy ACCEPT)Chain FORWARD (policy ACCEPT)Chain OUTPUT (policy ACCEPT)...Also the states might need to be modified so that existing connections are allowed as well.-A INPUT -m state --state NEW,ESTABLISHED -m tcp -p tcp --dport 80 -j ACCEPTAlso when you use the -A switch you're appending the rule to chain INPUT. If there are other rules before it that are blocking and/or interfering with the reaching of this rule, it will never get executed. So you might want to move it to the top by inserting rather than appending, like this:-I INPUT -m state --state NEW,ESTABLISHED -m tcp -p tcp --dport 80 -j ACCEPTUsing the GUIFirewalls can be complicated beasts. So you might want to try the TUI instead (TUI's are GUI's for the terminal).$ sudo system-config-firewall-tuiYou can then go through the various screens setting up iptables rules.                        ReferencesLinux Firewall Tutorial: IPTables Tables, Chains, Rules Fundamentals