Score:0

telnet to a port with external interface works locally but does not work from remote server

no flag

I am trying to connect a port [31319]. I am running a node port of a Kubernetes service. I am able to do telnet to this port with an external interface from locally but the same does not work from a remote server.

labuser@testbox-srv01:~$ hostname
testbox-srv01
labuser@testbox-srv01:~$ sudo netstat -lnpt | grep :31319
[sudo] password for labuser: 
tcp        0      0 127.0.0.1:31319         0.0.0.0:*               LISTEN      2790/ssh: /home/lab 
labuser@testbox-srv01:~$ telnet 10.123.86.127 31319
Trying 10.123.86.127...
Connected to 10.123.86.127.
Escape character is '^]'.
^]
telnet> q
Connection closed.
labuser@testbox-srv01:~$ telnet 127.0.0.1 31319
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
^]
telnet> q
Connection closed.
labuser@testbox-srv01:~$

But from the remote server

test@testbox-srv02:~$ telnet 10.123.86.127 31319
Trying 10.123.86.127...
telnet: connect to address 10.123.86.127: Connection refused
telnet: Unable to connect to remote host
test@testbox-srv02:~$

I have updated the firewall rules to allow port 31319.

Tapan avatar
no flag
It is with Ubuntu version 22.04.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.