Mobile device only

How to customize and extend your OpenVPN installation.

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

Post Reply
simplecode678
OpenVpn Newbie
Posts: 6
Joined: Mon Dec 18, 2017 6:20 pm

Mobile device only

Post by simplecode678 » Mon Dec 18, 2017 6:23 pm

Hi,
Can anyone please let me know how to make it works on mobile devices only ? What should i change ?
thanks !
Raz

simplecode678
OpenVpn Newbie
Posts: 6
Joined: Mon Dec 18, 2017 6:20 pm

Re: Mobile device only

Post by simplecode678 » Mon Dec 18, 2017 6:29 pm

i mean i have a openvpn server, and target is to let clients only use mobile devices, no computer will be allowed.

simplecode678
OpenVpn Newbie
Posts: 6
Joined: Mon Dec 18, 2017 6:20 pm

Re: Mobile device only

Post by simplecode678 » Mon Dec 18, 2017 6:56 pm

may be this will make sense for you https://serverfault.com/questions/83482 ... ents-by-os
but not for a newbie like me, need to better understand that to set it on debian :)
they want to block mobile devices, i want to make a vpn server for mobile devices only

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

Re: Mobile device only

Post by TinCanTech » Tue Dec 19, 2017 8:34 pm

Openvpn uses --push-peer-info to push some variables to the server .. you could theoretically use those elements in a --client-connect script to filter clients by OS. See --push-peer-info in The Manual v24x

simplecode678
OpenVpn Newbie
Posts: 6
Joined: Mon Dec 18, 2017 6:20 pm

Re: Mobile device only

Post by simplecode678 » Wed Dec 20, 2017 8:55 am

TinCanTech wrote:
Tue Dec 19, 2017 8:34 pm
Openvpn uses --push-peer-info to push some variables to the server .. you could theoretically use those elements in a --client-connect script to filter clients by OS. See --push-peer-info in The Manual v24x
Thanks i will check ! :D

simplecode678
OpenVpn Newbie
Posts: 6
Joined: Mon Dec 18, 2017 6:20 pm

Re: Mobile device only

Post by simplecode678 » Wed Dec 20, 2017 10:41 am

I'm on debian so and i use a simple script done on https://github.com/Angristan/OpenVPN-install the most simple i have found
so if i do understand well i do use --push-peer-info with iptables and drop os that i do not need ?
To complicated for a newbie...
anyone to help ? as i said i used an install script, because openvpn is realy new to me...

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

Re: Mobile device only

Post by TinCanTech » Wed Dec 20, 2017 12:35 pm


simplecode678
OpenVpn Newbie
Posts: 6
Joined: Mon Dec 18, 2017 6:20 pm

Re: Mobile device only

Post by simplecode678 » Wed Dec 20, 2017 1:42 pm

I give up too complicated

Post Reply