Netstat (1.04)

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 23:04, 11 May 2005 by Tman (Talk)

Jump to: navigation, search

netstat tells you about the running services:

root@HD-HTGL113:~# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:printer               *:*                     LISTEN
tcp        0      0 *:afpovertcp            *:*                     LISTEN
tcp        0      0 *:8873                  *:*                     LISTEN
tcp        0      0 *:rsync                 *:*                     LISTEN
tcp        0      0 *:netbios-ssn           *:*                     LISTEN
tcp        0      0 *:www                   *:*                     LISTEN
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 *:22939                 *:*                     LISTEN
udp        0      0 localhost.localdom:1025 *:*
udp        0      0 HD-HTGL113:netbios-ns   *:*
udp        0      0 *:netbios-ns            *:*
udp        0      0 HD-HTGL113:netbios-dgm  *:*
udp        0      0 *:netbios-dgm           *:*
udp        0      0 *:22936                 *:*
udp        0      0 *:22939                 *:*
udp        0      0 *:bootpc                *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING     307    /var/run/lprng
unix  10     [ ]         DGRAM                    208    /dev/log
unix  2      [ ]         DGRAM                    1217   
unix  2      [ ]         DGRAM                    894    
unix  2      [ ]         DGRAM                    773    
unix  2      [ ]         DGRAM                    399    
unix  2      [ ]         DGRAM                    292    
unix  2      [ ]         DGRAM                    290    
unix  2      [ ]         DGRAM                    269    
unix  2      [ ]         DGRAM                    260    

This are nothing special: tcp/printer (printer, lpd), tcp/afpovertcp (appletalk), tcp/netbios-ssn, udp/netbios-ns, udp/netbios-dgm (samba, windows file sharing), tcp/www (apache), udp/bootpc (DHCP-client).

More interesting:

  • tcp/rsync: rsync run by inetd
    • rsync server, exporting all shares
    • but will reject any connections from everyone, due to /etc/hosts.deny
    • used for the disk backup feature
  • tcp/8873: rsfwds run by inetd
    • no idea what that is
    • will reject any connections, like rsync
  • tcp/22939, udp/22939: come from lsprcvd
    • no idea
  • udp/22936: is bound by ls_servd
    • no idea