diff --git a/conf/main_ipv4.conf.sample b/conf/main_ipv4.conf.sample index 12bb01d..fc38ea3 100644 --- a/conf/main_ipv4.conf.sample +++ b/conf/main_ipv4.conf.sample @@ -567,6 +567,8 @@ local_ntp_service=true # - SNMP services local Networks # - +# - Blank separated list of ip's +# - snmp_server_ips="" # - SNMP Port @@ -852,10 +854,27 @@ other_services="" # --- Masuqerading # ============= +# - Masquerade (NAT) networks +# - +# - nat_networks=": [:] [.." +# - +# - Multiple declarations (blank separated list) are possible +# - +# - Example: +# - nat_network="172.16.1.0/24:${local_if_2} +# - 172.16.63.0/24:${ext_if_static_1}" +# - +# - 172.16.1.0/24 Rescue network (routers) +# - +nat_networks="" + + # - Masquerade TCP Connections # - # - masquerade_tcp_con="::: [::..]" # - +# - Multiple declarations (blank separated list) are possible +# - # - Example: # - # - masquerade_tcp_con="192.168.63.0/24:192.168.62.244:80:${local_if_1} @@ -876,14 +895,12 @@ masquerade_tcp_cons="" # - # - portforward_tcp=":::" # - -# - Multiple declarations are possible +# - Multiple declarations (blank separated list) are possible # - # - Example: # - portforward_tcp="$ext_if_dsl_1:9997:192.168.52.25:22 # - $ext_if_dsl_1:9998:192.168.53.24:22" # - -# - Blank separated list -# - portforward_tcp="" @@ -891,14 +908,12 @@ portforward_tcp="" # - # - portforward_udp=":::" # - -# - Multiple declarations are possible +# - Multiple declarations (blank separated list) are possible # - # - Example: # - portforward_udp="$ext_if_dsl_1:1094:192.168.52.25:1094 # - $ext_if_dsl_1:9999:192.168.53.24:1095" # - -# - Blank separated list -# - portforward_udp="" diff --git a/conf/post_decalrations.conf b/conf/post_decalrations.conf index a90ea98..5d647bd 100644 --- a/conf/post_decalrations.conf +++ b/conf/post_decalrations.conf @@ -8,6 +8,12 @@ # --- # - Masquerade TCP Connections # --- + +declare -a nat_network_arr +for _net in $nat_networks ; do + nat_network_arr+=("$_net") +done + declare -a masquerade_tcp_con_arr for _str in $masquerade_tcp_cons ; do masquerade_tcp_con_arr+=("$_str")