Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 476
ElizaS Avatar asked Nov 28 '12 13:11

ElizaS


1 Answers

How about:

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

This may help too.

like image 127
Aaron M. Avatar answered Oct 18 '22 04:10

Aaron M.