Page 1 of 1

VPN client get wrong subnetwork mask

Posted: Thu May 13, 2021 8:16 pm
by Silvio Dourado
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 ?

Re: VPN client get wrong subnetwork mask

Posted: Fri May 14, 2021 12:56 pm
by TinCanTech
The client subnet mask is never going to be /32 ..