SlideShare une entreprise Scribd logo
1  sur  11
Télécharger pour lire hors ligne
1




Implementing IPv6 Services with a
Reverse Proxy
Presented by: Patrick Chang

November 2012

                              APPLE RUNS   BETTER WITH   F5
2




               Existing IPv4 Service




                   IPv4 Proxy


                            Load Balancer




                                                       IPv4 DB Servers
IPv4 Clients                                IPv4 App
                                             Servers
3




                     IPv4 Data Flow
!   Load balancer is a reverse proxy
   –  Presents external facing IPv4 Service
   –  Connects to internal IPv4 resources
!   Incoming traffic
   –  Target is IPv4 address on reverse proxy
   –  Reverse proxy terminates connection
   –  Reverse proxy opens new connection to back end IPv4 resources
!   Return traffic
   –  Server responses go back to reverse proxy
   –  Reverse proxy manipulates IP headers of response
   –  Reverse proxy sends response back to IPv4 clients
4




                    Adding IPv6

                                                           IPv6 DB Servers
                                                IPv6 App
                                                 Servers

                   IPv6 Proxy
IPv6 Clients

                   IPv4 Proxy


                                Load Balancer




                                                           IPv4 DB Servers
    IPv4 Clients                                IPv4 App
                                                 Servers
5




                       IPv6 Data Flow
!   Load balancer is a reverse proxy
    –  Presents external facing IPv6 Service
    –  Connects to existing internal IPv4 resources
    –  Capable of connecting to new internal IPv6 resources
!   Incoming traffic
    –  Target is IPv6 address on reverse proxy
    –  Reverse proxy terminates connection
    –  Reverse proxy opens new connection to existing IPv4 resources
!   Return traffic
    –  Server responses go back to reverse proxy
    –  Reverse proxy manipulates IP headers of response
    –  Reverse proxy sends response back to IPv6 clients
6




              Single and Dual Stack
!   Separate IPv6 FQDN (Single Stack)
    –  IPv4 FQDN -> A query = IP, AAAA record = NXDomain
    –  IPv6 FQDN -> A query = NXDomain, AAAA record = IP
!   Same IPv6 and IPv4 FQDN (Dual Stack)
    –  A query = IPv4 address
    –  AAAA Query = IPv6 address
!   Recent OSs send AAAA query, then A query
    –  Client on IPv6 only -> IPv6 response = it works
    –  Client on IPv4 and IPv6 -> IPv6 response = it works
    –  Client on IPv4 only -> IPv6 response = broken
!   Possible Fixes
    –  LDNS Whitelist
    –  AAAA from IPv4 LDNS = NXDomain
7
8




                OSI Implications
!   IP (v4 and v6) = Network Layer
!   TCP, UDP = Transport Layer
   –  4 > 3
   –  Unaffected by IPv6
!   SSL = Presentation Layer
   –  6 > 3
   –  Unaffected by IPv6
!   Compression = Presentation Layer
   –  6 > 3
   –  Unaffected by IPv6
9




                 Application Layer
!   HTTP, SMTP, Client – Server = Application Layer
   –  7 > 3
   –  Unaffected by IPv6????
!   IPv6 client -> IPv4 service
   –  Reverse proxy must open connection to IPv4 service from IPv4
      address
   –  Does application require real client IP?
!   HTTP over IPv6 -> IPv4 service
   –  X-Forwarded-For
       •  Web server configuration logs X-Forwarded-For
       •  Can log analyzer parse IPv6 addresses?
10




               Possible Workarounds
!   Change application
    –    Custom IP stack in reverse proxy
    –    4X IPinIP encapsulation
    –    Mapped source IP
    –    Router with static routes
    –    Custom IP stack in app servers
    –    4X IPinIP unencapsulation
!   Log separately
    –    Reverse proxy inserts custom request ID
    –    Reverse proxy logs IPv6 and custom request ID
    –    Reverse proxy opens IPv4 connection from “magic” IP
    –    Application logs “magic” IP and custom request ID
    –    Log analyzer maps real IP via custom request ID
!   Upgrade log analysis system
11




EVERYTHING   RUNS   BETTER WITH   F5

Contenu connexe

Dernier

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Dernier (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
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 New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Reverse Proxies as Enterprise IPv6 Entry Points by Patrick Chang at gogoNET LIVE! 3 IPv6 Conference

  • 1. 1 Implementing IPv6 Services with a Reverse Proxy Presented by: Patrick Chang November 2012 APPLE RUNS BETTER WITH F5
  • 2. 2 Existing IPv4 Service IPv4 Proxy Load Balancer IPv4 DB Servers IPv4 Clients IPv4 App Servers
  • 3. 3 IPv4 Data Flow !   Load balancer is a reverse proxy –  Presents external facing IPv4 Service –  Connects to internal IPv4 resources !   Incoming traffic –  Target is IPv4 address on reverse proxy –  Reverse proxy terminates connection –  Reverse proxy opens new connection to back end IPv4 resources !   Return traffic –  Server responses go back to reverse proxy –  Reverse proxy manipulates IP headers of response –  Reverse proxy sends response back to IPv4 clients
  • 4. 4 Adding IPv6 IPv6 DB Servers IPv6 App Servers IPv6 Proxy IPv6 Clients IPv4 Proxy Load Balancer IPv4 DB Servers IPv4 Clients IPv4 App Servers
  • 5. 5 IPv6 Data Flow !   Load balancer is a reverse proxy –  Presents external facing IPv6 Service –  Connects to existing internal IPv4 resources –  Capable of connecting to new internal IPv6 resources !   Incoming traffic –  Target is IPv6 address on reverse proxy –  Reverse proxy terminates connection –  Reverse proxy opens new connection to existing IPv4 resources !   Return traffic –  Server responses go back to reverse proxy –  Reverse proxy manipulates IP headers of response –  Reverse proxy sends response back to IPv6 clients
  • 6. 6 Single and Dual Stack !   Separate IPv6 FQDN (Single Stack) –  IPv4 FQDN -> A query = IP, AAAA record = NXDomain –  IPv6 FQDN -> A query = NXDomain, AAAA record = IP !   Same IPv6 and IPv4 FQDN (Dual Stack) –  A query = IPv4 address –  AAAA Query = IPv6 address !   Recent OSs send AAAA query, then A query –  Client on IPv6 only -> IPv6 response = it works –  Client on IPv4 and IPv6 -> IPv6 response = it works –  Client on IPv4 only -> IPv6 response = broken !   Possible Fixes –  LDNS Whitelist –  AAAA from IPv4 LDNS = NXDomain
  • 7. 7
  • 8. 8 OSI Implications !   IP (v4 and v6) = Network Layer !   TCP, UDP = Transport Layer –  4 > 3 –  Unaffected by IPv6 !   SSL = Presentation Layer –  6 > 3 –  Unaffected by IPv6 !   Compression = Presentation Layer –  6 > 3 –  Unaffected by IPv6
  • 9. 9 Application Layer !   HTTP, SMTP, Client – Server = Application Layer –  7 > 3 –  Unaffected by IPv6???? !   IPv6 client -> IPv4 service –  Reverse proxy must open connection to IPv4 service from IPv4 address –  Does application require real client IP? !   HTTP over IPv6 -> IPv4 service –  X-Forwarded-For •  Web server configuration logs X-Forwarded-For •  Can log analyzer parse IPv6 addresses?
  • 10. 10 Possible Workarounds !   Change application –  Custom IP stack in reverse proxy –  4X IPinIP encapsulation –  Mapped source IP –  Router with static routes –  Custom IP stack in app servers –  4X IPinIP unencapsulation !   Log separately –  Reverse proxy inserts custom request ID –  Reverse proxy logs IPv6 and custom request ID –  Reverse proxy opens IPv4 connection from “magic” IP –  Application logs “magic” IP and custom request ID –  Log analyzer maps real IP via custom request ID !   Upgrade log analysis system
  • 11. 11 EVERYTHING RUNS BETTER WITH F5