disabling open vpn for mobile devices

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
rrmcguire
OpenVpn Newbie
Posts: 1
Joined: Thu Mar 14, 2024 9:50 pm

disabling open vpn for mobile devices

Post by rrmcguire » Fri Mar 15, 2024 2:44 pm

Is there a spot on the open vpn access server page where you can disable users from logging into ovpn from mobile devices?

thank you

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: disabling open vpn for mobile devices

Post by openvpn_inc » Fri Mar 15, 2024 10:30 pm

Hello,

You can create a Post Authentication Script (PAS) to configure that condition to connect to the VPN:

+ If device is Android or iOS > DENY the VPN Connection

For more info about PAS:
https://openvpn.net/vpn-server-resource ... ion-script

You can also take the example of the MAC PAS and modify it to use the Platform instead of the MAC

Of course, this will need extra work and Python knowledge, but doable


Best Regards,

DynamoX
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply