Skip to content

ikogan/juniper-pulse-secure-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Juniper Pulse Secure VPN Script

This script is based on the experimental Juniper support from OpenConnect.

It's a simple script that uses Zenity to prompt the user for credentials and provide feedback, gksu to obtain root, and openconnect to make the connection.

The script was based on instructions at http://x123.net/junos-pulse-ubuntu-openconnect.html and was developed/tested on Ubuntu 14.04 with a Linux 4.2 kernel (compiled for driver support)

Linux MyBox 4.2.0-13-generic #15 SMP Wed Sep 30 21:41:44 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

Installing/Dependencies/Usage

The following packages must be installed in Ubuntu:

sudo apt-get install gksu zenity libssl-dev libxml2-dev vpnc-scripts

OpenConnect must be compiled from source for the experimental Juniper support:

wget ftp://ftp.infradead.org/pub/openconnect/openconnect-7.06.tar.gz
tar xzf openconnect-7.06.tar.gz
cd openconnect-7.06
./configure --with-vpnc-script=/usr/share/vpnc-scripts/vpnc-script
make
sudo make install

Finally, simply place this script somewhere and chmod +x it. Then you'll want to edit the script and change the VPN_URL variable at the top. Once it's there, you can use ./juniper-vpn-connect.sh start to start it and ./juniper-vpn-connect.sh stop to stop it.

Ideally, create a .desktop entry for this. http://askubuntu.com/questions/436891/create-a-desktop-file-that-opens-and-execute-a-command-in-a-terminal has some information on how to create these files though while the question asks how to run the script in a terminal, it's probably not necessary (or likely desirable) to do so for this script, there isn't much output. An example might be:

[Desktop Entry]
Version=1.0
Name=VPN Conection
Comment=Connect to the VPN
Exec=/home/${user}/juniper-pulse-secure-script/juniper-vpn-connect.sh start
Icon=network-vpn
Terminal=true 
Type=Application
Categories=Internet;

Place this file into ~/.local/share/applications/SSL VPN.desktop. Note that you'll probably need to create another icon to stop the VPN. That'll be fixed later.

Note: A good bit of output is sent to syslog.

About

Shell script for Ubuntu for connecting to Juniper's Pulse VPN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages