How to open a port? (CentOS 6)

Status
This thread has been locked.

Sparko

professional amateur
Supreme
Feedback score
82
Posts
1,986
Reactions
959
Resources
0
Hello,

How can I open a port on my dedi for votifier? I tried doing
Code:
iptables -I INPUT -p tcp --dport 1234 --syn -j ACCEPT
service iptables save
service sshd restart

Code:
iptables -I INPUT -p tcp --dport 1234 --syn -j ACCEPT
service iptables save
semanage port -a -t ssh_port_t -p tcp 1234
service sshd restart

and the gui one which is:
Code:
system-config-firewall-tui
service sshd restart
but none of those opened my port :( (I'm checking through http://www.yougetsignal.com/tools/open-ports/)
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Amp

System & Network Engineer
Supreme
Feedback score
27
Posts
515
Reactions
217
Resources
0
Did you make sure to use the votifier port and not 1234?
 

Sparko

professional amateur
Supreme
Feedback score
82
Posts
1,986
Reactions
959
Resources
0
Did you make sure to use the votifier port and not 1234?
No, I haven't gotten to votifier yet because I'm still trying to figure out how to open the port. I also have a new problem, since I installed selinux I can't access the server, do you also know how to uninstall that?
 

Amp

System & Network Engineer
Supreme
Feedback score
27
Posts
515
Reactions
217
Resources
0
Setenforce 0

To temporarily disable it. If you want to fully disable it you need to edit /etc/sysconfig/selinux and change the SELINUX=permissive to SELINUX=disabled
 

to_er

Feedback score
21
Posts
159
Reactions
93
Resources
0
If still not resolved, post the output of iptables -L and getenforce so that we could get an idea.
 
Status
This thread has been locked.
Top