NAT-rules-fixed-IPv4-provider/NAT_2_norrsken

27 lines
623 B
Text
Raw Normal View History

2024-02-07 00:21:45 +01:00
#!/bin/bash
# Static configuration for the host we are NATting towards
# * ORIGINAL_DESTINATION_IP is the private IP corresponding to the desired public IP
# * RULES contains "original_destination_port:forward_to_port"
INTERFACE_SOURCE="ens3"
ORIGINAL_DESTINATION_IP="10.0.0.143"
FORWARD_TO_IP="10.0.100.20"
RULES=(
"53:5300"
"53:5300/udp"
"443:4430/udp"
2024-02-08 12:47:59 +01:00
"22:22"
2024-02-14 19:19:50 +01:00
"3478:3478"
"3478:3478/udp"
"25:2500"
"143:1430"
"465:4650"
"587:5870"
"993:9930"
2024-03-10 21:13:13 +01:00
"2220:2220"
2024-02-07 00:21:45 +01:00
)
# Runs the actual script
CURRENT_DIR="$(dirname "$(readlink -f "$0")")"
. "$CURRENT_DIR/configure_NAT_from_RULES"