Packet Matching. Paul Offord, Advance7



Similar documents
DMZ Network Visibility with Wireshark June 15, 2010

Load Balancing and Sessions. C. Kopparapu, Load Balancing Servers, Firewalls and Caches. Wiley, 2002.

Single Pass Load Balancing with Session Persistence in IPv6 Network. C. J. (Charlie) Liu Network Operations Charter Communications

1:1 NAT in ZeroShell. Requirements. Overview. Network Setup

Policy Based Forwarding

Multi-Homing Dual WAN Firewall Router

PowerLink Bandwidth Aggregation Redundant WAN Link and VPN Fail-Over Solutions

DEPLOYMENT GUIDE Version 1.1. Deploying the BIG-IP LTM v10 with Citrix Presentation Server 4.5

Lecture 2-ter. 2. A communication example Managing a HTTP v1.0 connection. G.Bianchi, G.Neglia, V.Mancuso

INTRODUCTION TO FIREWALL SECURITY

Linux Network Security

Enabling NAT and Routing in DGW v2.0 June 6, 2012

Firewall VPN Router. Quick Installation Guide M73-APO09-380

Outline VLAN. Inter-VLAN communication. Layer-3 Switches. Spanning Tree Protocol Recap

+ iptables. packet filtering && firewall

Layer 4-7 Server Load Balancing. Security, High-Availability and Scalability of Web and Application Servers

Load Balance Router R258V

Firewalls. Ingress Filtering. Ingress Filtering. Network Security. Firewalls. Access lists Ingress filtering. Egress filtering NAT

Network Security Topologies. Chapter 11

Availability Digest. Redundant Load Balancing for High Availability July 2013

Network setup and troubleshooting

Internet Protocol: IP packet headers. vendredi 18 octobre 13

NAT & IP Masquerade. Internet NETWORK ADDRESS TRANSLATION INTRODUCTION. NAT & IP Masquerade Page 1 of 5. Internal PC

FortiOS Handbook - Load Balancing VERSION 5.2.2

Knowledgebase Solution

NAT (Network Address Translation)

Network Security. Tampere Seminar 23rd October Overview Switch Security Firewalls Conclusion

DEPLOYMENT GUIDE DEPLOYING THE BIG-IP LTM SYSTEM WITH CITRIX PRESENTATION SERVER 3.0 AND 4.5

Firewall Defaults, Public Server Rule, and Secondary WAN IP Address

Firewalls. Test your Firewall knowledge. Test your Firewall knowledge (cont) (March 4, 2015)

Linux firewall. Need of firewall Single connection between network Allows restricted traffic between networks Denies un authorized users

UIP1868P User Interface Guide

Hosted Voice. Best Practice Recommendations for VoIP Deployments

Multi-Homing Security Gateway

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Figure 41-1 IP Filter Rules

Smart Tips. Enabling WAN Load Balancing. Key Features. Network Diagram. Overview. Featured Products. WAN Failover. Enabling WAN Load Balancing Page 1

Deployment Guide Microsoft IIS 7.0

Evaluation guide. Vyatta Quick Evaluation Guide

Load Balancing. FortiOS Handbook v3 for FortiOS 4.0 MR3

Broadband Phone Gateway BPG510 Technical Users Guide

DEPLOYMENT GUIDE Version 1.1. DNS Traffic Management using the BIG-IP Local Traffic Manager

Firewalls, IDS and IPS

Virtual private network. Network security protocols VPN VPN. Instead of a dedicated data link Packets securely sent over a shared network Internet VPN

Deploying F5 with Microsoft Active Directory Federation Services

Deploying the Barracuda Load Balancer with Office Communications Server 2007 R2. Office Communications Server Overview.

Firewalls. Basic Firewall Concept. Why firewalls? Firewall goals. Two Separable Topics. Firewall Design & Architecture Issues

FortiOS Handbook Load Balancing for FortiOS 5.0

Application Description

Barracuda Networks Web Application Firewall

DEPLOYMENT GUIDE Version 1.0. Deploying F5 with the Oracle Fusion Middleware SOA Suite 11gR1

We will give some overview of firewalls. Figure 1 explains the position of a firewall. Figure 1: A Firewall

ICS 351: Today's plan. IP addresses Network Address Translation Dynamic Host Configuration Protocol Small Office / Home Office configuration

Securing Networks with PIX and ASA

DEPLOYMENT GUIDE Version 1.2. Deploying the BIG-IP System v10 with Microsoft IIS 7.0 and 7.5

How to configure DNAT in order to publish internal services via Internet

Microsoft Lync 2010 Deployment Guide

HOSTED VOICE Bring Your Own Bandwidth & Remote Worker. Install and Best Practices Guide

Web Traffic Capture Butler Street, Suite 200 Pittsburgh, PA (412)

SSL DOES NOT MEAN SOL What if you don t have the server keys?

Chapter 10 Troubleshooting

SOYO G668 VOIP IP PHONE USER MANUAL

Lab Configuring Access Policies and DMZ Settings

Monitoring Hybrid Cloud Applications in VMware vcloud Air

Enterprise Edge Communications Manager. Data Capabilities

TCP/IP Basis. OSI Model

Classic IOS Firewall using CBACs Cisco and/or its affiliates. All rights reserved. 1

VLAN und MPLS, Firewall und NAT,

Chapter 6 Configuring the SSL VPN Tunnel Client and Port Forwarding

VoIP 110R/200R/422R/404R/440R. User s Guide

Firewalls. Ahmad Almulhem March 10, 2012

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Source-Connect Network Configuration Last updated May 2009

Application Note. Onsight Connect Network Requirements V6.1

Distributed Systems. Firewalls: Defending the Network. Paul Krzyzanowski

Smoothwall Web Filter Deployment Guide

Firewall. Vyatta System. REFERENCE GUIDE IPv4 Firewall IPv6 Firewall Zone Based Firewall VYATTA, INC.

Load Balancing Bloxx Web Filter. Deployment Guide

Protecting and controlling Virtual LANs by Linux router-firewall

Rapid IP redirection with SDN and NFV. Jeffrey Lai, Qiang Fu, Tim Moors December 9, 2015

Firewalls and System Protection

Definition of firewall

Firewall. Vyatta System. REFERENCE GUIDE IPv4 Firewall IPv6 Firewall Zone Based Firewall VYATTA, INC.

Network Security TCP/IP Refresher

Solution of Exercise Sheet 5

Prerequisites. Creating Profiles

How To - Configure Virtual Host using FQDN How To Configure Virtual Host using FQDN

Chapter 8 Router and Network Management

Vocia MS-1 Network Considerations for VoIP. Vocia MS-1 and Network Port Configuration. VoIP Network Switch. Control Network Switch

Document No. FO1101 Issue Date: Work Group: FibreOP Technical Team October 31, 2013 FINAL:

Many network and firewall administrators consider the network firewall at the network edge as their primary defense against all network woes.

Chapter 4 Customizing Your Network Settings

UTM Quick Installation Guide

Microsoft Lync Server Overview

Load Balancing Microsoft Lync 2010 Load Balancing Microsoft Lync Deployment Guide

Transcription:

Packet Matching Paul Offord, Advance7

Relax!

Model network Server Farm Client Router / Firewall Firewall Load Balancer LAN 1 Internet 0 2 3 4 5

The challenge Matching packets from PC to 1 st server tier NAT and PAT VIPs SSL especially with load balancers Volumes increase deeper into the system Capture time sync inaccuracies

Packet matching based on Protocol field values o o Direct match Translated match Packet content Temporal match (relative times) Supplementary data e.g. web logs

Edge inwards Traffic volume increases Server Farm Client Router / Firewall Firewall Load Balancer LAN 1 Internet 0 2 3 4 5 Start the analysis here Fewer packets to analyse Best chance of match to users experience Provides signposts for the other traces Establish problem timeframe

Problem timeframe Server Farm Client Router / Firewall Firewall Load Balancer LAN 1 Internet 0 2 3 4 5 Network Trace Analysis Guide for details www.tribelabzero.com

Client and Service Fileserver Browser Web Server S C Network S C C Database S HTTP SMB TDS

Identifying a stream - the 5-tuple Client IP Addr : Client Port : Service IP Addr : Service Port : Protocol 192.168.1.139 : 1515 : 25.34.5.1 : 80 : TCP 192.168.1.139 : 49495 : 192.168.247.72 : 53 : UDP

Across the LAN Server Farm Client LAN 1 Firewall Internet DC Firewall Load Balancer 0 2 3 4 5

Across the LAN: Client to Service Identifies the stream

Across the LAN: Service to Client Identifies the stream Wireshark shortcut for TCP Follow TCP stream

Finding actual packets - TCP Cross checks More correlation points needed Preferred

Finding actual packets - UDP Use applicationrelated IDs

DHCP Example

TCP Segmentation Offload Process NIC PC or Server T C P I P D r i v e r T C P I P E t h Ethernet Switch PC or Server Without Large Receive Offload (LRO) L = 5 KB S = 1 L = 1,460 bytes L = 1,460 bytes L = 1,460 bytes L = 798 bytes S = 1 S = 1,461 S = 2,921 S = 4,381 L = 1,460 bytes L = 1,460 bytes L = 1,460 bytes L = 1,460 bytes

Across the LAN: Summary 5-tuple Direction (C->S or S->C) TCP o o Sequence number Watch out for TSO UDP o Application-related ID TSO => intermediate Sequence Numbers

Time for Questions

Across the firewall Server Farm Client LAN 1 Firewall Internet DC Firewall Load Balancer 0 2 3 4 5

SNAT, DNAT, SPAT and DPAT When talking NAT: Source = Client Destination = Service Think Source of SYN

Multiport capture Inside and outside trace on a common Time of Day clock Firewall

Across a firewall: Summary NAT/PAT o o Client address always translated Client port maybe translated IP ID and TCP Seq matching o o o Should work May not on some firewalls Try enabling TCP Relative Sequence Numbers Common ToD clock is a big help

Time for Questions

Across a WAN (or the Internet) 2 Internet 3 5-tuple + IP ID TCP: Seq Number UDP: App-related ID

Across the WAN: Summary Same as LAN Data volumes may be high o o Carefully filter Keep original trace files! Sync d clocks helps o o o AD time sync every 8 hours Clock drift up to 8ms in 24 hours Take care with time zones and DST

Across the DC firewall Server Farm Client LAN 1 Firewall Internet DC Firewall Load Balancer 0 2 3 4 5

Across the DC firewall: Dest NAT Server Farm Client LAN 1 Firewall Internet DC Firewall Load Balancer 0 2 3 4 5 Public LB VIP = 25.34.5.1 translated to Private LB VIP = 172.20.50.1

Across the DC firewall: Summary ALWAYS trace both sides of a firewall WARNING may fiddle with Seq Numbers Use a dual port capture if possible Consider possibility of HA failover If SNAT and DNAT also use o o o Application-related ID, or Content (especially with SSL), or Web log information (X-Forwarded-For)

Time for Questions

Across the Load Balancer Server Farm Client LAN 1 Firewall Internet DC Firewall Load Balancer 0 2 3 4 5 Typically, full proxy SNAT, DNAT and SPAT Can t match on TCP Seq or IP ID

When to connect to the server? What if I want load balancing Delayed Binding based on a cookie value?

The Load Balancer - Summary Similar to Firewall, but worse Will obscure details as a TCP full proxy May re-segment TCP with different packet sizes TCP session starts are separate on client and server sides Always capture both sides of a load balancer Preferably with a common clock

Time for Questions

Airline booking system example

System topology Web Servers Firefox Firewall Another Firewall Check Point Load Balancer 1 Internet 2 3

Packet flow summary From the RPR Manual

Time for Questions

SSL Matching on content

Across the Load Balancer Server Farm Client LAN 1 Firewall Internet DC Firewall Load Balancer 0 2 3 4 5

Delayed binding Use RR turns to help with alignment Last req APDU First rsp APDU

Multiport capture Inside and outside trace on a common time clock Load Balancer

Mobile phone app example

Web server response times 192.168.1.87 - - [09/Jul/2012:08:25:29 +0100] 379 "GET / HTTP/1.1" 401 479 "- " "Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1 192.168.1.87 user01 [09/Jul/2012:08:25:35 +0100] 24313 "GET / HTTP/1.1" 302 242 "-" "Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1 192.168.1.87 user01 [09/Jul/2012:08:25:35 +0100] 542911 "GET /Setup.php HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1"

IIS Advanced Logging

Load Balancer (SSL) - Summary Not much to go on in the capture file: o o Packet sizes (approx.) Temporal relationships Use turns to align o o Last packet of APDU Request First packet of APDU Response Use web logs to help Very difficult without time sync

Overall Summary 5-tuple and TCP Seq will get you a long way Use application-related ID for UDP Overcome SSL with: o o o Match on content Temporal relationships Packet lengths (even if approx.) Time sync d traces help a lot Visualise in spreadsheet

Further information Tech community at TribeLabZero.com Amazon or free ebook Paul Offord Mobile: +44 (0) 1279 211 668 Email: paul.offord@advance7.com Web: www.advance7.com