PitifulProgrammer has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks

Here is a new question that came up recently.

For a specific task, I need to use a VPN Client, after logging on to the client, I need to connect to a remote server. For both logons password and user name are provided

I was wondering how one could connect to a VPN-client and using that logon to connect to a server. Or maybe there is a handy module that I have not come across

I tried it with WWW:Mechanize, bit could not logon. I coud not find further information about this particular logon-scenario either

This is what I tried to do

my $server = qw[host]; my $username = "abc"; my $password = "123"; my $mech = WWW::Mechanize->new(); $mech -> credentials( $username, $password ); $mech -> get( $server ) or die "Unable to connect";

Thanks a mil in advance for your comments

Replies are listed 'Best First'.
Re: Logging on to VPN and then to remote server
by davis (Vicar) on Aug 27, 2014 at 15:13 UTC

    You'd be better off avoiding the web interface for VPN connections entirely. Which VPN is it? I.e. what client does it actually use?


    davis

      Dear davis

      Thank you for getting in touch. I hope I can answer your question.

      The info says that it is Cisco VPN Client Version 5.0.07.0240

      Please let me know if you need more information

      Thanks a mil

      Kind regards

      C.