LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
  Search this Thread
Old 10-02-2005, 01:03 PM   #1
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Rep: Reputation: 30
testing port blocking


I'm sitting behind a restrictive firewall for both outgoing and incoming traffic. I'm trying to find some way for me to test which ports are open and which are closed. For example, if I try to connect to a service and its refused I need to find out if the problem is that the port is blocked on the firewall or if the service I'm trying to connect to isn't functioning correctly.

Thanks for the help!
 
Old 10-02-2005, 01:20 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
How about
Code:
netstat -atun
to see which services are running/listening?

And you could try an nmap scan from another machine on the same network to see what the firewall has closed.
 
Old 10-02-2005, 01:24 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
You could use a good port scanner ( I suggest "nmap". "nessus" is good too but harder to configure) to scan your computer from inside and from outside.
The idea would be to acan from an external source that you know to not be firewalled... this would give you an idea of "what" is accessible from the outside.
Then from the "inside" network, you could scan your external box, making sure "ALL" ports are opened and listenning on that box (an easy iptables script could redirect all port to a single one, showing them all open). So you would get an idea what is able to "get out".
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking Port 113 XaViaR Linux - Security 6 04-05-2005 08:18 AM
Port Blocking adtomar Linux - Networking 6 12-14-2004 03:35 AM
port blocking BwiNfon Linux - Security 4 09-25-2003 10:51 AM
blocking port 113 pix Debian 6 08-01-2003 05:53 AM
port blocking EyaL Linux - Security 3 10-19-2002 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration