On CentOS 7 I am trying to open connections to some services in my localhost using both HTTP and direct TCP/UDP (web server, db, etc) but I keep getting connection refused on ports that are not 8080 or 80 ... (ps: ssh to port 22 works fine btw).
Here is what I tried so far:
I checked selinux status..:
[root@ ~]# sestatus SELinux status: disabled
Then I checked for firewalls
[root@ ~]# systemctl status firewalld ● firewalld.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) [root@ ~]# systemctl status iptables ● iptables.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
So if it's not selinux nor firewalls, what should I look for?
Here is what netcat output is (notice that works fine on 8080 and 80)
^C is just to indicate the interrupt signal because
nc has connected
[root@ ~]# nc localhost 8080 ^C [root@ ~]# nc localhost 80 ^C [root@ ~]# nc -v localhost 5544 Ncat: Version 6.40 ( http://nmap.org/ncat ) Ncat: Connection to ::1 failed: Connection refused. Ncat: Trying next address... Ncat: Connection refused. [root@ ~]# nc -v 127.0.0.1 25544 Ncat: Version 6.40 ( http://nmap.org/ncat ) Ncat: Connection refused.
ss -vtnlp | grep :5544 don't give me anything either (and my service on the other side keeps getting connection refused).
Thanks for any help!