Post VPN Login actions

How to customize and extend your OpenVPN installation.

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

Post Reply
nappy_d
OpenVpn Newbie
Posts: 2
Joined: Fri Mar 29, 2013 4:22 am

Post VPN Login actions

Post by nappy_d » Fri Mar 29, 2013 4:25 am

Hi all,

I am new OpenVPN and loving it so far!

What I would like to do is to add a popup window with URLs for access behind my VPN.

Can someone direct me on how to make this work?

T.I.A

mwandelaar
OpenVPN Super User
Posts: 219
Joined: Mon Nov 23, 2009 8:24 pm

Re: Post VPN Login actions

Post by mwandelaar » Fri Mar 29, 2013 7:10 am

Great you are loving OpenVPN.

After initialisation you can run a script to to something, in your case it could be creating a pop-up:

Code: Select all

--up cmd
Run command cmd after successful TUN/TAP device open (pre --user UID change).

cmd consists of a path to script (or executable program), optionally followed by arguments. The path and arguments may be single-  or  double-quoted  and/or escaped using a backslash, and should be separated by one or more spaces.
Be aware you need to set

Code: Select all

script-security=2
to make this work.

nappy_d
OpenVpn Newbie
Posts: 2
Joined: Fri Mar 29, 2013 4:22 am

Re: Post VPN Login actions

Post by nappy_d » Sat Mar 30, 2013 1:18 pm

Thanks for the reply, but have some really silly questions :oops: ,
- which file do I need to make those changes in
- at what line(s)
- in which directory

mwandelaar
OpenVPN Super User
Posts: 219
Joined: Mon Nov 23, 2009 8:24 pm

Re: Post VPN Login actions

Post by mwandelaar » Sat Mar 30, 2013 4:16 pm

nappy_d wrote: - which file do I need to make those changes in
the client-configfile for openvpn
- at what line(s)
The end of the file should be fine
- in which directory
I shoud guess the place where it is right now.
If you are completing the "--up <script>" you obviously use the full path to the script which shows the pop-up.

Post Reply