Add support for Portforwarding TCP/UDP using socat.

This commit is contained in:
2020-06-03 14:10:27 +02:00
parent 53de5746cf
commit 498b34741c
5 changed files with 249 additions and 1 deletions

View File

@ -503,6 +503,49 @@ udp_out_ports=""
forward_udp_out_ports=""
# =============
# --- Portforwarding
# =============
# - Portforwarding TCP
# -
# - portforward_tcp="<device-in>:<src-ip>:<port-in>:<ip-to-forward>:<port-out>"
# -
# - Multiple declarations (blank separated list) are possible
# -
# - Example:
# - portforward_tcp="${ext_if_1}:83.223.86.95:9997:192.168.52.25:22
# - ${ext_if_1}:${ext_1_ip}:80:83.223.86.98:80
# - ${ext_if_1}:${ext_1_ip}:443:83.223.86.98:443
# - "
# -
# - Note!
# - be careful if you use a variable (e.g. ext_1_ip) that it contains NO SPACES.
# -
# - Blank separated list
# -
portforward_tcp=""
# - Portforwarding UDP
# -
# - portforward_udp="<device-in>:<src-ip>:<udp-port-in>:<ip-to-forward>:<udp-port-out>"
# -
# - Multiple declarations (blank separated list) are possible
# -
# - Example:
# - portforward_udp="
# - ${ext_if_1}:${ext_1_ip}:1194:192.168.52.25:1194
# - ${ext_if_1}:${ext_1_ip}:1195:192.168.53.24:1195
# - "
# -
# - Blank separated list
# -
portforward_udp=""
# -------------
# --- Block IP's / IP-Ranges
# -------------