From 954dce1bf0a8c03701b3fe32d2d7c63a45c9d55f Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 19 Nov 2026 00:52:58 +0100 Subject: [PATCH] main_ipv*.conf.sample: document reverse proxy use of 'allow_gw_to_local_service'. Co-Authored-By: Claude Opus 5.5 --- conf/main_ipv4.conf.sample | 12 ++++++++++-- conf/main_ipv6.conf.sample | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/conf/main_ipv4.conf.sample b/conf/main_ipv4.conf.sample index 99c450a..255a218 100644 --- a/conf/main_ipv4.conf.sample +++ b/conf/main_ipv4.conf.sample @@ -462,8 +462,16 @@ allow_to_ext_net="" # - allow_gw_to_local_service=" [local-ip:port:protocol> [.." # - # - Allow connections initiated by the gateway itself (OUTPUT chain) to the -# - given service in a local network. Needed e.g. if a reverse proxy (nginx, -# - apache, ..) running on the gateway forwards requests to a local server. +# - given service in a local network. +# - +# - This makes it possible to use the gateway as a reverse proxy: a web server +# - (nginx, apache, ..) running on the gateway accepts requests from outside and +# - forwards them to a service on a local server. Without such an entry, the +# - connection from the gateway to the local service is dropped by the OUTPUT +# - chain and the reverse proxy answers with '502 Bad Gateway'. +# - +# - Note: Incoming traffic to the reverse proxy on the gateway itself (e.g. port +# - 443) must be allowed separately. # - # - Only 'tcp' and 'udp' are allowed values for protocol. A port range # - can be given as 'from-to'. diff --git a/conf/main_ipv6.conf.sample b/conf/main_ipv6.conf.sample index 4b8d49d..1f27205 100644 --- a/conf/main_ipv6.conf.sample +++ b/conf/main_ipv6.conf.sample @@ -449,8 +449,16 @@ allow_to_ext_net="" # - allow_gw_to_local_service=" [local-ip,port,protocol> [.." # - # - Allow connections initiated by the gateway itself (OUTPUT chain) to the -# - given service in a local network. Needed e.g. if a reverse proxy (nginx, -# - apache, ..) running on the gateway forwards requests to a local server. +# - given service in a local network. +# - +# - This makes it possible to use the gateway as a reverse proxy: a web server +# - (nginx, apache, ..) running on the gateway accepts requests from outside and +# - forwards them to a service on a local server. Without such an entry, the +# - connection from the gateway to the local service is dropped by the OUTPUT +# - chain and the reverse proxy answers with '502 Bad Gateway'. +# - +# - Note: Incoming traffic to the reverse proxy on the gateway itself (e.g. port +# - 443) must be allowed separately. # - # - Only 'tcp' and 'udp' are allowed values for protocol. A port range # - can be given as 'from-to'.