Originally Posted by PostEnlite
There are 2 interface devices (eth0 internal, and eth1 external) on a Linux FC4.
'netstat -nap' produces 0.0.0.0:Port as the Local Address for an entry that is Listening (symbolic *:Port).
Which of the two devices does this refer to?
If this refers to both devices, then how can I start an application (e.g. named or telnet) to Listen strictly on eth0 and not on both?
All answers are greatly appreciated.
0.0.0.0 would mean that it's listening on all available addresses... to specify which address you want your program to listen on, it would depend on the program... usually it's just a matter of providing an option in a config file, or supplying a command-line option or something similar... as an example
, to make squid only listen on localhost, you have a line like this in your squid.conf:
then the netstat for it would look like:
win32sux@carly:~$ netstat -an | grep 3128 | grep LISTEN
tcp 0 0 127.0.0.1:3128 0.0.0.0:* LISTEN
if i comment-out that line in squid.conf, then netstat looks like:
win32suxs@carly:~$ netstat -an | grep 3128 | grep LISTEN
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN