Perlbal::Plugin::XFFExtras(3pm)

Perlbal::Plugin::XFFExtras3pm

Perlbal plugin that can optionally add an x-forwarded-port and/or x-forwarded-proto header to reverse proxied requests.

Usage

    # in perlbal.conf
    LOAD XFFExtra
    CREATE POOL web
        POOL web ADD 10.0.0.1:80
    CREATE SERVICE proxy
        SET role                        = reverse_proxy
        SET listen                      = 0.0.0.0:80
        SET pool                        = web
        SET plugins             = XFFExtras
        SET send_backend_port   = yes
        SET send_backend_proto  = yes
    ENABLE proxy

Overview

This plugin adds optional headers to be sent to backend servers in reverse proxy mode.

Headers

•

X-Forwarded-Port

This header will contain an integer value indicating the port that the peer connected to. This will correspond to the port number specified on the listen line of the perlbal service that initially handled the connection.

•

X-Forwarded-Proto

This header will contain a string indicating the protocol the client connected to perlbal via. Currently this will be either 'http' or 'https'.

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7–8
  2. 9–10
  3. 11
  4. 12–13

Author

Jonathan Steinert, <[email protected]>

From libperlbal-perl 1.80-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.