LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-29-2003, 02:38 PM   #1
jago25_98
Member
 
Registered: Jun 2001
Posts: 269

Rep: Reputation: 30
Testing firewalled ports?


How do I test that ports
(for example):

UDP 1200
UDP 27000 to 27015 inclusive
TCP 27030 to 27039 inclusive

are firewalled at the router?

How do I test this from behind the router?
 
Old 11-29-2003, 03:38 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
It isn't recommended to do from behind the router for acurate results it would be better to ask a friend to run nmap on it.
 
Old 11-29-2003, 03:46 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 57
Re: Testing firewalled ports?

Quote:
Originally posted by jago25_98
How do I test that ports
(for example):

UDP 1200
UDP 27000 to 27015 inclusive
TCP 27030 to 27039 inclusive

are firewalled at the router?

How do I test this from behind the router?
You can go to Gibson Research and have the Shields Up tool scan you from the internet if that's what you are looking for.
 
Old 11-30-2003, 01:23 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Run nmap from a remote location! How? Go here!

You can even customise the nmap command.

nmap -sS -p 27000-27015 -PU Router-IP
nmap -sS -p 27030-27039 Router-IP
 
Old 11-30-2003, 12:35 PM   #5
jago25_98
Member
 
Registered: Jun 2001
Posts: 269

Original Poster
Rep: Reputation: 30
oops let's try to be clearer

Won't this test the router itself?

I meant I need to test if I have the ability to use those ports.

I can't connect to IRC for example and I need to know if my administrator has firewalled it off.

Really I need to know what ports are available and how to use those port but I guess that could take ages.
 
Old 11-30-2003, 08:07 PM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
nmap is still the answer.

nmap -sS -p 1200 -PU Router-IP #Test UDP 1200
nmap -sS -p 27000-27015 -PU Router-IP #Test UDP 27000 to 27015 inclusive
nmap -sS -p 27030-27039 Router-IP #Test TCP 27030 to 27039 inclusive

<edit> Of course you should replace Router-IP with the IP of whatever you are trying to connect to.

Last edited by /bin/bash; 11-30-2003 at 08:22 PM.
 
Old 02-11-2004, 11:22 AM   #7
jago25_98
Member
 
Registered: Jun 2001
Posts: 269

Original Poster
Rep: Reputation: 30
illegal arg

-bash-2.05b$ nmap -sS -p 27000-27015 -PU 127.0.0.1
Illegal Argument to -P, use -P0, -PI, -PB, -PM, -PP, -PT, or -PT80 (or whatever number you want for the TCP probe destination port)
QUITTING!
-bash-2.05b$

?
 
Old 02-11-2004, 11:30 AM   #8
jago25_98
Member
 
Registered: Jun 2001
Posts: 269

Original Poster
Rep: Reputation: 30
Trying to find what's available

I don't want to scan what ports are open, I want to find out what ports are available from the internet to my server.

In other words, what services can I run on my server? It's no good nmap'ing myself as far as I can see because that only seems to pick up portas that are already running, which is no good; I already know port 80 is allowed.

One method I could try is to use netcat to opn aload of ports and then try to connect but I'm not too hot with scripting.

Also, I don't have root at the moment. I can ask for it if it's really needed.


Another way of putting it - I want to play Counterstrike, for example, and it's not connecting to port whatever. I need to be sure it's the firewall and not me.
 
Old 02-11-2004, 03:19 PM   #9
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Nmap is still the answer. Just go to Linux-Sec.net and they will run nmap against your IP.
 
Old 06-03-2004, 11:32 PM   #10
Midget32
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
How do u go to the ports to turn them on??? cause i now my firewall is blocking them
 
Old 06-03-2004, 11:39 PM   #11
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
www.grc.net or the Sygate website and request a scan
 
Old 06-06-2004, 11:20 AM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
Midget32, Welcome to LQ.

What distro are you using and which firewall?
 
Old 06-06-2004, 10:35 PM   #13
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
Midget32, are you using portsentry or its likes? Look into the config files ... you will find entries that are instructing portsentry to restrict access. Once you comment them out, you should be fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Testing open ports, behind a router sekelsenmat Linux - Networking 7 06-28-2005 08:50 AM
gtk-gnutella - Firewalled or not? kjp_72 Linux - Software 1 08-25-2004 12:41 AM
IRC from a firewalled network andrew001 Linux - Networking 0 08-09-2003 08:18 PM
GTK-Gnutella Knows I'm Firewalled Crashed_Again Linux - Software 4 03-08-2003 05:22 PM
NFS between firewalled machines altawolf Linux - Networking 2 12-02-2002 06:01 PM


All times are GMT -5. The time now is 01:32 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration