SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
pfSense Hang Out
May 2014
Intro to Packet Analysis
Project News
● Training course coming soon
Intro to Packet Analysis
● Extremely effective means of
troubleshooting
● Doesn’t have to be overwhelmingly complex
● Much of today’s presentation oversimplified
Intro to Packet Analysis
● Layer 2
○ Source and destination MAC addresses
● Layer 3
○ Source and destination IP addresses
● Layer 4
○ TCP, UDP, ICMP covered today
source MAC destination MAC
source IP destination IP
Intro to Packet Analysis - TCP intro
● Connection-oriented protocol
● Source and destination ports
○ source port not same as destination port
● TCP handshake
○ SYN client to server
○ SYN ACK server to client
○ ACK client to server
TCP Basics - Capture Scenarios
● Established successfully
10:01:15.868921 IP 10.2.5.1.11582 > 10.2.5.103.22: Flags [S], seq
3908118056, win 65228, options [mss 1460,nop,wscale 7,sackOK,TS val 341740
ecr 0], length 0
10:01:15.869237 IP 10.2.5.103.22 > 10.2.5.1.11582: Flags [S.], seq
2912721290, ack 3908118057, win 28960, options [mss 1460,sackOK,TS val
112268 ecr 341740,nop,wscale 7], length 0
10:01:15.869366 IP 10.2.5.1.11582 > 10.2.5.103.22: Flags [.], ack 1, win
520, options [nop,nop,TS val 341740 ecr 112268], length 0
10:01:15.904659 IP 10.2.5.103.22 > 10.2.5.1.11582: Flags [P.], ack 1, win
227, options [nop,nop,TS val 112277 ecr 341740], length 41
10:01:15.905334 IP 10.2.5.1.11582 > 10.2.5.103.22: Flags [.], ack 42, win
520, options [nop,nop,TS val 341744 ecr 112277], length 0
10:01:17.287797 IP 10.2.5.1.11582 > 10.2.5.103.22: Flags [P.], ack 42, win
520, options [nop,nop,TS val 341882 ecr 112277], length 2
10:01:17.288202 IP 10.2.5.103.22 > 10.2.5.1.11582: Flags [.], ack 3, win
227, options [nop,nop,TS val 112623 ecr 341882], length 0
TCP Basics - Capture Scenarios
● Rejected connection attempt
09:58:13.527103 IP 10.2.5.1.8897 > 10.2.5.103.22: Flags [S], seq
1054206648, win 65228, options [mss 1460,nop,wscale 7,sackOK,TS val 323506
ecr 0], length 0
09:58:13.527366 IP 10.2.5.103.22 > 10.2.5.1.8897: Flags [R.], seq 0, ack
1054206649, win 0, length 0
● No reply
10:05:30.928371 IP 10.2.5.103.52798 > 10.2.5.1.24: Flags [S], seq
3783265721, win 29200, options [mss 1460,sackOK,TS val 176033 ecr 0,nop,
wscale 7], length 0
10:05:31.926314 IP 10.2.5.103.52798 > 10.2.5.1.24: Flags [S], seq
3783265721, win 29200, options [mss 1460,sackOK,TS val 176283 ecr 0,nop,
wscale 7], length 0
10:05:33.930244 IP 10.2.5.103.52798 > 10.2.5.1.24: Flags [S], seq
3783265721, win 29200, options [mss 1460,sackOK,TS val 176784 ecr 0,nop,
wscale 7], length 0
Intro to Packet Analysis - UDP intro
● Connectionless protocol
● Some require a response
○ DNS
○ NTP
● Some silently accepted
○ syslog
UDP basic packet capture scenarios
● Accepted, or filtered
PORT STATE SERVICE
10/udp open|filtered unknown
05:49:42.602935 IP 192.168.1.2.45540 > 10.0.6.2.10: UDP, length 0
05:49:43.737327 IP 192.168.1.2.45541 > 10.0.6.2.10: UDP, length 0
● Rejected
05:50:39.324990 IP 192.168.1.2.62534 > 192.168.1.254.17: UDP, length 0
05:50:39.326449 IP 192.168.1.254 > 192.168.1.2: ICMP 192.168.1.254 udp
port 17 unreachable, length 36
● Receives reply
05:54:21.644173 IP 192.168.1.2.52027 > 192.168.1.254.53: 51162+ A? google.
com. (28)
05:54:21.701862 IP 192.168.1.254.53 > 192.168.1.2.52027: 51162 11/0/0 A
74.125.227.169, A 74.125.227.165, A 74.125.227.164, A 74.125.227.166, A
74.125.227.160, A 74.125.227.174, A 74.125.227.168, A 74.125.227.167, A
74.125.227.162, A 74.125.227.161, A 74.125.227.163 (204)
Intro to Packet Analysis - ICMP intro
● Types
● No ports
● Ping
○ Echo request
○ Echo reply
05:57:52.459547 IP 192.168.1.2 > 74.125.227.97: ICMP echo request, id
48902, seq 0, length 64
05:57:52.489406 IP 74.125.227.97 > 192.168.1.2: ICMP echo reply, id 48902,
seq 0, length 64
05:57:53.460369 IP 192.168.1.2 > 74.125.227.97: ICMP echo request, id
48902, seq 1, length 64
05:57:53.492072 IP 74.125.227.97 > 192.168.1.2: ICMP echo reply, id 48902,
seq 1, length 64
05:57:54.461349 IP 192.168.1.2 > 74.125.227.97: ICMP echo request, id
48902, seq 2, length 64
Web Packet Capture Page
Demo
tcpdump at command line
● option 8 via SSH
● Common command line arguments
○ -i capture traffic on specified interface
○ -n disable reverse DNS lookups
○ -e show link-level header - MAC addresses,
VLAN tags
○ -s snap length (when capturing to file)
○ -w capture to file
tcpdump filtering basics
● tcpdump ... | grep 1.2.3.4 - no, use filters
● Common filters
○ host 1.2.3.4 include host 1.2.3.4
○ port 53 include port 53 TCP and UDP
○ udp port 53 include UDP port 53
○ tcp port 80 include TCP port 80
● Combining filters
○ and
○ or
● Negation
○ not
tcpdump examples
● Display traffic on interface em0 with no
reverse DNS resolution
○ tcpdump -ni em0
● Display traffic to or from IP 1.2.3.4 on em0
including link-layer
○ tcpdump -nei em0 host 1.2.3.4
● Display all DNS traffic on em1_vlan5
○ tcpdump -ni em1_vlan5 port 53
● Display all TCP port 80 traffic (HTTP) except
that to or from host 10.0.0.5
○ tcpdump -ni em0 tcp port 80 and not host 10.0.0.5
Web Packet Capture vs tcpdump
Web Packet Capture tcpdump
Ease of selecting interface
Ease of basic filtering
Ease of saving capture to
file and downloading
Real time output
Highly flexible filtering
Capable of multiple
simultaneous captures
Bandwidth Usage Analysis
● Who’s using what, right now
VPN Troubleshooting
Port Forward Troubleshooting
Routing Troubleshooting
Case Study - DDoS Bot
Case Study - TCP Window 0
Questions?
Thanks for attending!
Comments, suggestions, etc. welcome to
gold@pfsense.org

Contenu connexe

Tendances

Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016Netgate
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Netgate
 
Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016Netgate
 
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Netgate
 
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018Netgate
 
NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016Netgate
 
Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Netgate
 
Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Netgate
 
OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016Netgate
 
Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015Netgate
 
Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017Netgate
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017Netgate
 
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018Netgate
 
Local DNS with pfSense 2.4 - pfSense Hangout April 2018
Local DNS with pfSense 2.4 - pfSense Hangout April 2018Local DNS with pfSense 2.4 - pfSense Hangout April 2018
Local DNS with pfSense 2.4 - pfSense Hangout April 2018Netgate
 
DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016Netgate
 
High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016Netgate
 
pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015Netgate
 
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Netgate
 
Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Netgate
 
Bandwidth Monitoring - pfSense Hangout March 2015
Bandwidth Monitoring - pfSense Hangout March 2015Bandwidth Monitoring - pfSense Hangout March 2015
Bandwidth Monitoring - pfSense Hangout March 2015Netgate
 

Tendances (20)

Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017
 
Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016
 
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
 
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
 
NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016
 
Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016
 
Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016
 
OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016
 
Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015
 
Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017
 
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
 
Local DNS with pfSense 2.4 - pfSense Hangout April 2018
Local DNS with pfSense 2.4 - pfSense Hangout April 2018Local DNS with pfSense 2.4 - pfSense Hangout April 2018
Local DNS with pfSense 2.4 - pfSense Hangout April 2018
 
DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016
 
High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016
 
pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015
 
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
 
Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017
 
Bandwidth Monitoring - pfSense Hangout March 2015
Bandwidth Monitoring - pfSense Hangout March 2015Bandwidth Monitoring - pfSense Hangout March 2015
Bandwidth Monitoring - pfSense Hangout March 2015
 

Similaire à Intro to Packet Analysis - pfSense Hangout May 2014

Проблемы использования TCP в мобильных приложениях. Владимир Кириллов
Проблемы использования TCP в мобильных приложениях.  Владимир КирилловПроблемы использования TCP в мобильных приложениях.  Владимир Кириллов
Проблемы использования TCP в мобильных приложениях. Владимир КирилловAnthony Marchenko
 
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OpenvSwitch
 
Troubleshooting TCP/IP
Troubleshooting TCP/IPTroubleshooting TCP/IP
Troubleshooting TCP/IPvijai s
 
Debugging linux issues with eBPF
Debugging linux issues with eBPFDebugging linux issues with eBPF
Debugging linux issues with eBPFIvan Babrou
 
OSTU - Sake Blok on Packet Capturing with Tshark
OSTU - Sake Blok on Packet Capturing with TsharkOSTU - Sake Blok on Packet Capturing with Tshark
OSTU - Sake Blok on Packet Capturing with TsharkDenny K
 
Владимир Кириллов-TCP-Performance for-Mobile-Applications
Владимир Кириллов-TCP-Performance for-Mobile-ApplicationsВладимир Кириллов-TCP-Performance for-Mobile-Applications
Владимир Кириллов-TCP-Performance for-Mobile-ApplicationsUA Mobile
 
Wireshark TCP Trace
Wireshark TCP Trace Wireshark TCP Trace
Wireshark TCP Trace Paras
 
Dccp evaluation for sip signaling ict4 m
Dccp evaluation for sip signaling   ict4 m Dccp evaluation for sip signaling   ict4 m
Dccp evaluation for sip signaling ict4 m Agus Awaludin
 
packet traveling (pre cloud)
packet traveling (pre cloud)packet traveling (pre cloud)
packet traveling (pre cloud)iman darabi
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemSneha Inguva
 
Open daylight and Openstack
Open daylight and OpenstackOpen daylight and Openstack
Open daylight and OpenstackDave Neary
 
Debugging with-wireshark-niels-de-vos
Debugging with-wireshark-niels-de-vosDebugging with-wireshark-niels-de-vos
Debugging with-wireshark-niels-de-vosGluster.org
 
(NET404) Making Every Packet Count
(NET404) Making Every Packet Count(NET404) Making Every Packet Count
(NET404) Making Every Packet CountAmazon Web Services
 
Things you should know for network programming
Things you should know for network programmingThings you should know for network programming
Things you should know for network programmingAnry Lu
 
LF_DPDK17_Accelerating P4-based Dataplane with DPDK
LF_DPDK17_Accelerating P4-based Dataplane with DPDKLF_DPDK17_Accelerating P4-based Dataplane with DPDK
LF_DPDK17_Accelerating P4-based Dataplane with DPDKLF_DPDK
 
PLNOG15: VidMon - monitoring video signal quality in Service Provider IP netw...
PLNOG15: VidMon - monitoring video signal quality in Service Provider IP netw...PLNOG15: VidMon - monitoring video signal quality in Service Provider IP netw...
PLNOG15: VidMon - monitoring video signal quality in Service Provider IP netw...PROIDEA
 
Embedded Recipes 2019 - Introduction to JTAG debugging
Embedded Recipes 2019 - Introduction to JTAG debuggingEmbedded Recipes 2019 - Introduction to JTAG debugging
Embedded Recipes 2019 - Introduction to JTAG debuggingAnne Nicolas
 

Similaire à Intro to Packet Analysis - pfSense Hangout May 2014 (20)

Проблемы использования TCP в мобильных приложениях. Владимир Кириллов
Проблемы использования TCP в мобильных приложениях.  Владимир КирилловПроблемы использования TCP в мобильных приложениях.  Владимир Кириллов
Проблемы использования TCP в мобильных приложениях. Владимир Кириллов
 
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
 
Troubleshooting TCP/IP
Troubleshooting TCP/IPTroubleshooting TCP/IP
Troubleshooting TCP/IP
 
Debugging linux issues with eBPF
Debugging linux issues with eBPFDebugging linux issues with eBPF
Debugging linux issues with eBPF
 
OSTU - Sake Blok on Packet Capturing with Tshark
OSTU - Sake Blok on Packet Capturing with TsharkOSTU - Sake Blok on Packet Capturing with Tshark
OSTU - Sake Blok on Packet Capturing with Tshark
 
Владимир Кириллов-TCP-Performance for-Mobile-Applications
Владимир Кириллов-TCP-Performance for-Mobile-ApplicationsВладимир Кириллов-TCP-Performance for-Mobile-Applications
Владимир Кириллов-TCP-Performance for-Mobile-Applications
 
Wireshark TCP Trace
Wireshark TCP Trace Wireshark TCP Trace
Wireshark TCP Trace
 
TCP-IP PROTOCOL
TCP-IP PROTOCOLTCP-IP PROTOCOL
TCP-IP PROTOCOL
 
Dccp evaluation for sip signaling ict4 m
Dccp evaluation for sip signaling   ict4 m Dccp evaluation for sip signaling   ict4 m
Dccp evaluation for sip signaling ict4 m
 
packet traveling (pre cloud)
packet traveling (pre cloud)packet traveling (pre cloud)
packet traveling (pre cloud)
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use Them
 
Open daylight and Openstack
Open daylight and OpenstackOpen daylight and Openstack
Open daylight and Openstack
 
Debugging with-wireshark-niels-de-vos
Debugging with-wireshark-niels-de-vosDebugging with-wireshark-niels-de-vos
Debugging with-wireshark-niels-de-vos
 
Day2
Day2Day2
Day2
 
(NET404) Making Every Packet Count
(NET404) Making Every Packet Count(NET404) Making Every Packet Count
(NET404) Making Every Packet Count
 
Things you should know for network programming
Things you should know for network programmingThings you should know for network programming
Things you should know for network programming
 
SRX Automation at Groupon
SRX Automation at GrouponSRX Automation at Groupon
SRX Automation at Groupon
 
LF_DPDK17_Accelerating P4-based Dataplane with DPDK
LF_DPDK17_Accelerating P4-based Dataplane with DPDKLF_DPDK17_Accelerating P4-based Dataplane with DPDK
LF_DPDK17_Accelerating P4-based Dataplane with DPDK
 
PLNOG15: VidMon - monitoring video signal quality in Service Provider IP netw...
PLNOG15: VidMon - monitoring video signal quality in Service Provider IP netw...PLNOG15: VidMon - monitoring video signal quality in Service Provider IP netw...
PLNOG15: VidMon - monitoring video signal quality in Service Provider IP netw...
 
Embedded Recipes 2019 - Introduction to JTAG debugging
Embedded Recipes 2019 - Introduction to JTAG debuggingEmbedded Recipes 2019 - Introduction to JTAG debugging
Embedded Recipes 2019 - Introduction to JTAG debugging
 

Plus de Netgate

Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...Netgate
 
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018Netgate
 
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018Netgate
 
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Netgate
 
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Netgate
 
Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Netgate
 
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Netgate
 

Plus de Netgate (7)

Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
 
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
 
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
 
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
 
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
 
Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016
 
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
 

Dernier

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 

Dernier (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 

Intro to Packet Analysis - pfSense Hangout May 2014

  • 1. pfSense Hang Out May 2014 Intro to Packet Analysis
  • 2. Project News ● Training course coming soon
  • 3. Intro to Packet Analysis ● Extremely effective means of troubleshooting ● Doesn’t have to be overwhelmingly complex ● Much of today’s presentation oversimplified
  • 4. Intro to Packet Analysis ● Layer 2 ○ Source and destination MAC addresses ● Layer 3 ○ Source and destination IP addresses ● Layer 4 ○ TCP, UDP, ICMP covered today source MAC destination MAC source IP destination IP
  • 5. Intro to Packet Analysis - TCP intro ● Connection-oriented protocol ● Source and destination ports ○ source port not same as destination port ● TCP handshake ○ SYN client to server ○ SYN ACK server to client ○ ACK client to server
  • 6. TCP Basics - Capture Scenarios ● Established successfully 10:01:15.868921 IP 10.2.5.1.11582 > 10.2.5.103.22: Flags [S], seq 3908118056, win 65228, options [mss 1460,nop,wscale 7,sackOK,TS val 341740 ecr 0], length 0 10:01:15.869237 IP 10.2.5.103.22 > 10.2.5.1.11582: Flags [S.], seq 2912721290, ack 3908118057, win 28960, options [mss 1460,sackOK,TS val 112268 ecr 341740,nop,wscale 7], length 0 10:01:15.869366 IP 10.2.5.1.11582 > 10.2.5.103.22: Flags [.], ack 1, win 520, options [nop,nop,TS val 341740 ecr 112268], length 0 10:01:15.904659 IP 10.2.5.103.22 > 10.2.5.1.11582: Flags [P.], ack 1, win 227, options [nop,nop,TS val 112277 ecr 341740], length 41 10:01:15.905334 IP 10.2.5.1.11582 > 10.2.5.103.22: Flags [.], ack 42, win 520, options [nop,nop,TS val 341744 ecr 112277], length 0 10:01:17.287797 IP 10.2.5.1.11582 > 10.2.5.103.22: Flags [P.], ack 42, win 520, options [nop,nop,TS val 341882 ecr 112277], length 2 10:01:17.288202 IP 10.2.5.103.22 > 10.2.5.1.11582: Flags [.], ack 3, win 227, options [nop,nop,TS val 112623 ecr 341882], length 0
  • 7. TCP Basics - Capture Scenarios ● Rejected connection attempt 09:58:13.527103 IP 10.2.5.1.8897 > 10.2.5.103.22: Flags [S], seq 1054206648, win 65228, options [mss 1460,nop,wscale 7,sackOK,TS val 323506 ecr 0], length 0 09:58:13.527366 IP 10.2.5.103.22 > 10.2.5.1.8897: Flags [R.], seq 0, ack 1054206649, win 0, length 0 ● No reply 10:05:30.928371 IP 10.2.5.103.52798 > 10.2.5.1.24: Flags [S], seq 3783265721, win 29200, options [mss 1460,sackOK,TS val 176033 ecr 0,nop, wscale 7], length 0 10:05:31.926314 IP 10.2.5.103.52798 > 10.2.5.1.24: Flags [S], seq 3783265721, win 29200, options [mss 1460,sackOK,TS val 176283 ecr 0,nop, wscale 7], length 0 10:05:33.930244 IP 10.2.5.103.52798 > 10.2.5.1.24: Flags [S], seq 3783265721, win 29200, options [mss 1460,sackOK,TS val 176784 ecr 0,nop, wscale 7], length 0
  • 8. Intro to Packet Analysis - UDP intro ● Connectionless protocol ● Some require a response ○ DNS ○ NTP ● Some silently accepted ○ syslog
  • 9. UDP basic packet capture scenarios ● Accepted, or filtered PORT STATE SERVICE 10/udp open|filtered unknown 05:49:42.602935 IP 192.168.1.2.45540 > 10.0.6.2.10: UDP, length 0 05:49:43.737327 IP 192.168.1.2.45541 > 10.0.6.2.10: UDP, length 0 ● Rejected 05:50:39.324990 IP 192.168.1.2.62534 > 192.168.1.254.17: UDP, length 0 05:50:39.326449 IP 192.168.1.254 > 192.168.1.2: ICMP 192.168.1.254 udp port 17 unreachable, length 36 ● Receives reply 05:54:21.644173 IP 192.168.1.2.52027 > 192.168.1.254.53: 51162+ A? google. com. (28) 05:54:21.701862 IP 192.168.1.254.53 > 192.168.1.2.52027: 51162 11/0/0 A 74.125.227.169, A 74.125.227.165, A 74.125.227.164, A 74.125.227.166, A 74.125.227.160, A 74.125.227.174, A 74.125.227.168, A 74.125.227.167, A 74.125.227.162, A 74.125.227.161, A 74.125.227.163 (204)
  • 10. Intro to Packet Analysis - ICMP intro ● Types ● No ports ● Ping ○ Echo request ○ Echo reply 05:57:52.459547 IP 192.168.1.2 > 74.125.227.97: ICMP echo request, id 48902, seq 0, length 64 05:57:52.489406 IP 74.125.227.97 > 192.168.1.2: ICMP echo reply, id 48902, seq 0, length 64 05:57:53.460369 IP 192.168.1.2 > 74.125.227.97: ICMP echo request, id 48902, seq 1, length 64 05:57:53.492072 IP 74.125.227.97 > 192.168.1.2: ICMP echo reply, id 48902, seq 1, length 64 05:57:54.461349 IP 192.168.1.2 > 74.125.227.97: ICMP echo request, id 48902, seq 2, length 64
  • 11. Web Packet Capture Page Demo
  • 12. tcpdump at command line ● option 8 via SSH ● Common command line arguments ○ -i capture traffic on specified interface ○ -n disable reverse DNS lookups ○ -e show link-level header - MAC addresses, VLAN tags ○ -s snap length (when capturing to file) ○ -w capture to file
  • 13. tcpdump filtering basics ● tcpdump ... | grep 1.2.3.4 - no, use filters ● Common filters ○ host 1.2.3.4 include host 1.2.3.4 ○ port 53 include port 53 TCP and UDP ○ udp port 53 include UDP port 53 ○ tcp port 80 include TCP port 80 ● Combining filters ○ and ○ or ● Negation ○ not
  • 14. tcpdump examples ● Display traffic on interface em0 with no reverse DNS resolution ○ tcpdump -ni em0 ● Display traffic to or from IP 1.2.3.4 on em0 including link-layer ○ tcpdump -nei em0 host 1.2.3.4 ● Display all DNS traffic on em1_vlan5 ○ tcpdump -ni em1_vlan5 port 53 ● Display all TCP port 80 traffic (HTTP) except that to or from host 10.0.0.5 ○ tcpdump -ni em0 tcp port 80 and not host 10.0.0.5
  • 15. Web Packet Capture vs tcpdump Web Packet Capture tcpdump Ease of selecting interface Ease of basic filtering Ease of saving capture to file and downloading Real time output Highly flexible filtering Capable of multiple simultaneous captures
  • 16. Bandwidth Usage Analysis ● Who’s using what, right now
  • 20. Case Study - DDoS Bot
  • 21. Case Study - TCP Window 0
  • 22. Questions? Thanks for attending! Comments, suggestions, etc. welcome to gold@pfsense.org