Forum Discussion
Alexander_Jones
Nimbostratus
Apr 24, 2006auto init tunnel based on connectivity?
Is there any support in the win32client to actually force the tunnel if some criteria is true (in my case, machine is not present on internal network) to enforce policy that machine is only allowed to connect to internal network and never be present on the internet?
I would like some way to monitor connectivity to outer interface of the firepass and if this condition becomes true i want to kickstart a tunnel.
Has anyone here done anything like this before?
Hope im in the right forum asking,
/Alex
- This is really beyond the scope of the client control. What you are proposing could more than likely be done in several ways (a hidden program at startup, a system service, etc). There needs to be a controlling process to manage the policy you would like to enforce. You'll also have to determine if this is to be a manual process (client provides username/password) or automatic (where the credentials are hidden securely on the machine).
- Alexander_Jones
Nimbostratus
Thanks for the feedback Joe, I will investigate this further and most probably I will write my own then with some hooks on the nics to see when an interface is enabled and then run some connectivity checks to figure out if i want to start the client. - Rick_Stout_7736
Nimbostratus
Alex, - Alexander_Jones
Nimbostratus
We did this yes, but not within the f5 product api:s. Basically we coded a small app that registered with the NLA service to get updates when connectivity changes occur on the machine. Based on this and some custom logic here we trigger the app to start vpn. So this would be generic to any vpn solution really it has nothing to do with F5 only one demand and that is that you are able to start vpnclient in the way you want (this looks different in different software, some will allow a pass through auth based on a smartcard so its invisible to the user, others will pop up some sort of challenge, your mileage will vary). - Rick_Stout_7736
Nimbostratus
Thanks Alex. - Alexander_Jones
Nimbostratus
Its actually a two part solution, one service where basically all the logic etc is baked into, but since the vpnclient needs to be invoked as the logged on user thats done from something running as the logged on user I believe, at first this was a trayicon but since you already have 10000000 of those that was ditched later I think. I did not do the end result only the specification what was supposed to happen and some initial investigations if the solution was feasible at all - which it proved to be. - Rick_Stout_7736
Nimbostratus
Joe, in your response to Alex, you indicated that what he was trying to do could be done with a system service. Were you referring to the service initiating the tunnel, or just the extraneous logic (as Alex ultimately did)? - ejohnson_27643
Nimbostratus
We did something like this. We took the VB6 sample application and wrapped it in SRVANY to create the service. - Rick_Stout_7736
Nimbostratus
Ultimately, we did get this to work from a system service we wrote from scratch in .NET. The service monitors conditions and when certain conditions occur, it launches the VPN tunnel. Works even without a logged in user. Except for a problem with Vista which I will start a new thread on. - Alexander_Jones
Nimbostratus
Nice to see that others are doing pretty much the same as us then with success.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects