PROXY Protocol aware Proxy Server on Node.js

672ee2598bea695496f11022a9a9c4c8?s=47 moznion
April 27, 2019

PROXY Protocol aware Proxy Server on Node.js

This slides for Kyoto.js #16

672ee2598bea695496f11022a9a9c4c8?s=128

moznion

April 27, 2019
Tweet

Transcript

  1. 4.

    Proxy PROTOCOL - Transport Layer (L4) ൛ͷX-Forwarder-For - Proxy͢ΔࡍʹoriginalͷΞυϨεΛҡ࣋ͯ͠
 Ѽઌ΁ϑΥϫʔυ͢ΔͨΊͷϓϩτίϧ

    - HAProxy͕ఏএ (ۀքඪ४Έ͍ͨͳʁ) - http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt - AWSͷELBͰ΋αϙʔτͯ͠Δ - V1ͱV2͕͋Δ (ޙड़)
  2. 6.

    Proxy PROTOCOL V1 - ςΩετϓϩτίϧ - ϑΥʔϚοτ:
 PROXY <INET Protocol

    Family> <Source Address> <Destination Address> <Source Port> <Destination Port>\r\n - Θ͔Γ΍͍͢Ͱ͢Ͷ
  3. 10.
  4. 11.

    Example (V1) PROXY TCP4 192.168.0.1 192.168.0.11 56324 443\r\n GET /

    HTTP/1.1\r\n Host: 192.168.0.11\r\n \r\n طଘͷ௨৴ͷΞλϚʹprepend͢Δ