- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Testing firewall port on hpux servers
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 11:26 AM
11-14-2005 11:26 AM
Dear Sirs,
I want to check whether a firewall port has been opened or not.
I just want to use the command "telnet IP port" to test it.
Please suggest me ways to find out.
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 01:07 PM
11-14-2005 01:07 PM
SolutionIf you don't have the app or service up and running on the port you're testing, you could startup another instance of sshd on the port to test. or create a shell script and put entries in /etc/inetd.conf and /etc/services... although easy method would be to run sshd.
/opt/ssh/sbin/sshd -p port#
then "telnet ip port" to the box where you started the listener, or even ssh if it's sshd.
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 04:41 PM
11-14-2005 04:41 PM
Re: Testing firewall port on hpux servers
1. netstat -na | grep portno
2. lsof -i:portnumber
You have to install lsof tool to use that.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 04:42 PM
11-14-2005 04:42 PM
Re: Testing firewall port on hpux servers
Refer that thread also.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 04:44 PM
11-14-2005 04:44 PM
Re: Testing firewall port on hpux servers
If u have a linux machine, you can use "nmap" for scanning the open ports in a machine.
nmap
Regards
CS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 06:07 PM
11-14-2005 06:07 PM
Re: Testing firewall port on hpux servers
have a look at the "Firewall verification" slides in the presentation available at: http://www.dsluug.org/handouts/pdf/firewall-presentation.pdf
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 12:13 AM
11-15-2005 12:13 AM
Re: Testing firewall port on hpux servers
Download the lsof utility from :
http://hpux.cs.utah.edu
http://gatekeep.cs.utah.edu
And run , to see the details of that port:
# cd /usr/local/bin/
# lsof -i:
Also check with netstat
# netstat -n | grep EST | grep port_no
Enjoy,
hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 01:14 AM
11-15-2005 01:14 AM
Re: Testing firewall port on hpux servers
The correct response of a firewall is connection refused.
I just started using nnmap on Linux and it would be interesting to see the results run against an HP-9000 server running a firewall.
Also recommend following on the 9000 box.
tail -f /var/adm/syslog/syslog.log
During the test. You should see some activity there during certain tests, especially if the port is open.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 05:50 AM
11-15-2005 05:50 AM
Re: Testing firewall port on hpux servers
Appreciate if you can paste a sample output here.
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 06:10 AM
11-15-2005 06:10 AM
Re: Testing firewall port on hpux servers
Nov 15 13:12:49 hpweb inetd[4757]: registrar/tcp: Connection from hpweb (192.168
.0.70) at Tue Nov 15 13:12:49 2005
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 06:00 PM
11-16-2005 06:00 PM
Re: Testing firewall port on hpux servers
# netstat -na | grep
Example:
# netstat -na | grep 23
tcp 0 0 *.23 *.* LISTEN
tcp 0 2 xx.xx.xx.xx xx.xx.xx.xx.1361 ESTABLISHED
tcp 0 0 xx.xx.xx.xx xx.xx.xx.xx.57750 ESTABLISHED
LISTEN is saying that port is opened for servicing. ESTABLISHED is giving the connection opened using that port.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 09:46 AM
11-23-2005 09:46 AM
Re: Testing firewall port on hpux servers
$ telnet jasmine12.bigguy.com 44409
Trying...
Connected to jasmine12.bigguy.com.
Escape character is '^]'.
Connection closed by foreign host.
$
What does it mena "whether firewall port is open or closed" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 05:26 PM
11-23-2005 05:26 PM
Re: Testing firewall port on hpux servers
block your connection, i.e port is open as far
as the firewall is connection.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 05:33 PM
11-23-2005 05:33 PM
Re: Testing firewall port on hpux servers
>
> Actually telnet
> good way of figuring this out.
I fully agree. Simple technique and does the
job.
>
> The correct response of a firewall is
> connection refused.
>
While that is generally true, there are a large
number of firewalls configured not to reply
(with a RST) for refused connection. In those
cases, client will not receive any "connection
refused" reply and give up after few retries.
- Biswajit