How to open port 2195 in iptables CentOS 6 for activating the APNS

ElizaS picture ElizaS · Nov 28, 2012 · Viewed 74.3k times · Source

I tried this solution:

iptables -I OUTPUT -p tcp --dport 2195 -j ACCEPT
/etc/init.d/iptables stop
/etc/init.d/iptables start

but still can't access the port.

If there are more ports that I have to open for APNS let me know.

Answer

Aaron M. picture Aaron M. · Nov 28, 2012

How about:

iptables -A INPUT -p tcp --dport 2195 -j ACCEPT
service iptables restart

This may help too.