@@ -61,6 +61,12 @@ <h3 class="card-title">Wireguard Global Settings</h3>
61
61
name ="firewall_mark " placeholder ="Firewall Mark "
62
62
value ="{{ .globalSettings.FirewallMark }} ">
63
63
</ div >
64
+ < div class ="form-group ">
65
+ < label for ="Table "> Table</ label >
66
+ < input type ="text " class ="form-control " id ="table "
67
+ name ="table " placeholder ="auto "
68
+ value ="{{ .globalSettings.Table }} ">
69
+ </ div >
64
70
< div class ="form-group ">
65
71
< label for ="config_file_path "> Wireguard Config File Path</ label >
66
72
< input type ="text " class ="form-control " id ="config_file_path "
@@ -102,7 +108,9 @@ <h3 class="card-title">Help</h3>
102
108
< dd > Leave blank to omit this setting in the Client config.</ dd >
103
109
< dt > 5. Firewall Mark</ dt >
104
110
< dd > Add a matching < code > fwmark</ code > on all packets going out of a WireGuard non-default-route tunnel. Default value: < code > 0xca6c</ code > </ dd >
105
- < dt > 6. Wireguard Config File Path</ dt >
111
+ < dt > 6. Table</ dt >
112
+ < dd > Value for the < code > Table</ code > setting in the wg conf file. Default value: < code > auto</ code > </ dd >
113
+ < dt > 7. Wireguard Config File Path</ dt >
106
114
< dd > The path of your Wireguard server config file. Please make sure the parent directory
107
115
exists and is writable.</ dd >
108
116
</ dl >
@@ -150,8 +158,9 @@ <h4 class="modal-title">Endpoint Address Suggestion</h4>
150
158
const mtu = $ ( "#mtu" ) . val ( ) ;
151
159
const persistent_keepalive = $ ( "#persistent_keepalive" ) . val ( ) ;
152
160
const firewall_mark = $ ( "#firewall_mark" ) . val ( ) ;
161
+ const table = $ ( "#table" ) . val ( ) ;
153
162
const config_file_path = $ ( "#config_file_path" ) . val ( ) ;
154
- const data = { "endpoint_address" : endpoint_address , "dns_servers" : dns_servers , "mtu" : mtu , "persistent_keepalive" : persistent_keepalive , "firewall_mark" : firewall_mark , "config_file_path" : config_file_path } ;
163
+ const data = { "endpoint_address" : endpoint_address , "dns_servers" : dns_servers , "mtu" : mtu , "persistent_keepalive" : persistent_keepalive , "firewall_mark" : firewall_mark , "table" : table , " config_file_path" : config_file_path } ;
155
164
156
165
$ . ajax ( {
157
166
cache : false ,
@@ -224,6 +233,9 @@ <h4 class="modal-title">Endpoint Address Suggestion</h4>
224
233
} ,
225
234
firewall_mark : {
226
235
required : false
236
+ } ,
237
+ table : {
238
+ required : false
227
239
}
228
240
} ,
229
241
messages : {
0 commit comments