Networking Forums

Networking Forums > Computer Networking > Linux Networking > tool to discover some non-firewalled TCP ports?

Reply
Thread Tools Display Modes

tool to discover some non-firewalled TCP ports?

 
 
Benjamin Rutt
Guest
Posts: n/a

 
      06-07-2005, 01:15 PM
I'm trying to make an application work across several sites; the
application must listen on ports accessible to the internet. As an
input to the application, I will need to specify the ports each site
should listen on, to be contacted by the outside. Since I do not want
to bug the administrators at every site, asking for their firewall
policy, are there any existing tools that can take a set of hosts as
input (these are all hosts I can ssh into), and discover at least one
listen TCP port on each host that is reachable from the others? I do
not need to know all non-firewalled ports at every site; just knowing
a few ports that work per site is sufficient.

I was thinking of rolling something together on my own, using e.g. ssh
and netcat and some random probes, but perhaps something exists
already?

Thanks,
--
Benjamin Rutt
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      06-07-2005, 01:40 PM
On 2005-06-07, Benjamin Rutt <(E-Mail Removed)> wrote:
<zap>
> should listen on, to be contacted by the outside. Since I do not want
> to bug the administrators at every site, asking for their firewall
> policy, are there any existing tools that can take a set of hosts as

<zap>

The administrators will be way more bugged by a random portscan than
they would be if you ask them politely. Moreover, they could just
complaint with your ISP and you could find yourself cutted off.

Davide

--
Buy a Pentium III so you can reboot faster.
 
Reply With Quote
 
Jeroen Geilman
Guest
Posts: n/a

 
      06-07-2005, 04:28 PM
Benjamin Rutt wrote:
> I'm trying to make an application work across several sites; the
> application must listen on ports accessible to the internet. As an
> input to the application, I will need to specify the ports each site
> should listen on, to be contacted by the outside. Since I do not want
> to bug the administrators at every site, asking for their firewall
> policy, are there any existing tools that can take a set of hosts as
> input (these are all hosts I can ssh into), and discover at least one
> listen TCP port on each host that is reachable from the others? I do
> not need to know all non-firewalled ports at every site; just knowing
> a few ports that work per site is sufficient.


Ask the respective network administrators.
Seriously.
Unless you want to see your access revoked on these sites, of course.

> I was thinking of rolling something together on my own, using e.g. ssh
> and netcat and some random probes, but perhaps something exists
> already?


Yes, something exists already.


--
J

www.gentoo.org - not just for geeks anymore.
 
Reply With Quote
 
Benjamin Rutt
Guest
Posts: n/a

 
      06-07-2005, 05:19 PM
Jeroen Geilman <(E-Mail Removed)> writes:

> Ask the respective network administrators.
> Seriously.
> Unless you want to see your access revoked on these sites, of course.


I'm a Big Kid now, I'll take the risk. Besides, I might want to run
such a tool on my own network as a sanity check. I'm not talking
about a comprehensive port scan, something more like "try out 500
candidate ports over an hour or so".

>> I was thinking of rolling something together on my own, using e.g. ssh
>> and netcat and some random probes, but perhaps something exists
>> already?

>
> Yes, something exists already.


What?
--
Benjamin Rutt
 
Reply With Quote
 
Andrew Schulman
Guest
Posts: n/a

 
      06-07-2005, 06:20 PM
>> Ask the respective network administrators.
>> Seriously.
>> Unless you want to see your access revoked on these sites, of course.

>
> I'm a Big Kid now, I'll take the risk.


In that case, nmap will almost certainly do what you want.

--
To reply by email, replace "deadspam.com" by "alumni.utexas.net"
 
Reply With Quote
 
Benjamin Rutt
Guest
Posts: n/a

 
      06-07-2005, 07:31 PM
Andrew Schulman <(E-Mail Removed)> writes:

>>> Ask the respective network administrators.
>>> Seriously.
>>> Unless you want to see your access revoked on these sites, of course.

>>
>> I'm a Big Kid now, I'll take the risk.

>
> In that case, nmap will almost certainly do what you want.


I would love to be proven wrong, but I don't think it will. AFAIK,
nmap is good for scanning for already running services, but that is
not what I'm looking for. I'm looking for which ports *could* be used
by my application. What I am getting at is, a tool that take as input
hosts [A,B,C], would log in to host A, listen on 500 or so random
ports spread evenly throughout the 16-bit port range (>1024), hoping
to find that it can receive traffic from the outside on one or more of
those ports from B or C. And then repeat, with B listening for A and
B, and then C listening for A and B. The idea is, if there are large
port ranges open (e.g. >=1000 ports in a row), than this tool would
find them.

The number 500 above could be tunable. If it is <= 500, probably no
admins will notice or care, particularly if I did it slowly, running
overnight, etc.
--
Benjamin Rutt
 
Reply With Quote
 
Andrew Schulman
Guest
Posts: n/a

 
      06-07-2005, 08:48 PM

> Andrew Schulman <(E-Mail Removed)> writes:
>
>>>> Ask the respective network administrators.
>>>> Seriously.
>>>> Unless you want to see your access revoked on these sites, of course.
>>>
>>> I'm a Big Kid now, I'll take the risk.

>>
>> In that case, nmap will almost certainly do what you want.

>
> I would love to be proven wrong, but I don't think it will. AFAIK,
> nmap is good for scanning for already running services, but that is
> not what I'm looking for. I'm looking for which ports *could* be used
> by my application. What I am getting at is, a tool that take as input
> hosts [A,B,C], would log in to host A, listen on 500 or so random
> ports spread evenly throughout the 16-bit port range (>1024), hoping
> to find that it can receive traffic from the outside on one or more of
> those ports from B or C. And then repeat, with B listening for A and
> B, and then C listening for A and B. The idea is, if there are large
> port ranges open (e.g. >=1000 ports in a row), than this tool would
> find them.


Okay. I don't know anything that will do this OOTB, but it seems easy
enough to do with the tools you already have. On A you could run e.g.

nc -l -p 1024-2047 localhost

then use nmap on B to look for open ports in the 1024-2047 range on A.
Lather, rinse, repeat, with a little scripting to hit all the ports on
all the hosts. I wouldn't want to do it with 100 hosts, but for just 3
it doesn't sound bad.

--
To reply by email, replace "deadspam.com" by "alumni.utexas.net"
 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      06-07-2005, 11:45 PM
Benjamin Rutt wrote:

> I'm trying to make an application work across several sites; the
> application must listen on ports accessible to the internet. As an
> input to the application, I will need to specify the ports each site
> should listen on, to be contacted by the outside. Since I do not want
> to bug the administrators at every site, asking for their firewall
> policy, are there any existing tools that can take a set of hosts as
> input (these are all hosts I can ssh into), and discover at least one
> listen TCP port on each host that is reachable from the others? I do
> not need to know all non-firewalled ports at every site; just knowing
> a few ports that work per site is sufficient.
>
> I was thinking of rolling something together on my own, using e.g. ssh
> and netcat and some random probes, but perhaps something exists
> already?


Your ISP's EUA may prohibit such activity, as without permission, it may be
considered hostile.

 
Reply With Quote
 
Grant Coady
Guest
Posts: n/a

 
      06-08-2005, 01:44 AM
On Tue, 07 Jun 2005 19:45:37 -0400, James Knott <(E-Mail Removed)> wrote:
> >
> > I was thinking of rolling something together on my own, using e.g. ssh
> > and netcat and some random probes, but perhaps something exists
> > already?

>
> Your ISP's EUA may prohibit such activity, as without permission, it may be
> considered hostile.


And yes, some sys-admins out there will see to it OP is blacklisted
for such activity, it _looks_ hostile, and will likely be treated
as such. By sys-admin of OP's site or upstream, as well as targeted
sites.

--Grant.

 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      06-08-2005, 02:09 AM
"Benjamin Rutt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> > Ask the respective network administrators.
> > Seriously.
> > Unless you want to see your access revoked on these sites, of course.

>
> I'm a Big Kid now, I'll take the risk.


NNTP-Posting-Host: akron.bmi.ohio-state.edu

"Big Kid" but still in school, though?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Discover Source IP wilson_eldritch Linux Networking 1 05-14-2008 09:09 PM
httptunneling into a firewalled environment? Bob Tennent Linux Networking 2 09-04-2007 05:32 PM
Discover IP range Gianluca Wireless Internet 1 11-14-2006 05:05 PM
Firewalled! Carly Wireless Networks 4 11-02-2006 06:03 PM
Discover DHCP Evert Carton Linux Networking 3 04-14-2004 07:27 AM



1 2 3 4 5 6 7 8 9 10 11