Using netstats (differentiate incoming vs outgoing traffic)


 
Thread Tools Search this Thread
Operating Systems Solaris Using netstats (differentiate incoming vs outgoing traffic)
# 1  
Old 02-11-2016
Using netstats (differentiate incoming vs outgoing traffic)

Hi all,

Sorry for the gullible question, are we able to different incoming / outgoing traffic using netstats ?

It seems like the local traffic is always on the left, and the remote is beside it. but it doesn't state the traffic direction.

or is it that if I have
- a LISTEN entry (e.g. on port 6200) and
- an "ESTABLISHED" entry with the the local traffic address x.x.x.x.6200, foreign address y.y.y.y.1235, it means i have a incoming traffic to port 6200 ?

===============
Right now,
I have 2 servers listening on port 6200 and they are suppose to connect to each other on that port.

NodeA - 192.168.1.27
NodeB - 192.168.1.37

NodeA (192.168.1.27) netstat result
Code:
*.6200   *.*    0   0   49152  0   LISTEN
*.6200   *.*    0   0   49152  0   LISTEN
192.168.1.27.44709     192.168.1.37.6200  49460   0  49460 ESTABLISHED


NodeB (192.168.1.37) netstat result
Code:
*.6200   *.*    0   0   49152  0   LISTEN
*.6200   *.*    0   0   49152  0   LISTEN
192.168.1.37.6200  192.168.1.27.44709   49460   0  49460 ESTABLISHED


q1) Does it means that Node A is connected to Node B at port 6200.
But Node B IS NOT connected to Node A's 6200 ?

q2) is it possible to LISTEN on the same port for 2 different program? why do i see 2 LISTEN entries ?


Regards,
Noob
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Differentiate 2 files name

Hello All, I have 2 Type of files. 1. MYTEST001_RKP_DORALDO_20150402120000.zip 2. CMP001_STD001_MOGANO_RPSL_20150409_C.zip I can receive these Two type of file at one location. If i receive second type of file CMP001_STD001_MOGANO_RPSL_20150409_C.zip I have to process without... (9 Replies)
Discussion started by: yadavricky
9 Replies

2. UNIX for Dummies Questions & Answers

differentiate $@ and $*

can anyone explain the difference between $* and $@? pandeeswaran@ubuntu:~/training$ bash dollarstar 1 2 3 "4 5" 6 1 2 3 4 5 6 1 2 3 4 5 6 pandeeswaran@ubuntu:~/training$ cat dollarstar #!/bin/bash for i in $@ do (4 Replies)
Discussion started by: pandeesh
4 Replies

3. Solaris

Solaris Question - How to find outgoing traffic on UDP ports

Hello All, I am trying find a command that would show me the stats of outgoing traffic on UPD ports on a Solaris 10 box. I would appreciate if anybody could help me out on this. Thank you much!!! Best Regards Sudharma. (7 Replies)
Discussion started by: sudharma
7 Replies

4. Shell Programming and Scripting

differentiate between spaces and new-lines

Hi - Here's the problem I'm encountering......My script logs in to remote FTP through password-less "sftp" and must get the list of sub-directories under a given path. I know many of the unix commands don't work in "sftp" login so I cannot know which one is a "directory" and which one is a... (2 Replies)
Discussion started by: dips_ag
2 Replies

5. Shell Programming and Scripting

Block incoming traffic FTP from internet using iptables

Hi everybody. I have the next scenary: eth0: WAN eth1: DMZ eth2: LAN I need to block all incoming trafic from the internet through my network LAN using iptables. I have squid but i need to do this using ipatbles. I have been listening about iptables -A FORDAWARD but I am stuck right... (0 Replies)
Discussion started by: edeamat
0 Replies

6. Shell Programming and Scripting

Differentiate the scripts

Can anyone decribe what would be differnce between the following scripts: #nohup /bin/sh ./job 2>& 1& # ./job > nohup.out & Thanks Alvida (1 Reply)
Discussion started by: alvida
1 Replies

7. Linux

how I can find size of incoming or outgoing data

Hi, I'm using SLES10, I want to know the user size of the data that is downloaded or uploaded the data who connects to the server. In other words, a user utilization of my server in terms of size. Thanks, Kris (1 Reply)
Discussion started by: krisdasword
1 Replies

8. Linux

Netstats question

Hi all, I am running nagios as the master monitoring tool on an intel box with o/s 2.6.19-1.2895.fc6. I run an nrpe daemon on AIX5.3 and have started experiencing some issues when wait is high on the client server ..... my question is not really a nagios question however if anyone has... (0 Replies)
Discussion started by: chlawren
0 Replies

9. UNIX for Dummies Questions & Answers

How to Differentiate Between Files and Folders?

Hi All, I'm a rookie using HPUX and I know this is going to sound like a bonehead question, but when I list the contents of a directory, how can I determine which objects are files and which are folders? I'm using the ll and ls commands to lists the contents. So far I've been determining the... (6 Replies)
Discussion started by: dgower2
6 Replies
Login or Register to Ask a Question