Score:0

How to open and listen ports Ubuntu

us flag

I would like to know how to open ports correctly on Ubuntu 20.04 VPS. Through a SSH connection, i openned the ports using the following command: sudo ufw allow 55402/tcp, although when i check the port on some website, the port 55402 is "filtered". Searching, i found that's because there's not an application listening to the port 55402. I'd like to know how to make Ubuntu listen to that port without using an application, that's because i want a "FORWARD PORT", where the VPS receives data from my computer and send to another computers without treatment or filtering.

ChanganAuto avatar
us flag
https://www.arubacloud.com/tutorial/how-to-manage-and-forward-ports-with-ufw-on-ubuntu-18-04.aspx
us flag
@ChanganAuto , that didn't worked, checking on the site. the port still as filtered : 55402/tcp filtered unknown, i don't want to use a application on my VPS, but i have a program that sends data to the VPS, so i have another computer with the same program, that will receive the data that the VPS collected. I wanna use the VPS as a intermediary, but if you know any linux program (no interface) that do the job (PROMPT COMMANDS, Data sender and receiver, RAT in general), i would be grateful to know.
Level9 avatar
cn flag
Could you please give us the output of the following command? `sudo ufw status verbose`
us flag
@Level9 To Action From -- ------ ---- 22/tcp ALLOW IN Anywhere 3389/tcp ALLOW IN Anywhere 55402/tcp ALLOW IN Anywhere 22/tcp (v6) ALLOW IN Anywhere (v6) 3389/tcp (v6) ALLOW IN Anywhere (v6) 55402/tcp (v6) ALLOW IN Anywhere (v6) 55402/tcp ALLOW OUT Anywhere 55402/tcp (v6) ALLOW OUT Anywhere (v6)
Level9 avatar
cn flag
Sorry but that was not the complete output of ```sudo ufw status```. I miss the following row: ```Default: deny (incoming), allow (outgoing), deny (routed)```
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.