From 279b6f87a023a7711fb98972284d342e51916101 Mon Sep 17 00:00:00 2001 From: bjdgyc Date: Tue, 29 Nov 2022 20:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=85=8D=E7=BD=AE=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/base/config.go | 4 ++-- server/conf/server-sample.toml | 4 ++-- server/conf/server.toml | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/server/base/config.go b/server/base/config.go index b28a698..9d66b5e 100644 --- a/server/base/config.go +++ b/server/base/config.go @@ -51,8 +51,8 @@ var configs = []config{ {Typ: cfgInt, Name: "ip_lease", Usage: "IP租期(秒)", ValInt: 1209600}, {Typ: cfgInt, Name: "max_client", Usage: "最大用户连接", ValInt: 200}, {Typ: cfgInt, Name: "max_user_client", Usage: "最大单用户连接", ValInt: 3}, - {Typ: cfgInt, Name: "cstp_keepalive", Usage: "keepalive时间(秒)", ValInt: 9}, - {Typ: cfgInt, Name: "cstp_dpd", Usage: "死链接检测时间(秒)", ValInt: 15}, + {Typ: cfgInt, Name: "cstp_keepalive", Usage: "keepalive时间(秒)", ValInt: 6}, + {Typ: cfgInt, Name: "cstp_dpd", Usage: "死链接检测时间(秒)", ValInt: 10}, {Typ: cfgInt, Name: "mobile_keepalive", Usage: "移动端keepalive接检测时间(秒)", ValInt: 15}, {Typ: cfgInt, Name: "mobile_dpd", Usage: "移动端死链接检测时间(秒)", ValInt: 20}, {Typ: cfgInt, Name: "mtu", Usage: "最大传输单元MTU", ValInt: 1460}, diff --git a/server/conf/server-sample.toml b/server/conf/server-sample.toml index da4c988..b819e17 100644 --- a/server/conf/server-sample.toml +++ b/server/conf/server-sample.toml @@ -56,8 +56,8 @@ ip_lease = 1209600 default_group = "one" #客户端失效检测时间(秒) dpd > keepalive -cstp_keepalive = 9 -cstp_dpd = 15 +cstp_keepalive = 6 +cstp_dpd = 10 mobile_keepalive = 15 mobile_dpd = 20 diff --git a/server/conf/server.toml b/server/conf/server.toml index 3a093e2..c2e6ef6 100644 --- a/server/conf/server.toml +++ b/server/conf/server.toml @@ -33,4 +33,5 @@ ipv4_gateway = "192.168.90.1" ipv4_start = "192.168.90.100" ipv4_end = "192.168.90.200" - +#是否自动添加nat +iptables_nat = true