Re: Determine open ports



ein a écrit :
On 03/14/2011 09:50 PM, Pascal Hambourg wrote:

ein a écrit :
Run 'netstat -l -p -n -t'. Example meanings;
Proto R-Q S-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
Means, that port 631/tcp is open on loopback interface.
Indirectly, because 127.0.0.1 can be used only on a loopback interface.

This is not true.

eth1 Link encap:Ethernet HWaddr 00:90:27:34:5e:ab
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
route:
eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0

You can *assign* a loopback address on a non loopback interface, but
cannot effectively *use* it.
Just try it. Any packet received or sent on a non loopback interface
from or to a loopback address will just be discarded by the kernel.
.



Relevant Pages

  • Re: problem with networks setup on solaris 2.7
    ... yet nothing but loopback interface could be pinged. ... I suspect either your TP port is busted, ... My SS20 is turned off behind me, but I think it was a matter of TPE ... I've brought the 2940 switch from Cisco and found that my ...
    (comp.unix.solaris)
  • Re: iptables: forward port from eth0 to 127.0.0.1
    ... >> Need some iptables help. ... How can I use iptables to redirect eth0 port ... is the loopback interface. ... He means he wants to DNAT port 80 from the external interface to localhost. ...
    (comp.os.linux.security)
  • Re: Determine open ports
    ... that port 631/tcp is open on loopback interface. ... because 127.0.0.1 can be used only on a loopback interface. ... I think loopback can by used like any other interafce - we can route ...
    (comp.os.linux.networking)
  • Re: some tunnelling help needed: README FIRST
    ... > You forgot the '-g' option, to allow remote hosts to connect to the local ... the port is just bound to the loopback interface. ... For GNU/Linux Success Stories and Articles visit: ...
    (SSH)
  • Re: some tunnelling help needed
    ... > You forgot the '-g' option, to allow remote hosts to connect to the local ... the port is just bound to the loopback interface. ... For GNU/Linux Success Stories and Articles visit: ...
    (SSH)