VPN client get wrong subnetwork mask

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Silvio Dourado
OpenVpn Newbie
Posts: 1
Joined: Thu May 13, 2021 7:54 pm

VPN client get wrong subnetwork mask

Post by Silvio Dourado » Thu May 13, 2021 8:16 pm

Hi,
I'm having problem using OpenVPN. The client obtains a connection to the server, but the subnet mask assignment is different from what is expected, the client obtains the 255.255.255.0 subnet mask when the mask is expected to be 255.255.255.255. In this case, that client can connect to the server, but it cannot communicate with the local network.
I noticed that the same client (same host too) has a similar problem when trying to connect to another VPN server that uses L2TP over IPsec.
The client file is:

Code: Select all

#Template client.ovpn

client

dev tun

proto tcp-client

remote 192.168.137.2

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
Someone can help me to find the problem ?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN client get wrong subnetwork mask

Post by TinCanTech » Fri May 14, 2021 12:56 pm

The client subnet mask is never going to be /32 ..

Post Reply