Sponsored Content
Operating Systems Solaris Using netstats (differentiate incoming vs outgoing traffic) Post 302966375 by javanoob on Thursday 11th of February 2016 11:15:41 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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 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

7. 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

8. 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

9. 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
IPFW(4) 						   BSD Kernel Interfaces Manual 						   IPFW(4)

NAME
ipfw -- IP packet filter and traffic accounting SYNOPSIS
To compile the driver into the kernel, place the following option in the kernel configuration file: options IPFIREWALL Other related kernel options which may also be useful are: options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=100 To load the driver as a module at boot time, add the following line into the loader.conf(5) file: ipfw_load="YES" DESCRIPTION
The ipfw system facility allows filtering, redirecting, and other operations on IP packets travelling through network interfaces. The default behavior of ipfw is to block all incoming and outgoing traffic. This behavior can be modified, to allow all traffic through the ipfw firewall by default, by enabling the IPFIREWALL_DEFAULT_TO_ACCEPT kernel option. This option may be useful when configuring ipfw for the first time. If the default ipfw behavior is to allow everything, it is easier to cope with firewall-tuning mistakes which may acciden- tally block all traffic. To enable logging of packets passing through ipfw, enable the IPFIREWALL_VERBOSE kernel option. The IPFIREWALL_VERBOSE_LIMIT option will prevent syslogd(8) from flooding system logs or causing local Denial of Service. This option may be set to the number of packets which will be logged on a per-entry basis before the entry is rate-limited. The user interface for ipfw is implemented by the ipfw(8) utility, so please refer to the ipfw(8) manpage for a complete description of the ipfw capabilities and how to use it. SEE ALSO
setsockopt(2), divert(4), ip(4), ipfw(8), sysctl(8), syslogd(8), pfil(9) BSD
October 25, 2012 BSD
All times are GMT -4. The time now is 08:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy