View Full Version : [ubuntu] Port 50 is closed - how to open?
tom66
July 23rd, 2009, 06:40 AM
As can be seen in the screenshot port 50 is blocked.
I want to unblock this for purposes as a SSH port, how could this be done? I've tried firestarter but I can only get it to act as stealth or as closed.
Any help appreciated.
Cheesemill
July 23rd, 2009, 06:43 AM
Have you forwarded port 50 on your router?
wojox
July 23rd, 2009, 06:47 AM
Stop using firestarter and try ufw and gufw
tom66
July 23rd, 2009, 06:48 AM
Good question...
Port 50 seems to be OK with the router because I can change it from closed to stealth using FireStarter. I just can't get it open. Also I checked the firewall rules on the router: local LAN allow all ports.
Cheesemill
July 23rd, 2009, 07:00 AM
Do you have anything listening on port 50?
tom66
July 23rd, 2009, 07:26 AM
I don't know, how could I find out?
(I'm new to setting up a server, trying to make a http server with Ubuntu.)
dragos2
July 23rd, 2009, 07:30 AM
I don't know, how could I find out?
(I'm new to setting up a server, trying to make a http server with Ubuntu.)
nmap ip -p50 -P0
tom66
July 23rd, 2009, 07:39 AM
Thanks, got result:
ross@jupiter:~$ nmap [IP REMOVED BY ME] -p50 -P0
Starting Nmap 4.62 ( http://nmap.org ) at 2009-07-23 12:35 BST
Interesting ports on BeBox.config ([IP REMOVED BY ME]):
PORT STATE SERVICE
50/tcp filtered re-mail-ck
Nmap done: 1 IP address (1 host up) scanned in 2.041 seconds
Seems port 50 is filtered. I noted this, so I removed all firewall rules on the port. Now port 50 is in stealth, as shown by a port test. But nmap still sees the port as filtered:
ross@jupiter:~$ nmap [IP REMOVED BY ME] -p50 -P0
Starting Nmap 4.62 ( http://nmap.org ) at 2009-07-23 12:38 BST
Interesting ports on BeBox.config ([IP REMOVED BY ME]):
PORT STATE SERVICE
50/tcp filtered re-mail-ck
Nmap done: 1 IP address (1 host up) scanned in 2.042 seconds
dragos2
July 23rd, 2009, 08:14 AM
Thanks, got result:
ross@jupiter:~$ nmap [IP REMOVED BY ME] -p50 -P0
Starting Nmap 4.62 ( http://nmap.org ) at 2009-07-23 12:35 BST
Interesting ports on BeBox.config ([IP REMOVED BY ME]):
PORT STATE SERVICE
50/tcp filtered re-mail-ck
Nmap done: 1 IP address (1 host up) scanned in 2.041 seconds
Seems port 50 is filtered. I noted this, so I removed all firewall rules on the port. Now port 50 is in stealth, as shown by a port test. But nmap still sees the port as filtered:
ross@jupiter:~$ nmap [IP REMOVED BY ME] -p50 -P0
Starting Nmap 4.62 ( http://nmap.org ) at 2009-07-23 12:38 BST
Interesting ports on BeBox.config ([IP REMOVED BY ME]):
PORT STATE SERVICE
50/tcp filtered re-mail-ck
Nmap done: 1 IP address (1 host up) scanned in 2.042 seconds
Try this
nmap -sT ip -P0 -v -p50
It should say open if ok.
tom66
July 23rd, 2009, 08:42 AM
No luck:
Starting Nmap 4.62 ( http://nmap.org ) at 2009-07-23 13:38 BST
Initiating Parallel DNS resolution of 1 host. at 13:38
Completed Parallel DNS resolution of 1 host. at 13:38, 0.00s elapsed
Initiating Connect Scan at 13:38
Scanning BeBox.config ([ip removed]) [1 port]
Completed Connect Scan at 13:38, 2.00s elapsed (1 total ports)
Host BeBox.config ([ip removed]) appears to be up ... good.
Interesting ports on BeBox.config ([ip removed]):
PORT STATE SERVICE
50/tcp filtered re-mail-ck
Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 2.048 seconds
Thanks for your help.
wojox
July 23rd, 2009, 08:43 AM
UFW is currently the recommended firewall manager. You can install the GUFW (gui) from the Add/Remove menu.
tom66
July 23rd, 2009, 08:53 AM
With (G)UFW I am able to 'Stealth' or 'Close' the port. I want to 'Open' it. Any tips?
wojox
July 23rd, 2009, 09:58 AM
sudo ufw allow 50
https://help.ubuntu.com/community/Uncomplicated_Firewall_ufw
tom66
July 23rd, 2009, 10:58 AM
Unfortunately it didn't work, still showing as Stealth. Do I have to update/save the ufw rules or reboot?
wojox
July 23rd, 2009, 11:01 AM
Show me
sudo ufw status
tom66
July 23rd, 2009, 11:04 AM
ross@jupiter:~$ sudo ufw status
[sudo] password for ross:
Sorry, try again.
[sudo] password for ross:
Status: loaded
To Action From
-- ------ ----
50/tcp ALLOW Anywhere
50/udp ALLOW Anywhere
cdenley
July 23rd, 2009, 05:18 PM
Nothing will say the port is open unless there is a server which accepts the connection. If you want to see if there is a server listening on port 50:
sudo lsof -i :50
If you want to start a listening process that accepts a single connection on port 50, then prints any sent data to the terminal:
sudo nc -l -p 50
The data is reaching your computer. There is no process listening for that data. There is no reason for your computer to accept the connection, so it is rejected. The port is available for a listening process to use, but it will not be "open" until a listening process uses it. What are you expecting your computer to do with incoming connections on port 50?
cariboo907
July 23rd, 2009, 06:42 PM
Quit using GRC's Shields Up. All it does is check your router. You have a service listening on port 50 called re-mail-ck - Remote Mail Checking Protocol.
To set what port ssh is listening on you need to change /etc/ssh/sshd_config, then port forward that port to your router. Then go to canyouseeme (http://canyouseeme.org) to make sure the port is open on the router.
cdenley
July 23rd, 2009, 07:41 PM
Quit using GRC's Shields Up. All it does is check your router. You have a service listening on port 50 called re-mail-ck - Remote Mail Checking Protocol.
Nmap did not indicate he had a service listening on port 50. It indicated the port was closed (filtered). The re-mail-ck service it listed was simply the service commonly associated with that port.
As he said, if you want SSH to listen on port 50, you have to configure that in /etc/ssh/sshd_config.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.