System libraries that need to be installed:
apt-get install gcc-multilib
There are a few Ruby gems that will need to be installed to make the Rake tasks work:
gem install rake gem install httpclient gem install selenium-webdriver gem install highline
- Visit the VPN site with a browser the normal way. Since you are most likely using a 64bit OS it won’t work, but it does download the required files to $HOME/.juniper_networks
- Take note of the title pages for:
- the site where you enter your credentials.
- the site after you are logged in.
- Take note of the title pages for:
- You can now logout of the VPN site
- Make the binary that we will use to automate the login
- rake makebin
- Create the config file using the title pages you took note of in step 1. There is a config.yml.example you can look at if you want to hand create this file.
- rake makeconfig
- Done :D
Some configuration needs to be loaded in order for the Rake tasks to work. You need to create a config.yml file in the same directory as your Rakefile. You can also run the Rake task ‘makeconfig’ if you want to be prompted for the answers and have the config file created for you.
Here is an example config.yml file:
- – -
:ivehost: mypvnhost.example.org
:title_page1: MySite VPN Portal
:title_page2: Secure Access SSL VPN – Home
rake vpn_connect
Note: You won’t actually see an applet window like you do when you login with the browser on a 32bit client. There should however be a process running called “ncui”
rake vpn_disconnect