Add parameter 'allow_gw_to_local_service' (IPv4).
Allow connections initiated by the gateway itself (OUTPUT chain) to services in local networks, e.g. for a reverse proxy running on the gateway. Format: "local-ip:port[-port]:protocol [..]". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8058eedf61
commit
71df656a5a
3 files changed
+62
No files matched your search
@@ -453,6 +453,31 @@ allow_to_ext_net=""
|
||||
|
||||
|
||||
|
||||
# =============
|
||||
# - Allow gateway itself to local service
|
||||
# =============
|
||||
|
||||
# - allow_gw_to_local_service
|
||||
# -
|
||||
# - allow_gw_to_local_service="<local-ip:port:protocol> [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.
|
||||
# -
|
||||
# - Only 'tcp' and 'udp' are allowed values for protocol. A port range
|
||||
# - can be given as 'from-to'.
|
||||
# -
|
||||
# - Example:
|
||||
# - allow_gw_to_local_service="192.168.10.13:9663:tcp
|
||||
# - 192.168.10.20:8000-8010:tcp"
|
||||
# -
|
||||
# - Blank separated list
|
||||
# -
|
||||
allow_gw_to_local_service=""
|
||||
|
||||
|
||||
|
||||
# =============
|
||||
# --- Separate local Networks
|
||||
# =============
|
||||
|
||||
@@ -287,6 +287,14 @@ for _val in $allow_to_ext_net ; do
|
||||
allow_to_ext_net_arr+=("$_val")
|
||||
done
|
||||
|
||||
# ---
|
||||
# - Allow gateway itself to local service
|
||||
# ---
|
||||
declare -a allow_gw_to_local_service_arr=()
|
||||
for _val in $allow_gw_to_local_service ; do
|
||||
allow_gw_to_local_service_arr+=("$_val")
|
||||
done
|
||||
|
||||
# ---
|
||||
# - Separate local Networks
|
||||
# ---
|
||||
|
||||
Reference in new issue
Block a user