The public IP address of your Wireguard server that the client will connect to. Click on
- Suggest button to auto detect the public IP address of your server.
-
2. DNS Servers
-
The DNS servers will be set to client config.
-
3. MTU
-
The MTU will be set to server and client config. By default it is 1450. You might want
- to adjust the MTU size if your connection (e.g PPPoE, 3G, satellite network, etc) has a low MTU.
-
Leave blank to omit this setting in the configs.
-
4. Persistent Keepalive
-
By default, WireGuard peers remain silent while they do not need to communicate,
- so peers located behind a NAT and/or firewall may be unreachable from other peers
- until they reach out to other peers themselves. Adding PersistentKeepalive
- can ensure that the connection remains open.
-
Leave blank to omit this setting in the Client config.
-
5. Firewall Mark
-
Add a matching fwmark on all packets going out of a WireGuard non-default-route tunnel. Default value: 0xca6c
-
6. Table
-
Value for the Table setting in the wg conf file. Default value: auto
-
7. Wireguard Config File Path
-
The path of your Wireguard server config file. Please make sure the parent directory
- exists and is writable.
-
+
1. 端点地址
+}
客户端将连接到的 WireGuard 服务器公网 IP。点击 建议 按钮可自动检测服务器公网地址。
+}
2. DNS 服务器
+}
这些 DNS 服务器将写入客户端配置。
+}
3. MTU
+
MTU 会应用到服务器和客户端配置,默认值为 1450。若连接(例如 PPPoE、3G、卫星网络等)MTU 较小,可在此调整。
@@ -92,8 +92,8 @@ Profile
contentType: "application/json",
data: JSON.stringify(data),
success: function (data) {
- toastr.success("Updated user information successfully");
- location.reload();
+ toastr.success("已成功更新用户信息");
+} location.reload();
},
error: function (jqXHR, exception) {
const responseJson = jQuery.parseJSON(jqXHR.responseText);
@@ -116,8 +116,8 @@ Profile
},
messages: {
username: {
- required: "Please enter a username",
- }
+ required: "请输入用户名",
+} }
},
errorElement: 'span',
errorPlacement: function (error, element) {
diff --git a/templates/server.html b/templates/server.html
index e1116a6..0109395 100644
--- a/templates/server.html
+++ b/templates/server.html
@@ -1,5 +1,5 @@
{{define "title"}}
-Wireguard Server
+WireGuard 服务器
{{end}}
{{define "top_css"}}
@@ -10,7 +10,7 @@ Wireguard Server
{{end}}
{{define "page_title"}}
-Wireguard Server Settings
+WireGuard 服务器设置
{{end}}
{{define "page_content"}}
@@ -22,42 +22,42 @@ Wireguard Server Settings
-
Interface
-
+
接口
+}
-
+
-
-
+
+}
-
- Post Up 脚本
+}
-
+
+ placeholder="Pre Down 脚本" value="{{ .serverInterface.PreDown }}">
-
+
+ placeholder="Post Down 脚本" value="{{ .serverInterface.PostDown }}">
@@ -67,26 +67,28 @@ Wireguard Server Settings
-
Key Pair
-
+
密钥对
+}
-
+
-
+
- Show
+ 显示
+
-
- 公钥
+
@@ -94,7 +96,7 @@ Wireguard Server Settings
@@ -109,18 +111,18 @@ Wireguard Server Settings
-
KeyPair Generation
+
密钥对生成
×
-
Are you sure to generate a new key pair for the Wireguard server?
- The existing Client's peer public key need to be updated to keep the connection working.