Package org.mockserver.netty.proxy
package org.mockserver.netty.proxy
-
ClassDescriptionA composite
TransparentProxyHandler.OriginalDestinationResolverthat tries an ordered chain of resolution strategies and returns the first non-null result.Resolves the original destination of a transparently intercepted TCP connection by reading the Linux conntrack table (/proc/net/nf_conntrack).Resolves the original destination of a transparently intercepted TCP connection by consulting theDnsIntentRegistry— a record of hostname-to-IP answers that MockServer's DNS server has handed out.Resolves the original destination of a transparently intercepted TCP connection by reading a pinned BPF hash map populated by an external eBPF program.Wires theIP_TRANSPARENTsocket option on the server bootstrap when TPROXY mode is enabled.Inbound handler that detects and parses PROXY protocol v1 (text format) and v2 (binary format) headers prepended to TCP connections by upstream load balancers (e.g., AWS GWLB, HAProxy, nginx withproxy_protocol on).Reads the original destination of an intercepted TCP connection on Linux.Resolves the original destination of a transparently intercepted TCP connection by callinggetsockopt(fd, SOL_IP, SO_ORIGINAL_DST, ...)via JNA on Linux.Resolves the original destination of a transparently intercepted TCP connection using the TPROXY (IP_TRANSPARENT) mechanism.A Netty channel handler that resolves the original destination for transparently intercepted connections and stores it as theHttpActionHandler.REMOTE_SOCKETchannel attribute.Strategy interface for resolving the original destination.Utility for transparent HTTP proxy mode — provides Host-header parsing helpers and anTransparentProxyInitializer.isEnabled()configuration check.