Share
Embed
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
47 slides
-
# pfctl -sn nat on em0 inet from 10.10.10.0/24 \
to any -> 11.22.33.44 -
“Microsoft bought 666,624 IPv4 addresses from Nortel's liquidation sale for
$7.5 million” http://en.wikipedia.org/wiki/IPv4_address_exhaustion -
“Microsoft bought 666,624 IPv4 addresses from Nortel's liquidation sale for
$7.5 million” http://en.wikipedia.org/wiki/IPv4_address_exhaustion -
% ping 255.255.255.255 PING 255.255.255.255 (255.255.255.255): 56 data bytes 64
bytes from 192.168.60.68: icmp_seq=0 ttl=64 time=0.077 ms 64 bytes from 192.168.60.84: icmp_seq=0 ttl=64 time=1.436 ms 64 bytes from 192.168.60.21: icmp_seq=0 ttl=255 time=1.876 ms 64 bytes from 192.168.60.20: icmp_seq=0 ttl=255 time=1.880 ms 64 bytes from 192.168.60.114: icmp_seq=0 ttl=64 time=1.883 ms 64 bytes from 192.168.60.123: icmp_seq=0 ttl=255 time=36.435 ms 64 bytes from 192.168.60.77: icmp_seq=0 ttl=64 time=53.567 ms 64 bytes from 192.168.60.98: icmp_seq=0 ttl=64 time=53.575 ms ... -
# tcpdump -ni en0 ip broadcast tcpdump: verbose output suppressed,
use -v or -vv for full protocol decode listening on en0, link-type EN10MB (Ethernet), capture size 65535 bytes 17:09:20.938067 IP 192.168.60.92.17500 > 255.255.255.255.17500: UDP, length 142 17:09:21.143404 IP 192.168.60.77.17500 > 255.255.255.255.17500: UDP, length 323 17:09:22.638120 IP 192.168.60.252.32772 > 255.255.255.255.7423: UDP, length 173 17:09:22.780173 IP 192.168.60.55.17500 > 255.255.255.255.17500: UDP, length 111 17:09:22.991891 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 98:d6:f7:64:93:3e, length 300 17:09:25.033924 IP 192.168.60.104.17500 > 255.255.255.255.17500: UDP, length 130 17:09:25.037686 IP 192.168.60.104.17500 > 255.255.255.255.17500: UDP, length 130 17:09:25.039651 IP 192.168.60.104.17500 > 255.255.255.255.17500: UDP, length 130 17:09:25.858068 IP 192.168.60.252.32772 > 255.255.255.255.7423: UDP, length 173 17:09:28.925428 IP 192.168.60.252.32772 > 255.255.255.255.7423: UDP, length 173 -
# tcpdump -ni en0 ip broadcast tcpdump: verbose output suppressed,
use -v or -vv for full protocol decode listening on en0, link-type EN10MB (Ethernet), capture size 65535 bytes 17:09:20.938067 IP 192.168.60.92.17500 > 255.255.255.255.17500: UDP, length 142 17:09:21.143404 IP 192.168.60.77.17500 > 255.255.255.255.17500: UDP, length 323 17:09:22.638120 IP 192.168.60.252.32772 > 255.255.255.255.7423: UDP, length 173 17:09:22.780173 IP 192.168.60.55.17500 > 255.255.255.255.17500: UDP, length 111 17:09:22.991891 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 98:d6:f7:64:93:3e, length 300 17:09:25.033924 IP 192.168.60.104.17500 > 255.255.255.255.17500: UDP, length 130 17:09:25.037686 IP 192.168.60.104.17500 > 255.255.255.255.17500: UDP, length 130 17:09:25.039651 IP 192.168.60.104.17500 > 255.255.255.255.17500: UDP, length 130 17:09:25.858068 IP 192.168.60.252.32772 > 255.255.255.255.7423: UDP, length 173 17:09:28.925428 IP 192.168.60.252.32772 > 255.255.255.255.7423: UDP, length 173 DHCP Dropbox Shared Printer -
# tcpdump -ni en0 ip6 multicast 21:38:08.629032 IP6 fe80::165a:5ff:fe8a:5d70.5353 >
ff02::fb.5353: 0*- [0q] 4/0/4 (Cache flush) PTR Xenias-iPhone.local., (Cache flush) AAAA fe80::165a:5ff:fe8a:5d70, (Cache flush) PTR Xenias-iPhone.local., (Cache flush) A 192.168.22.53 (276) 21:38:09.040701 IP6 fe80::52ea:d6ff:fe0a:f6d2.5353 > ff02::fb.5353: 0*- [0q] 8/0/4 (Cache flush) TXT "", PTR _apple-mobdev._tcp.local., PTR 50:ea:d6:0a:f6:d2@fe80::52ea:d6ff:fe0a:f6d2._apple-mobdev._tcp.local., (Cache flush) SRV Tina4.local.:62078 0 0, (Cache flush) PTR Tina4.local., (Cache flush) PTR Tina4.local., (Cache flush) AAAA fe80::52ea:d6ff:fe0a:f6d2, (Cache flush) A 192.168.22.44 (413) 21:38:15.691150 IP6 fe80::66a3:cbff:fe3e:de92.5353 > ff02::fb.5353: 0 [2q] PTR (QU)? _airplay._tcp.local. PTR (QU)? _raop._tcp.local. (49) 21:38:36.071442 IP6 :: > ff02::1:ff28:c9cc: ICMP6, neighbor solicitation, who has fe80::76e2:f5ff:fe28:c9cc, length 24 21:38:36.072375 IP6 fe80::76e2:f5ff:fe28:c9cc > ff02::2: ICMP6, router solicitation, length 8 21:38:36.477083 IP6 fe80::76e2:f5ff:fe28:c9cc > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 21:38:40.991596 IP6 fe80::52ea:d6ff:fe0a:f6d2.5353 > ff02::fb.5353: 0*- [0q] 8/0/4 (Cache flush) TXT "", PTR _apple-mobdev._tcp.local., PTR 50:ea:d6:0a:f6:d2@fe80::52ea:d6ff:fe0a:f6d2._apple-mobdev._tcp.local., (Cache flush) SRV Tina4.local.:62078 0 0, (Cache flush) PTR Tina4.local., (Cache flush) PTR Tina4.local., (Cache flush) AAAA fe80::52ea:d6ff:fe0a:f6d2, (Cache flush) A 192.168.22.44 (413) 21:38:43.542790 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 21:38:43.548251 IP6 :: > ff02::1:ff3b:1c4: ICMP6, neighbor solicitation, who has fe80::42a6:d9ff:fe3b:1c4, length 24 21:38:43.549206 IP6 fe80::42a6:d9ff:fe3b:1c4 > ff02::2: ICMP6, router solicitation, length 8 21:38:44.056222 IP6 fe80::42a6:d9ff:fe3b:1c4 > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 21:38:44.771675 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 -
# tcpdump -ni en0 ip6 multicast 21:38:08.629032 IP6 fe80::165a:5ff:fe8a:5d70.5353 >
ff02::fb.5353: 0*- [0q] 4/0/4 (Cache flush) PTR Xenias-iPhone.local., (Cache flush) AAAA fe80::165a:5ff:fe8a:5d70, (Cache flush) PTR Xenias-iPhone.local., (Cache flush) A 192.168.22.53 (276) 21:38:09.040701 IP6 fe80::52ea:d6ff:fe0a:f6d2.5353 > ff02::fb.5353: 0*- [0q] 8/0/4 (Cache flush) TXT "", PTR _apple-mobdev._tcp.local., PTR 50:ea:d6:0a:f6:d2@fe80::52ea:d6ff:fe0a:f6d2._apple-mobdev._tcp.local., (Cache flush) SRV Tina4.local.:62078 0 0, (Cache flush) PTR Tina4.local., (Cache flush) PTR Tina4.local., (Cache flush) AAAA fe80::52ea:d6ff:fe0a:f6d2, (Cache flush) A 192.168.22.44 (413) 21:38:15.691150 IP6 fe80::66a3:cbff:fe3e:de92.5353 > ff02::fb.5353: 0 [2q] PTR (QU)? _airplay._tcp.local. PTR (QU)? _raop._tcp.local. (49) 21:38:36.071442 IP6 :: > ff02::1:ff28:c9cc: ICMP6, neighbor solicitation, who has fe80::76e2:f5ff:fe28:c9cc, length 24 21:38:36.072375 IP6 fe80::76e2:f5ff:fe28:c9cc > ff02::2: ICMP6, router solicitation, length 8 21:38:36.477083 IP6 fe80::76e2:f5ff:fe28:c9cc > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 21:38:40.991596 IP6 fe80::52ea:d6ff:fe0a:f6d2.5353 > ff02::fb.5353: 0*- [0q] 8/0/4 (Cache flush) TXT "", PTR _apple-mobdev._tcp.local., PTR 50:ea:d6:0a:f6:d2@fe80::52ea:d6ff:fe0a:f6d2._apple-mobdev._tcp.local., (Cache flush) SRV Tina4.local.:62078 0 0, (Cache flush) PTR Tina4.local., (Cache flush) PTR Tina4.local., (Cache flush) AAAA fe80::52ea:d6ff:fe0a:f6d2, (Cache flush) A 192.168.22.44 (413) 21:38:43.542790 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 21:38:43.548251 IP6 :: > ff02::1:ff3b:1c4: ICMP6, neighbor solicitation, who has fe80::42a6:d9ff:fe3b:1c4, length 24 21:38:43.549206 IP6 fe80::42a6:d9ff:fe3b:1c4 > ff02::2: ICMP6, router solicitation, length 8 21:38:44.056222 IP6 fe80::42a6:d9ff:fe3b:1c4 > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 21:38:44.771675 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 -
# tcpdump -ni en0 ip6 multicast 21:38:08.629032 IP6 fe80::165a:5ff:fe8a:5d70.5353 >
ff02::fb.5353: 0*- [0q] 4/0/4 (Cache flush) PTR Xenias-iPhone.local., (Cache flush) AAAA fe80::165a:5ff:fe8a:5d70, (Cache flush) PTR Xenias-iPhone.local., (Cache flush) A 192.168.22.53 (276) 21:38:09.040701 IP6 fe80::52ea:d6ff:fe0a:f6d2.5353 > ff02::fb.5353: 0*- [0q] 8/0/4 (Cache flush) TXT "", PTR _apple-mobdev._tcp.local., PTR 50:ea:d6:0a:f6:d2@fe80::52ea:d6ff:fe0a:f6d2._apple-mobdev._tcp.local., (Cache flush) SRV Tina4.local.:62078 0 0, (Cache flush) PTR Tina4.local., (Cache flush) PTR Tina4.local., (Cache flush) AAAA fe80::52ea:d6ff:fe0a:f6d2, (Cache flush) A 192.168.22.44 (413) 21:38:15.691150 IP6 fe80::66a3:cbff:fe3e:de92.5353 > ff02::fb.5353: 0 [2q] PTR (QU)? _airplay._tcp.local. PTR (QU)? _raop._tcp.local. (49) 21:38:36.071442 IP6 :: > ff02::1:ff28:c9cc: ICMP6, neighbor solicitation, who has fe80::76e2:f5ff:fe28:c9cc, length 24 21:38:36.072375 IP6 fe80::76e2:f5ff:fe28:c9cc > ff02::2: ICMP6, router solicitation, length 8 21:38:36.477083 IP6 fe80::76e2:f5ff:fe28:c9cc > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 21:38:40.991596 IP6 fe80::52ea:d6ff:fe0a:f6d2.5353 > ff02::fb.5353: 0*- [0q] 8/0/4 (Cache flush) TXT "", PTR _apple-mobdev._tcp.local., PTR 50:ea:d6:0a:f6:d2@fe80::52ea:d6ff:fe0a:f6d2._apple-mobdev._tcp.local., (Cache flush) SRV Tina4.local.:62078 0 0, (Cache flush) PTR Tina4.local., (Cache flush) PTR Tina4.local., (Cache flush) AAAA fe80::52ea:d6ff:fe0a:f6d2, (Cache flush) A 192.168.22.44 (413) 21:38:43.542790 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 21:38:43.548251 IP6 :: > ff02::1:ff3b:1c4: ICMP6, neighbor solicitation, who has fe80::42a6:d9ff:fe3b:1c4, length 24 21:38:43.549206 IP6 fe80::42a6:d9ff:fe3b:1c4 > ff02::2: ICMP6, router solicitation, length 8 21:38:44.056222 IP6 fe80::42a6:d9ff:fe3b:1c4 > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 21:38:44.771675 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 2 group record(s), length 48 -
% ping6x -Qwc1 ff02::1%en0 26 bytes from fe80::1610:9fff:fee2:1431%en0: xnu 33
bytes from fe80::226:bbff:fe55:bebc%en0: iMac.local 31 bytes from fe80::1610:9fff:fed7:1f73%en0: nb.local 51 bytes from fe80::22c9:d0ff:fea9:6400%en0: um-airport-express-3rd-floor 49 bytes from fe80::288:65ff:fe3d:ce8c%en0: Tetianas-MacBook-Air.local 44 bytes from fe80::22c9:d0ff:fe91:f28d%en0: xnud.um.darkproger.net. 36 bytes from fe80::1610:9fff:fee2:1b57%en0: vvv-mac.local ... https://github.com/proger/whobot