Como configuro o cliente VPN para acessar um servidor VPN remoto?

Um cliente VPN é um dispositivo terminal ou software usado para estabelecer uma conexão segura entre um usuário e um servidor VPN.

 

O que é VPN?

Uma VPN (Rede Privada Virtual) permite que você acesse recursos da internet remotamente, com segurança e privacidade, utilizando a tecnologia de tunelamento. A VPN criptografa suas informações pessoais e oculta seu endereço IP do público quando você usa a internet. Para os usuários da VPN, parecerá que os computadores estavam conectados diretamente uns aos outros.

 

Topologia de rede comum:

 

 

Aqui usamos o WR2100 como demonstração.

 

Passo 1:Abra um navegador da web e vá parahttp://cudy.netouhttp://192.168.10.1.

Para mais detalhes, consulteComo fazer login na interface web do roteador Cudy?

Passo 2:Clique emConfigurações gerais->VPNe habilitarVPN.

Regra padrão: Permitir todos os dispositivosouBanir todos os dispositivospara usar VPN.

Para especificar o dispositivo, clique emStatus do sistema->Dispositivos->VPNpara habilitá-lo ou desabilitá-lo.

Site para site:Permitir que os dispositivos em dois locais se comuniquem entre si.

Política de VPN:

Desabilitar:Nenhuma configuração adicional.

Interruptor de segurança de VPN:Desligue a conectividade com a Internet quando a conexão VPN for perdida.

Domínio:Especifique quais domínios passam pela VPN e quais não

Sub-rede remota:Especifique quais sub-redes passam pela VPN e quais não

Etapa 3:NoProtocololista, selecione o que você precisa e insira as informações de VPN fornecidas pelo seu provedor de VPN.

 

VPN PPTP

Digite o endereço do servidor VPN (por exemplo, 113.92.73.163) e o nome de usuário e a senha VPN fornecidos pelo seu provedor de VPN.

 

VPN L2TP

Digite o endereço do servidor VPN (por exemplo, 113.92.73.163), nome de usuário e senha da VPN e a chave pré-compartilhada fornecida pelo seu provedor de VPN.

Se o seu provedor de VPN também fornecer o IP do túnel que se vincula à conta, você pode habilitar oUsar IP de túnel personalizadoopção.

 

OpenVPN

Clique emNavegadorpara importar o arquivo de configuração fornecido pelo seu provedor de VPN.

 

 

• WireGuard VPN

 

Clique emNavegadorpara importar o arquivo de configuração fornecido pelo seu provedor de VPN.

OInterfaceeParserá sincronizado automaticamente com o provedor de VPNArquivo CONF.

 

 

 

• Escravo ZeroTier

Digite oID da rede ZeroTierePortalfornecido pelo ZeroTier Master. O Gateway pode ser encontrado na seção "Status da VPN".

 

 

Artigo relacionado: Como conectar remotamente o roteador Cudy via Zerotier? - Cudy Home

Voltar para o blog

186 comentários

@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

Deixe um comentário