瀏覽代碼

added config for tap device

master
Robin Thoni 8 年之前
父節點
當前提交
216fc30e93
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 2
    0
      vpngen/default/clients/client.conf
  2. 1
    0
      vpngen/vpngen.json

+ 2
- 0
vpngen/default/clients/client.conf 查看文件

@@ -5,6 +5,8 @@ proto tcp-client
5 5
 remote ${hostname} ${port}
6 6
 resolv-retry infinite
7 7
 cipher AES-256-CBC
8
+lladdr ${mac}
9
+ifconfig-noexec
8 10
 
9 11
 # Keys
10 12
 ca ca-${name}.crt

+ 1
- 0
vpngen/vpngen.json 查看文件

@@ -14,6 +14,7 @@
14 14
     "hostname": "vpn.example.com",
15 15
     "net": "10.0.0.0",
16 16
     "mask": "255.255.255.0",
17
+    "mac": "16:99:45:00:00:00",
17 18
     "dev": "tap",
18 19
     "user": "root",
19 20
     "group": "root",

Loading…
取消
儲存