101 reputation
bio website
location Bangalore, India
age 36
visits member for 2 years, 6 months
seen Feb 22 at 13:43

comment Opening up port 8080 in CentOS
In case anbody has experienced that the port didn't open after giving this command, you may have a target REJECT already existing in the INPUT chain and your new rule only added after that (I had this problem) which never reaches. So you have to insert your rule before the REJECT. First use iptables -L -n --line-numbers to display all rules with numbers and then use iptables -I INPUT <n> instead of iptables -A INPUT in the command in the answer (where <n> was the number of the REJECT target). This will insert your new rule above the REJECT and it should work.
awarded  Supporter