删除一些不用的配置项: wangw_ip, wangw_port, config_src_type;
natgw新增配置参数: wannat_bind_first_port
This commit is contained in:
@@ -16,9 +16,8 @@ wannat_global:
|
|||||||
|
|
||||||
natgw:
|
natgw:
|
||||||
device: "eth0"
|
device: "eth0"
|
||||||
wangw_ip: "192.168.40.161"
|
|
||||||
wangw_port: 3545
|
|
||||||
natgw_bind_port: 3544
|
natgw_bind_port: 3544
|
||||||
|
to_wangw_dst_first_port: 3545
|
||||||
layer2_gateway_device: "eth0"
|
layer2_gateway_device: "eth0"
|
||||||
location_compare_type: 0
|
location_compare_type: 0
|
||||||
country_location: "Set_your_geographic_location_here"
|
country_location: "Set_your_geographic_location_here"
|
||||||
@@ -33,7 +32,6 @@ wannat_global:
|
|||||||
g_probe_retry_times: 5
|
g_probe_retry_times: 5
|
||||||
max_item_number: 10000
|
max_item_number: 10000
|
||||||
lru_timeout: 60
|
lru_timeout: 60
|
||||||
config_src_type: "redis"
|
|
||||||
|
|
||||||
pptp:
|
pptp:
|
||||||
mtu: 2000
|
mtu: 2000
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[NATGW_COMMON]
|
[NATGW_COMMON]
|
||||||
logger_conf=./conf/natgw_log.conf
|
logger_conf=./conf/natgw_log.conf
|
||||||
logger_path=./log/natgw_log
|
logger_path=./log/natgw_log
|
||||||
|
logger_level=30
|
||||||
#0:vxlan;1:socket_test
|
#0:vxlan;1:socket_test
|
||||||
run_type=0
|
run_type=0
|
||||||
#0:nerver;1:LRU
|
#0:nerver;1:LRU
|
||||||
@@ -21,13 +22,9 @@ json_cfg_file=./conf/natgw_test.json
|
|||||||
config_type=1
|
config_type=1
|
||||||
|
|
||||||
[NATGW_CONVERT]
|
[NATGW_CONVERT]
|
||||||
snat_mask_ip=192.168.50.147
|
|
||||||
wannat_ip={{wannat_global.natgw.wangw_ip}}
|
|
||||||
wannat_port={{wannat_global.natgw.wangw_port}}
|
|
||||||
dnat_mask_ip=10.10.10.10
|
|
||||||
natgw_bind_port={{wannat_global.natgw.natgw_bind_port}}
|
natgw_bind_port={{wannat_global.natgw.natgw_bind_port}}
|
||||||
device={{wannat_global.natgw.layer2_gateway_device}}
|
device={{wannat_global.natgw.layer2_gateway_device}}
|
||||||
|
wannat_bind_first_port={{wannat_global.natgw.to_wangw_dst_first_port}}
|
||||||
|
|
||||||
[NATGW_SNAT]
|
[NATGW_SNAT]
|
||||||
Maat_redis_ip={{wannat_global.common.redis_server_ip}}
|
Maat_redis_ip={{wannat_global.common.redis_server_ip}}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ prometheus_url_path="/metrics"
|
|||||||
table_info=./etc/maat_tableinfo.conf
|
table_info=./etc/maat_tableinfo.conf
|
||||||
#json, redis, local_file
|
#json, redis, local_file
|
||||||
config_src_type=redis
|
config_src_type=redis
|
||||||
#config_src_type=json
|
|
||||||
json_cfg_file=./etc/maat_test.json.v3
|
json_cfg_file=./etc/maat_test.json.v3
|
||||||
inc_dir=./redis_dump/
|
inc_dir=./redis_dump/
|
||||||
full_dir=./redis_dump/
|
full_dir=./redis_dump/
|
||||||
|
|||||||
Reference in New Issue
Block a user