如何設定VPN客戶端存取遠端VPN伺服器?

VPN 用戶端是用於在使用者和 VPN 伺服器之間建立安全連線的終端設備或軟體。

 

什麼是 VPN? p>

VPN(虛擬私人網路)透過隧道技術協助您遠端、安全、私密地存取網際網路資源。 VPN 會對您的個人資訊進行加密,並在您使用網路時向公眾隱藏您的 IP 位址。對於 VPN 用戶來說,電腦看起來像是直接相互連接的。

 

一般網路拓樸:

 

 

這裡以WR2100為例

 

第1 步:開啟網頁瀏覽器並前往http: // /cudy.nethttp ://192.168.10.1。 

詳情請參考如何登入Cudy 的網頁介面路由器?

第 2 步: 點選 常規設定->VPN並啟用VPN.

預設規則: 允許所有設備禁止所有設備使用VPN。

要指定設備,請點選系統狀態- > 設備->VPN 啟用或停用它。

站點到站點:< /strong >允許兩個站點中的設備相互通訊。

VPN 政策:

停用: 無需其他設定。

VPN 終止開關:當VPN 連線遺失時關閉網路連線。

:指定哪些域通過 VPN,哪些不

遠端子網路:指定哪些子網路透過 VPN哪些不

第 3 步: 在協定清單中,選擇您需要的協定並輸入VPN 提供者提供的VPN 資訊。

 

• PPTP VPN

輸入 VPN 伺服器位址(例如 113.92.73.163)以及 VPN 使用者名稱和密碼由您的VPN提供者提供。

 

• L2TP VPN

輸入 VPN 伺服器位址(例如 113.92.73.163)、VPN 使用者名稱和密碼以及您提供的預共用金鑰VPN 供應商。

如果您的VPN 提供者也為您提供了與帳戶綁定的隧道IP,您可以啟用使用自訂隧道 IP 選項。

 

• OpenVPN < /跨度>

點選瀏覽器匯入由您的VPN 供應商。

 

 

• WireGuard VPN

 

點選瀏覽器匯入由您的VPN 供應商。

介面對等點將自動從VPN 提供者的CONF 檔案同步。

 

 

 

• ZeroTier 從站

輸入 ZeroTier 網路 ID網關由ZeroTier Master 提供。網關可以在 VPN 狀態部分找到。

 

 

相關文章: 如何透過Zerotier遠端連線Cudy Router?

返回網誌

186 則留言

@Dear Felice,
Please enable the VPN kill switch function, Then all the traffics from the clients will go through VPN connection.

“Hi,
I am using a Cudy AX3000 router configured as an OpenVPN client (ExpressVPN).
I have observed the following behavior:

The router itself connects correctly to the VPN and gets an IP in the VPN country. However, LAN clients do not appear to have their DNS traffic routed through the VPN tunnel by default. DNS queries from LAN clients are resolved via the WAN interface unless additional workarounds are implemented.
I would like to clarify:

1. Does the OpenVPN client on this router support full-tunnel routing for all LAN devices (i.e. all traffic, including DNS, forced through the VPN interface)?
2. Is there a setting to ensure DNS queries from LAN clients are always routed through the VPN tunnel and not via the WAN?
3. Does the “VPN kill switch” function enforce routing of LAN traffic through the VPN, or only block traffic when the VPN is down?
4. Are there firmware versions or models that support proper policy-based routing (e.g. select devices or all LAN traffic via VPN)?

My goal is to have all LAN devices fully routed through the VPN, including DNS, without relying on external DNS proxies or additional devices.

Thank you for your support."

Support

Hi,
I am using a Cudy AX3000 router configured as an OpenVPN client (ExpressVPN).
I have observed the following behavior:

The router itself connects correctly to the VPN and gets an IP in the VPN country. However, LAN clients do not appear to have their DNS traffic routed through the VPN tunnel by default. DNS queries from LAN clients are resolved via the WAN interface unless additional workarounds are implemented.

I would like to clarify:

1. Does the OpenVPN client on this router support full-tunnel routing for all LAN devices (i.e. all traffic, including DNS, forced through the VPN interface)?
2. Is there a setting to ensure DNS queries from LAN clients are always routed through the VPN tunnel and not via the WAN?
3. Does the “VPN kill switch” function enforce routing of LAN traffic through the VPN, or only block traffic when the VPN is down?
4. Are there firmware versions or models that support proper policy-based routing (e.g. select devices or all LAN traffic via VPN)?

My goal is to have all LAN devices fully routed through the VPN, including DNS, without relying on external DNS proxies or additional devices.

Thank you for your support.

Felice

@Dear Rado,

Is it L2TP or L2TP over IPSec? Is there a preshared key?

“I have a AC1200 Wireless mini VPN router.
I would like to setup l2tp VPN via double NATed.
Is there a way how to setup rightID? As currently VPN is failing on IDir ‘’ does not match to ’’”

“I have a AC1200 Wireless mini VPN router.
I would like to setup l2tp VPN via double NATed.
Is there a way how to setup rightID? As currently VPN is failing on IDir ‘’ does not match to ’’”

Support

I have a AC1200 Wireless mini VPN router.
I would like to setup l2tp VPN via double NATed.
Is there a way how to setup rightID? As currently VPN is failing on IDir ‘’ does not match to ’’

Rado

@Dear bledad,
You can open and edit the OpenVPN file and delete this “group nogroup”.
Then upload it to the router again.
“hello , i have error with openvpn
Sun Mar 8 07:43:17 2026 daemon.err openvpn(client)29373: Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/client/client.ovpn:62: gro (2.5.2)
line 62 > group nogroup
I’m stuck
please help
thank”

Support

發表留言