Mobile Client. Only first user can access.
I have a strange problem with our OPENVPN Server.
I have 192.168.166.0/24 as my tunnel Network.
Each user has his own cert.
When the first user connects the openvpn client takes 192.168.166.2 as ip and 192.168.166.1 as gateway.
Traffic to all lan subnets is working.
When a second user connects the openvpn client takes 192.168.166.3 as ip and 192.168.166.1 as gateway.
But no traffic is passing and even the gateway cant be pinged.
It doesnt matter if the first user is still connected or not.
Firewall rule for openvpn is an any to any rule.
When I restart the openvpn server only the user who will get ip 192.168.166.2 is able to reach the lan networks.
I also checked client firewall and routes. They all seem to be fine.
Any idea for solving this problem?
I think I found the solution for my problem.
I checked the two users which I used for testing and noticed that the CN in both user certs was the same.
So I changed one of the CN and till then everythink works fine.