Issues with source binding to port
Posted: Thu Nov 06, 2014 1:27 pm
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.
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.