Comment configurer le client VPN pour accéder à un serveur VPN distant ?

Ein VPN-Client ist ein Endgerät oder eine Software, die zum Herstellen einer sicheren Verbindung zwischen einem Benutzer und einem VPN-Server verwendet wird.

 

Was ist VPN?

VPN (Virtual Private Network) hilft Ihnen mit Tunneltechnologie aus der Ferne, sicher und privat auf Internetressourcen zuzugreifen. Das VPN verschlüsselt Ihre persönlichen Daten und verbirgt Ihre IP-Adresse vor der Öffentlichkeit, wenn Sie das Internet nutzen. Für die Benutzer des VPN sieht es so aus, als wären die Computer direkt miteinander verbunden.

 

Gemeinsame Netzwerktopologie:

 

 

Hier nehmen wir WR2100 als Demonstration.

 

Schritt 1:  Öffnen Sie einen Webbrowser und gehen Sie zu http:/ /cudy.net oder http ://192.168.10.1

Weitere Informationen finden Sie unter So melden Sie sich bei der Weboberfläche von Cudy an Router?

Schritt 2: Klicken Sie auf Allgemeine Einstellungen->VPN und aktivieren Sie VPN.

Standardregel: Alle Geräte zulassen oder Allen Geräten die Verwendung von VPN verbieten.

Um das Gerät anzugeben, klicken Sie auf Systemstatus- > Geräte->VPN um es zu aktivieren oder zu deaktivieren.

Site-to-Site: < /strong>Erlauben Sie den Geräten an zwei Standorten, miteinander zu kommunizieren.

VPN-Richtlinie: 

Deaktivieren: Keine zusätzliche Einstellung.

VPN-Kill-Switch: Schalten Sie die Internetverbindung aus, wenn die VPN-Verbindung unterbrochen wird.

Domäne: Geben Sie an, welche Domänen über das VPN laufen was nicht der Fall ist

Remote-Subnetz: Geben Sie an, welche Subnetze über das VPN laufen und welche nicht

Schritt 3: Im Protokoll wählen Sie das gewünschte aus und geben Sie die von Ihrem VPN-Anbieter bereitgestellten VPN-Informationen ein.

 

• PPTP VPN

Geben Sie die VPN-Serveradresse (z. B. 113.92.73.163) sowie den VPN-Benutzernamen und das Passwort ein bereitgestellt von Ihrem VPN-Anbieter.

 

• L2TP VPN

Geben Sie die VPN-Serveradresse (zum Beispiel 113.92.73.163), den VPN-Benutzernamen und das Passwort sowie den von Ihnen bereitgestellten Pre-Shared Key ein VPN-Anbieter.

Wenn Ihr VPN-Anbieter Ihnen auch die Tunnel-IP zur Verfügung stellt, die eine Verbindung zum Konto herstellt, können Sie die Funktion Option „Benutzerdefinierte Tunnel-IP“ verwenden.

 

• OpenVPN < /span>

Klicken Sie auf Browser , um die von bereitgestellte Konfigurationsdatei zu importieren Ihr VPN-Anbieter.

 

 

• WireGuard VPN

 

Klicken Sie auf Browser , um die von bereitgestellte Konfigurationsdatei zu importieren Ihr VPN-Anbieter.

Die Schnittstelle und Peer synchronisiert sich automatisch aus der CONF-Datei Ihres VPN-Anbieters.

 

 

 

• ZeroTier Slave

Geben Sie die ZeroTier-Netzwerk-ID und Gateway bereitgestellt vom ZeroTier Master. Das Gateway finden Sie im Abschnitt „VPN-Status“.

 

 

Verwandter Artikel: Wie verbinde ich den Cudy-Router per Fernzugriff über Zerotier?-Cudy Home

Retour au blog

186 commentaires

@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

Laisser un commentaire