Tunnelblick 選項錯誤:tls-crypt (2.3.17) 中無法辨識選項或缺少參數
我有一個新的 OpenVPN 配置,它在伺服器上執行正常,但客戶端無法連接並出現以下錯誤:
選項錯誤:/Library/Application Support/Tunnelblick/Users/Mark/markhorrocks.tblk/Contents/Resources/config.ovpn:28 中無法辨識的選項或缺少參數:tls-crypt (2.3.17)
隧道視覺日誌:
*Tunnelblick:OS X 10.12.5;Tunnelblick 3.7.2beta03(內部版本 4840);先前版本 3.7.2beta02 (build 4830) 2017-07-06 23:54:08 *Tunnelblick: 嘗試使用卷影副本與 markhorrocks 連接;設置名稱伺服器 = 771;監控連接 2017-07-06 23:54:08 *Tunnelblick: openvpnstart start markhorrocks.tblk 1337 771 0 1 0 1065264 -ptADGNWradsgnw 2.3.17-openssl-1.0.2k 2017-07-06 23:54:08 *Tunnelblick:
無法啟動 OpenVPN(openvpnstart 返回狀態為 #251)
openvpnstart 日誌的內容: *Tunnelblick: openvpnstart 日誌: 警告:Tunnelblick 正在使用 ‘openvpn-down-root.so’,因此不會使用 route-pre-down 腳本。您可以通過在 Tunnelblick VPN 配置中提供自定義 route-pre-down 腳本(可能是 Tunnelblick 的標準 route-pre-down 腳本的副本)來覆蓋此設置。但是,除非從 OpenVPN 配置文件中刪除 ‘user’ 和 ‘group’ 選項,否則該腳本不會以 root 身份執行。如果刪除了“使用者”和“組”選項,則不需要使用自定義路由預向下腳本。OpenVPN 返回狀態 1,errno = 0:未定義錯誤:0
Command used to start OpenVPN (one argument per displayed line): /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.17-openssl-1.0.2k/openvpn --daemon --log /Library/Application Support/Tunnelblick/Logs/-SUsers-SMark-SLibrary-SApplication
Support-STunnelblick-SConfigurations-Smarkhorrocks.tblk-SContents-SResources-Sconfig.ovpn.771_0_1_0_1065264.1337.openvpn.log –cd /Library/Application Support/Tunnelblick/Users/Mark/markhorrocks.tblk/Contents/Resources –verb 3 –config /Library/Application Support/Tunnelblick/Users/Mark/markhorrocks.tblk/Contents/Resources/config.ovpn –verb 3 –cd /Library/Application Support/Tunnelblick/Users/Mark/markhorrocks.tblk/內容/資源 –management 127.0.0.1 1337 –management-query-passwords –management-hold –script-security 2 –up /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick。sh -9 -d -f -m -w -ptADGNWradsgnw –plugin /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.17-openssl-1.0.2k/openvpn-down-root.so /Applications /Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -9 -d -f -m -w -ptADGNWradsgnw
Contents of the OpenVPN log: Options error: Unrecognized option or missing parameter(s) in /Library/Application
Support/Tunnelblick/Users/Mark/markhorrocks.tblk/Contents/Resources/config.ovpn:28: tls-crypt (2.3.17) 使用 –help 獲取更多資訊。
More details may be in the Console Log's "All Messages"
================================================================================
“消毒”完整配置文件
client proto udp dev tun remote vpn.mydomain.com 1194 resolv-retry infinite nobind persist-key persist-tun remote-cert-tls server auth SHA512 cipher AES-256-GCM tls-version-min 1.2 tls-client ping 15 ping-restart 120 route 10.0.0.0 255.0.0.0 route-nopull daemon # Downgrade privileges after initialization (non-Windows only) user nobody group nogroup <ca> [Security-related line(s) omitted] </ca> <cert> [Security-related line(s) omitted] </cert> <key> [Security-related line(s) omitted] </key> <tls-crypt> [Security-related line(s) omitted] </tls-crypt>
OpenVPN 在 2.4+ 版本中添加了 tls-crypt 功能。Tunnelblick 出於某種原因預設在設置中使用 OpenVPN 2.3.7,即使在最新版本中(根據我的經驗)。因此,只需將 Tunnelblick 的“設置”菜單中的“OpenVPN”版本更新到 2.4+,就可以開始使用了!