Forum Discussion

dogg_dogg_23774's avatar
dogg_dogg_23774
Icon for Nimbostratus rankNimbostratus
Aug 31, 2005

Network 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 and found some on AppTunnel, but not on Network Access....

 

Much appreciated if anyone could advise where I can find those documentations or samples...

 

 

Thanks,

 

  • 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
  • Thanks, this should help...

     

    Do you have reference manual that we can use to manipulate SSL-VPN connection with FirePass? It looks like the one in SDK package have info only for AppTunnel, but not for Network Access(SSL-VPN) or Terminal Server...

     

     

    regards,

     

     

  • The SDK contains the documentation for all of the supported interfaces in the Client SDK. In fact, that is the reference I used when writing that sample application previously mentioned and all methods used are documented in the SDK.

     

     

    Most of the process is the same for each of the types of connections (ie. you call GetFavorites(string type) for both APPTUNNEL and VPN). Look at the documentation for the GetFavorites() method. You then call one of the Open commands (depending on the information you have) specifying either APPTUNNEL or VPN.

     

     

    Currently there is no support for Terminal Server.

     

     

    -Joe