Difference between revisions of "IPv6 Debugging: Server socket binding"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: 14.1. Server socket binding 14.1.1. Using “netstat” for server socket binding check It's always interesting which server sockets are currently active on a node. Using “netstat” is...) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | 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 | + | # netstat -nlptu |
− | Active Internet connections (only servers) | + | |
− | Proto Recv-Q Send-Q Local Address Foreign Address State | + | 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: | + | 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 | + | 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: | + | 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 | + | 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 | |
− | tcp 0 0 0.0.0.0: | + | tcp6 0 0 :::873 :::* LISTEN 1493/rsync |
− | + | tcp6 0 0 :::139 :::* LISTEN 1033/smbd | |
− | tcp 0 0 | + | tcp6 0 0 :::80 :::* LISTEN 1843/apache2 |
− | + | tcp6 0 0 :::22 :::* LISTEN 593/sshd | |
− | tcp 0 0 | + | tcp6 0 0 ::1:631 :::* LISTEN 878/cupsd |
− | + | tcp6 0 0 :::25 :::* LISTEN 1436/master | |
− | tcp 0 0 | + | 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 | |
− | |||
− | udp 0 0 | ||
− | |||
− | udp 0 0 0.0.0.0: | ||
− | |||
− | udp 0 0 0.0.0.0: | ||
− | |||
− | udp 0 0 | ||
− | |||
− | udp 0 0 | ||
− | |||
− | udp 0 0 0.0.0.0:137 0.0.0.0:* | ||
− | |||
− | udp 0 0 | ||
− | |||
− | udp 0 0 | ||
− | |||
− | udp 0 0 0.0.0.0: | ||
− | |||
− | udp 0 0 | ||
− | |||
− | |||
− | |||
− | udp 0 0 0.0.0.0: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 09:31, 27 June 2013
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