openvpn 不使用本地流量上網

在設定檔上加上這句
#redirect-gateway def1

或以下設定檔
#Template client.ovpnclient
client
dev tun
proto tcp-client
#remote FQDN
remote FQDN
port 1194
nobind
persist-key
persist-tun
tls-client
remote-cert-tls server
ca ca.crt
cert client.crt
key client.key
verb 4
mute 10
cipher AES-256-CBC
auth SHA1
auth-user-pass secret
auth-nocache
#comp-lzo
#route 192.168.10.0 255.255.255.0
route 192.168.1.0 255.255.255.0
#status openvpn-status.log
#log-append openvpn.log

本篇發表於 未分類。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>