IPv6 Debugging: Server socket binding

From OnnoWiki
Revision as of 09:31, 27 June 2013 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Gunakan “netstat” untuk server cek socket binding

Biasanya akan menarik untuk melihat soket yang aktif di sebuah node. Menggunakan "netstat" adalah cara yang paling cepat untuk memperoleh informasi tersebut.

Gunakan opsi: -nlptu

Contoh:

# netstat -nlptu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:873             0.0.0.0:*               LISTEN      1493/rsync      
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1178/mysqld     
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      1033/smbd       
tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      1546/dnsmasq    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      593/sshd        
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      878/cupsd       
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      1436/master     
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      1033/smbd       
tcp6       0      0 :::873                  :::*                    LISTEN      1493/rsync      
tcp6       0      0 :::139                  :::*                    LISTEN      1033/smbd       
tcp6       0      0 :::80                   :::*                    LISTEN      1843/apache2    
tcp6       0      0 :::22                   :::*                    LISTEN      593/sshd        
tcp6       0      0 ::1:631                 :::*                    LISTEN      878/cupsd       
tcp6       0      0 :::25                   :::*                    LISTEN      1436/master     
tcp6       0      0 :::445                  :::*                    LISTEN      1033/smbd       
udp        0      0 127.0.1.1:53            0.0.0.0:*                           1546/dnsmasq    
udp        0      0 0.0.0.0:68              0.0.0.0:*                           1434/dhclient   
udp        0      0 0.0.0.0:41040           0.0.0.0:*                           817/avahi-daemon: r
udp        0      0 192.168.0.255:137       0.0.0.0:*                           2084/nmbd       
udp        0      0 192.168.0.139:137       0.0.0.0:*                           2084/nmbd       
udp        0      0 0.0.0.0:137             0.0.0.0:*                           2084/nmbd       
udp        0      0 192.168.0.255:138       0.0.0.0:*                           2084/nmbd       
udp        0      0 192.168.0.139:138       0.0.0.0:*                           2084/nmbd       
udp        0      0 0.0.0.0:138             0.0.0.0:*                           2084/nmbd       
udp        0      0 0.0.0.0:7357            0.0.0.0:*                           1434/dhclient   
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           817/avahi-daemon: r
udp6       0      0 :::59413                :::*                                1434/dhclient   
udp6       0      0 :::60500                :::*                                817/avahi-daemon: r
udp6       0      0 :::5353                 :::*                                817/avahi-daemon: r