![未使用 OpenVPN 存取被封鎖的站點](https://rvso.com/image/112003/%E6%9C%AA%E4%BD%BF%E7%94%A8%20OpenVPN%20%E5%AD%98%E5%8F%96%E8%A2%AB%E5%B0%81%E9%8E%96%E7%9A%84%E7%AB%99%E9%BB%9E.png)
我安裝了 OpenVPN 伺服器並從我的 PC 連接到它。在我可以看到的網站上,我的 IP 位址是 VDS 位址,所以一切正常。但我無法訪問在我所在縣被封鎖的網站。
首先,我嘗試將DNS伺服器更改為Google DNS伺服器,但這沒有幫助。
伺服器上的配置(伺服器設定檔):
port 7810
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
log-append openvpn.log
verb 3
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
客戶端配置(openvpn.conf):
remote 37.46.135.189 7810
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.4.4"
push "dhcp-option DNS 8.8.8.8"
tls-client
remote-cert-tls server
nobind
proto tcp-client
dev tun0
pull
resolv-retry infinite
comp-lzo
ca ca.crt
cert client1.crt
key client1.key
persist-tun
persist-key
verb 3
route-method exe
route-delay 2
為什麼我無法訪問被封鎖的網站以及如何解決?