Connecting to SBU Computer Science Palo Alto Network GlobalProtect Gateway from Ubuntu

The following documentation is based on Ubuntu 16.04.3 LTS

  • Install the vpnc package on your system:

sudo apt-get install vpnc
$ sudo apt-get install vpnc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  iproute vpnc-scripts
Suggested packages:
  dnsmasq openssh-server
The following NEW packages will be installed:
  iproute vpnc vpnc-scripts
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
Need to get 90.7 kB of archives.
After this operation, 294 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 xenial/universe amd64 vpnc-scripts all 0.1~git20150318-1 [12.3 kB]
Get:2 xenial/universe amd64 vpnc amd64 0.5.3r550-2build1 [76.0 kB]
Get:3 xenial-updates/main amd64 iproute all 1:4.3.0-1ubuntu3.16.04.3 [2,430 B]
Fetched 90.7 kB in 0s (1,038 kB/s)
Selecting previously unselected package vpnc-scripts.
(Reading database ... 211364 files and directories currently installed.)
Preparing to unpack .../vpnc-scripts_0.1~git20150318-1_all.deb ...
Unpacking vpnc-scripts (0.1~git20150318-1) ...
Selecting previously unselected package vpnc.
Preparing to unpack .../vpnc_0.5.3r550-2build1_amd64.deb ...
Unpacking vpnc (0.5.3r550-2build1) ...
Selecting previously unselected package iproute.
Preparing to unpack .../iproute_1%3a4.3.0-1ubuntu3.16.04.3_all.deb ...
Unpacking iproute (1:4.3.0-1ubuntu3.16.04.3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up vpnc-scripts (0.1~git20150318-1) ...
Setting up vpnc (0.5.3r550-2build1) ...
Setting up iproute (1:4.3.0-1ubuntu3.16.04.3) ...

  • Connect to CS vpn. You will be prompted for 2 sets of credentials.
    IPsec ID: cs_mobile
    IPSec secret: mobile Use your Computer Science Active Directory user ID and password

Execute vpnc:
sudo vpnc
Enter IPSec gateway address: 
Enter IPSec ID for cs_mobile
Enter IPSec secret for cs_mobile [at]
Enter username for cs\{your CS Active Directory user ID}
Enter password for cs\
VPNC started in background (pid: 26186)...

  • Verify your VPN connection. The tun0 interface information shows your CS VPN IP address provided by the Palo Alto Global Protect Gateway.

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:  P-t-P:  Mask:
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:8446 (8.4 KB)  TX bytes:1980 (1.9 KB)

  • Disconnecting VPN connection:

sudo vpnc-disconnect