Forum Discussion
dogg_dogg_23774
Nimbostratus
Aug 31, 2005Network Access API samples
Hi,
I have a customer who wants to create a program to set up Network Access connection with FirePass, and he needs some sample codes for thier reference... I was looking around this site an...
Aug 31, 2005
I assume you are referring to a sample application that will establish a SSL-VPN connection to then internal network.
Here's the method flow you want to follow with some C pseudo-code:
public AxAPPCTRLLib.AxAppTunnelEx tunnel =
new AxAPPCTRLLib.AxAppTunnelEx();
private APPCTRLLib.UPropertyArray m_favorites = null;
connect()
{
tunnel.OpenSession(m_hostname, m_port, m_username, m_password);
}
private void tunnel_OnOpenSession
(
object sender,
AxAPPCTRLLib._IAppTunnelEventsEx_OnOpenSessionEvent e
)
{
tunnel.GetFavorites("VPN");
}
void tunnel_OnGetFavorites
(
object sender,
AxAPPCTRLLib._IAppTunnelEventsEx_OnGetFavoritesEvent e
)
{
m_favorites = e.pFavoritesBag;
for(int i=0; i {
m_vpnName = m_favorites.get_Name(i);
tunnel.OpenByName("VPN", m_vpnName);
break;
}
}
I've just uploaded a Win32 Tray Icon applet to CodeShare (Click here) that will illustrate these methods. There isn't much error detection and it hasn't been through QA here so I'll leave it as an unsupported app for now. You will need the FP-SDK (specifically the FP Win32 Control) available from the F5 Downloads (Click here) section of this site to compile it.
Enjoy and feel free to enhance it!
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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