Page 1 of 1

Issues with source binding to port

Posted: Thu Nov 06, 2014 1:27 pm
by Seenon
Hey all,

I am trying to solve an issue with my network analyzer seeming not "listening" on the port I have assigned. All files seem to be getting generated but no data is coming in - we have troubleshot at the network side and verified everything is working on that end. The only odd behavior I am seeing is that the port I am binding to for the netflow connection does not get listed within netstat when I run the command.


Running a Ps -ef | grep nna I am getting -


[root@nagiosna var]# ps -ef | grep nna
nna 4019 1 0 13:22 ? 00:00:00 /usr/local/bin/nfcapd -I 2 -l /usr/local/nagiosna/var/Juniper/flows -p 8888 -x /usr/local/nagiosna/bin/reap_files.py %d %f %i -P /usr/local/nagiosna/var/Juniper/8888.pid -D -e -w -z
nna 4020 4019 0 13:22 ? 00:00:00 /usr/local/bin/nfcapd -I 2 -l /usr/local/nagiosna/var/Juniper/flows -p 8888 -x /usr/local/nagiosna/bin/reap_files.py %d %f %i -P /usr/local/nagiosna/var/Juniper/8888.pid -D -e -w -z

Yet when I run a netstat -ltn or -atn I am not seeing the port listed in listening - wondering if I could have some permissions issues - selinux and iptables are both not running.
Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LIST


any help would be greatly appreciated.

Re: Issues with source binding to port

Posted: Thu Nov 06, 2014 3:47 pm
by lmiltchev
You should be checking UDP ports not TCP...

Try running:

Code: Select all

netstat -aun

Re: Issues with source binding to port

Posted: Fri Nov 07, 2014 10:34 am
by Seenon
Thanks -- I see it now - feel a bit on the slow side - turns out its my network guy not setting things up correctly.

Re: Issues with source binding to port

Posted: Fri Nov 07, 2014 10:38 am
by tmcdonald
These things happen, no doubt about it. Are we clear to close the thread?