How to easily determine, which outbound ports aren't blocked by firewall

10

5

I'm behind fairly restrictive firewall regarding ports, that can be used for connecting outside. I'm also running service on my remote box, and I want to connect to it.

Problem is, that I'm unable to find out which ports I can access, so I don't know where I can bind the service. (The typical unrestricted ports like 80 and 443 are already used on given machine).

I tried to run nmap -sS behind firewall to scan all TCP ports and wireshark on the second machine to determine SYNs that I receive, but I can see false positives (when I listen with netcat on given port and try to connect, it fails).

Is there any tool that can serve my purpose?

nothrow

Posted 2013-08-12T19:50:10.707

Reputation: 215

Answers

17

This website comes in handy for that:

http://portquiz.net:1234/

This example tests whether you are able to visit outbound port 1234. You simply change the port number to whatever you like. Also, the site gives some examples that could be used in a command line script:

$ wget -qO- portquiz.net:1234 
Port 1234 test successful!
Your IP: 198.252.206.16

dtmland

Posted 2013-08-12T19:50:10.707

Reputation: 2 281

1portquiz.net is blocked by most corporate firewalls. – None – 2014-10-14T17:12:53.253

Also, port 445 is not testable. – Max – 2017-11-17T08:28:38.437

1It's now 2019, and I have used nothing but corporate enterprise firewalls at all of the companies I have consulted for. None of them have blocked portquiz.net. If you're seeing it blocked, then most like the port you are testing is being blocked. Which answers your question of it being open or not... – John C – 2019-02-01T16:26:12.530

What if the computer doesn't have internet access? – Geordie – 2019-06-29T00:01:08.883