The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: sockets and firewall
vino
Newbie
Rank: 1



UID 16
Digest Posts 0
Credits 0
Posts 74
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at May 20, 2007 08:33 AM  Profile | P.M. 
sockets and firewall



sockets and firewall



is it possible to trace the packages and the statuses of client's and/or server's sockets by the unix network administrative tools?

two applications interact via sockets. there is no problem if they stay in the same network segment. if their hosts connected through the firewall then they aren't able to establish the connection. it seems that the problem is in the firewall. i would like to find the confirmation of wrong firewall settings.

is it possible to trace the packages and the statuses of client's and/or server's sockets by the unix network administrative tools? are there any other ways to find the reason of sockets failure?


Top
Mendes
Newbie
Rank: 1



UID 260
Digest Posts 0
Credits 0
Posts 23
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at May 20, 2007 08:36 AM  Profile | P.M. 
have you tried "tcpdump" ?
Top
CYBERAY
Newbie
Rank: 1



UID 102
Digest Posts 0
Credits 0
Posts 73
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at May 20, 2007 08:39 AM  Profile | P.M. 
tcpdump will help, but also:
- lsof
- netstat
- traceroute
Top
aju_kup
Newbie
Rank: 1



UID 18
Digest Posts 0
Credits 0
Posts 35
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at May 20, 2007 08:41 AM  Profile | P.M. 
is it ok for the application (server and client) if there are number of processes in the status of fin-wait-2 (client) close-wait (server) stay in the system for a long time? the time that is even more then timeout for the next connections of those applications.


quote:
originally posted by grial
tcpdump will help, but also:
- lsof
- netstat
- traceroute
regards.



for the current moment i like netstat and snoop. i dont clearly understand traceroute. is it possible to specify ports for tracing by it?
Top
hani
Newbie
Rank: 1



UID 170
Digest Posts 0
Credits 0
Posts 31
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at May 20, 2007 08:44 AM  Profile | P.M. 
traceroute will allow you to test connectivity. basically, it'll show you the steps a package takes to reach a machine. for this purpose, it uses udp (default), though depebnding on the version you can choose icmp. also depending on the version , you can choose the port. have a look at traceroute man page for more info. i've mentioned this tool because sometimes the problem is not sockets related but a network issue.
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:40 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.005372 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP