ToMi様
教えていただいた下記のコマンドを試したところ
system_profiler SPNetworkDataType
system_profiler SPNetworkDataType
Network:
VPN (PPTP):
Type: PPP (PPTP)
BSD Device Name: ppp0
IPv4 Addresses: 192.168.0.33
IPv4:
Addresses: 192.168.0.33
Configuration Method: PPP
Destination Addresses: 192.168.0.1
Interface Name: ppp0
Network Signature: VPN.RemoteAddress=tamakicloud.iobb.net
OverridePrimary: 1
Router: 192.168.0.1
ServerAddress: 126.10.212.19
IPv6:
Addresses: ::1
Configuration Method: Automatic
Interface Name: ppp0
IsNULL: 1
OverridePrimary: 1
Router: ::1
DNS:
Server Addresses: 218.176.253.65, 218.176.253.97
Supplemental Match Domains:
Supplemental Match Orders: 100000
Proxies:
FTP Passive Mode: Yes
Supplemental Match Domains:
Supplemental Match Orders: 100000
Service Order: 0
Wi-Fi:
Type: AirPort
Hardware: AirPort
BSD Device Name: en1
IPv4 Addresses: 192.168.255.9
IPv4:
Addresses: 192.168.255.9
ARPResolvedHardwareAddress: 40:27:0b:00:2b:de
ARPResolvedIPAddress: 192.168.255.1
Configuration Method: DHCP
Interface Name: en1
Network Signature: IPv4.Router=192.168.255.1;IPv4.RouterHardwareAddress=40:27:0b:00:2b:de
Router: 192.168.255.1
Subnet Masks: 255.255.255.0
IPv6:
Configuration Method: Automatic
DNS:
Server Addresses: 192.168.255.1
DHCP Server Responses:
Domain Name Servers: 192.168.255.1
Lease Duration (seconds): 0
DHCP Message Type: 0x05
Routers: 192.168.255.1
Server Identifier: 192.168.255.1
Subnet Mask: 255.255.255.0
Ethernet:
MAC Address: 28:cf:e9:53:fb:03
Media Options:
Media Subtype: Auto Select
Proxies:
Exceptions List: *.local, 169.254/16
FTP Passive Mode: Yes
Auto Discovery Enabled: Yes
Service Order: 1
Bluetooth DUN:
Type: PPP (PPPSerial)
Hardware: Modem
BSD Device Name: Bluetooth-Modem
IPv4:
Configuration Method: PPP
IPv6:
Configuration Method: Automatic
Proxies:
FTP Passive Mode: Yes
Service Order: 2
Ethernet:
Type: Ethernet
Hardware: Ethernet
BSD Device Name: en0
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
Ethernet:
MAC Address: 10:dd:b1:b3:82:b4
Media Options:
Media Subtype: none
Proxies:
Exceptions List: *.local, 169.254/16
FTP Passive Mode: Yes
Service Order: 3
FireWire:
Type: FireWire
Hardware: FireWire
BSD Device Name: fw0
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
Ethernet:
MAC Address: 44:fb:42:ff:fe:0f:2e:4a
Media Options: Full Duplex
Media Subtype: Auto Select
Proxies:
Exceptions List: *.local, 169.254/16
FTP Passive Mode: Yes
Service Order: 4
Bridge (bridge0):
Type: Ethernet
Hardware: Ethernet
BSD Device Name: bridge0
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
Proxies:
Exceptions List: *.local, 169.254/16
FTP Passive Mode: Yes
Service Order: 5
と表示されまして、BSD Device Name: ppp0と分かりましたので
sudo tcpdump -tttt -i ppp0 'host 192.168.0.9 and port 445'
と実行しまして、
(tcpdumpを開始後、別のターミナルウインドウでtelnet を実行、接続後少し待って切断)
(tcpdumpの実行、telnet 切断後にcontrol-Cで終了、macのホスト名をXXXXXXX、接続先のホスト名をYYYYYYYYに変えてます)
を行ったところ
2016-02-15 14:13:40.971004 IP tamakicloud.microsoft-ds > 192.168.0.33.51871: Flags [.], ack 1555, win 250, options [nop,nop,TS val 3896438149 ecr 115852499], length 0
2016-02-15 14:13:49.844953 IP 192.168.0.33.51872 > tamakicloud.microsoft-ds: Flags [F.], seq 1, ack 1, win 8265, options [nop,nop,TS val 115862364 ecr 301225664], length 0
2016-02-15 14:13:50.443170 IP tamakicloud.microsoft-ds > 192.168.0.33.51872: Flags [.], ack 2, win 252, options [nop,nop,TS val 301248949 ecr 115862364], length 0
2016-02-15 14:13:50.443200 IP tamakicloud.microsoft-ds > 192.168.0.33.51872: Flags [F.], seq 1, ack 2, win 252, options [nop,nop,TS val 301248959 ecr 115862364], length 0
2016-02-15 14:13:50.443272 IP 192.168.0.33.51872 > tamakicloud.microsoft-ds: Flags [.], ack 1, win 8265, options [nop,nop,TS val 115862961 ecr 301248949], length 0
2016-02-15 14:13:50.443363 IP 192.168.0.33.51872 > tamakicloud.microsoft-ds: Flags [.], ack 2, win 8264, options [nop,nop,TS val 115862961 ecr 301248959], length 0
2016-02-15 14:13:51.968509 IP 192.168.0.33.51871 > tamakicloud.microsoft-ds: Flags [P.], seq 1555:1627, ack 1011, win 8201, options [nop,nop,TS val 115864481 ecr 3896413959,nop,nop,sack 1 {5187:5191}], length 72SMB-over-TCP packet:(raw data or continuation?)
2016-02-15 14:13:52.139838 IP tamakicloud.microsoft-ds > 192.168.0.33.51871: Flags [.], ack 1627, win 250, options [nop,nop,TS val 3896450155 ecr 115864481], length 0
^C
252 packets captured
1320 packets received by filter
0 packets dropped by kernel
と表示されました。
見づらくてすみません。