]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Adding rfc6598.auto and adding rfc6598 space to nat.auto acl, This is the NAT444...
authorBrian West <brian@freeswitch.org>
Thu, 6 Nov 2014 14:55:03 +0000 (08:55 -0600)
committerBrian West <brian@freeswitch.org>
Thu, 6 Nov 2014 14:55:03 +0000 (08:55 -0600)
src/switch_core.c

index bf07f4645149291d4fd90f569a6b25b4761f4f47..cbf3175679e33e2effd9caf80a9500fc46ca38bf 100644 (file)
@@ -1,3 +1,4 @@
+
 /* 
  * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
  * Copyright (C) 2005-2014, Anthony Minessale II <anthm@freeswitch.org>
@@ -1300,6 +1301,12 @@ SWITCH_DECLARE(void) switch_load_network_lists(switch_bool_t reload)
        switch_core_hash_init(&IP_LIST.hash);
 
 
+       tmp_name = "rfc6598.auto";
+       switch_network_list_create(&rfc_list, tmp_name, SWITCH_FALSE, IP_LIST.pool);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Created ip list %s default (deny)\n", tmp_name);
+       switch_network_list_add_cidr(rfc_list, "100.64.0.0/10", SWITCH_TRUE);
+       switch_core_hash_insert(IP_LIST.hash, tmp_name, rfc_list);
+
        tmp_name = "rfc1918.auto";
        switch_network_list_create(&rfc_list, tmp_name, SWITCH_FALSE, IP_LIST.pool);
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Created ip list %s default (deny)\n", tmp_name);
@@ -1327,6 +1334,7 @@ SWITCH_DECLARE(void) switch_load_network_lists(switch_bool_t reload)
        switch_network_list_add_cidr(rfc_list, "10.0.0.0/8", SWITCH_TRUE);
        switch_network_list_add_cidr(rfc_list, "172.16.0.0/12", SWITCH_TRUE);
        switch_network_list_add_cidr(rfc_list, "192.168.0.0/16", SWITCH_TRUE);
+       switch_network_list_add_cidr(rfc_list, "100.64.0.0/10", SWITCH_TRUE);
        switch_core_hash_insert(IP_LIST.hash, tmp_name, rfc_list);
 
        tmp_name = "loopback.auto";