Pulse secure для linux

DannyQuah / 2020.06-D.Quah-Pulse-Secure-Client-on-Ubuntu-Linux.md

Pulse Secure Client is a VPN client that allows secure connection to a Pulse Connect Secure SSL VPN gateway. Many universities use that latter for faculty, staff, and student access to their computer systems. However, because Linux comes in many different flavors, the standard Pulse Secure Client installer does not always run to completion. (For one, UWO.ca suggests «PulseSecure’s understanding of Linux package managers and distributions in general seems very limited.») The user is then either forced to use a Windows machine, somehow, or fail VPN access when traveling with their Linux notebook.

This Gist describes the steps I took to install Pulse Secure Client on my Ubuntu-based Linux machines, including a Pixelbook running GalliumOS 3.1 and Dell desktops running Ubuntu 18.04 and 20.04. Other writeups elsewhere that I’ve looked at describe the same problems I encountered, but were either out-dated, overly localised, or did not provide me the critical information I needed to complete the job.

The Pulse Secure Client itself is typically provided somewhere on an organisation’s file servers. Retrieve that (sometimes that needs to be unzipped or otherwise extracted, so I don’t assume being able to get it using just a wget or curl ). In my case, I retrieved onto my local disk from my university’s servers the file pulse-9.1R5.x86_64.deb for my 64-bit machines. Of course, by when this Gist is read, the latest version will almost surely have different numbers, but the filename will likely retain still some resemblance.

Start to install Pulse Secure Client with:

sudo dpkg --install pulse-9.1R5.x86_64.deb 

If that works with no error messages, you’re done.

Typically, however, the script detects missing dependencies and asks that the user execute:

sudo /usr/local/pulse/PulseClient_x86_64.sh install_dependency_packages 

Go ahead and try that. Again, if no error messages appear, then you’re good to go.

However, all my systems at this point show some combination of errors including:

cannot remove /usr/local/pulse/libwebp.so.6: No such file or directory 

and references to unary operators expected (when, for instance, the shell script is unable to find a correct OS/release label and replaces it instead with just a blank).

Читайте также:  Linux delete dir and files

From here, I took advice from UWO.ca and Tribuga, but updated and modified to run the following by hand. The critical difference in the below is whether libwebkitgtk-1.0 is available on your system (GalliumOS 3.1; Ubuntu 18.04; and possibly others) or is not (Ubuntu 20.04 and possibly others).

sudo apt install libproxy1-plugin-webkit sudo apt install libwebkitgtk-1.0 
sudo apt install lib32z1 sudo apt install libwebkitgtk-1.0 sudo apt install libproxy1v5 sudo apt install libproxy1-plugin-gsettings sudo apt install libproxy1-plugin-webkit sudo apt install libdconf1 sudo apt install dconf-gsettings-backend 

(with some systems asserting that some of what I was attempting to install was already present and up to date; this is of course without harm).

Whichever of 1.-2. above works for you, however, Pulse Secure Client is now available.

You’ll find that an entry has been created in your App drawer or menu with the appropriate name, and containing:

/usr/bin/env LD_LIBRARY_PATH=/usr/local/pulse:$LD_LIBRARY_PATH /usr/local/pulse/pulseUi 

Run that. Alternatively, doing:

LD_LIBRARY_PATH=/usr/local/pulse:$LD_LIBRARY_PATH /usr/local/pulse/pulseUi & 

should give you the VPN sign-on screen, from where you can now fill in your organisation’s VPN specifics.

  1. On Ubuntu 20.04, however, neither of the above works. The key problem is libwebkitgtk-1.0.so.0 is not in Ubuntu 20.04. A number of solutions suggest ways to install that library nonetheless. These proposals range from temporarily telling your system it’s an 18.04 machine; to pointing to 18.04 repositories, and then switching back; and so on (e.g., Pulse-Secure-42721).

I prefer not to inter-mingle libraries on my machine. So I chose to install what was needed, not in my general load library locations, but instead only in a subfolder of /usr/local/pulse , and then telling PulseSecure to look there. To do this I followed Tribuga:

cd /usr/local/pulse sudo mkdir debs extra # Get needed packages and store them in the debs/ folder cd ./debs sudo wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu60_60.2-3ubuntu3_amd64.deb sudo wget http://archive.ubuntu.com/ubuntu/pool/universe/w/webkitgtk/libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb sudo wget http://archive.ubuntu.com/ubuntu/pool/universe/w/webkitgtk/libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb # Extract those just downloaded into the extra/ folder cd .. sudo dpkg -x debs/libicu60_60.2-3ubuntu3_amd64.deb ./extra sudo dpkg -x debs/libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb ./extra sudo dpkg -x debs/libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb ./extra # adjust your load library path export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pulse/extra/usr/lib/x86_64-linux-gnu/ 

My system already had libenchant1c2a . If yours does not, install it with

sudo apt install libenchant1c2a 

You’re now good to go. However, again as in 1.-2. above, depending on how you launch PulseSecure pulseUi generally, you might want to make your launch script aware of these new load libraries. The leading way of doing this by adjusting the invocation line. On some machines, I right-click PulseSecure in my Apps Launcher and Edit Application to change the command line to

/usr/bin/env LD_LIBRARY_PATH=/usr/local/pulse/extra/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH /usr/local/pulse/pulseUi 

On Ubuntu 20.04 more generally, navigate to /usr/share/applications , and sudo edit pulseUi.desktop so its Exec line is, as above,

/usr/bin/env LD_LIBRARY_PATH=/usr/local/pulse/extra/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH /usr/local/pulse/pulseUi 

Источник

Читайте также:  Configure openvpn server in linux

colematt / Using-Pulse-Secure-Client.md

Binghamton University ITS has finally released a package that just works with modern Debian/Ubuntu/PopOS. You don’t need to do any of this. I’m only keeping the Gist on a just-in-case basis.

Using Pulse Secure UI Client 9.1 with Ubuntu

This guide was tested on Ubuntu 20.04.1 LTS. It assumes the installing user has sudo privileges.

  1. Visit ssl.binghamton.edu.
  2. Click «Pulse Secure for Linux» -> «Ubuntu_Debian» -> «ps-pulse-linux9.1r5..>»
  3. Download the file to a known location, e.g. ~/Downloads
  4. Open a terminal and execute these commands to install the client software:
cd ~/Downloads dpkg -i ps-pulse-linux-9.1r5.0-b151-ubuntu-debian-64-bit-installer.deb
sudo apt update sudo apt install libc6 libgtk2.0-0 libproxy1v5 libproxy1-plugin-gsettings libproxy1-plugin-webkit libdconf1 dconf-gsettings-backend libenchant1c2a libcanberra-gtk-module sudo mkdir -p /usr/local/pulse/extra /usr/local/pulse/debs cd /usr/local/pulse/debs sudo wget http://archive.ubuntu.com/ubuntu/pool/universe/w/webkitgtk/libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb sudo wget http://archive.ubuntu.com/ubuntu/pool/universe/w/webkitgtk/libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb sudo wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu60_60.2-3ubuntu3_amd64.deb cd /usr/local/pulse/extra sudo dpkg -x /usr/local/pulse/debs/libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb . sudo dpkg -x /usr/local/pulse/debs/libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb . sudo dpkg -x /usr/local/pulse/debs/libicu60_60.2-3ubuntu3_amd64.deb .
echo -e "\nPulse Secure\nexport LD_LIBRARY_PATH\=\$LD_LIBRARY_PATH:/usr/local/pulse/extra/usr/lib/x86_64-linux-gnu/" >> ~/.bashrc . ~/.bashrc
sudo chmod a+wr ~/.pulse_secure/pulse
  1. Modify the existing desktop launcher file at /usr/share/applications/pulseUi.desktop so that the execution line reads Exec=/usr/bin/env LD_LIBRARY_PATH\=/usr/local/pulse/extra/usr/lib/x86_64-linux-gnu:\$LD_LIBRARY_PATH /usr/local/pulse/pulseUi
  2. Sanity check that you can launch the Pulse Secure GUI from the shortcuts.
  1. Add a connection for ssl.binghamton.edu . You will be sent to a VPN login page. Log in with your PODS credentials.
  2. Keep this application open until you no longer need a VPN connection, or click «Disconnect».

Using Pulse Secure Client 9.0 with Ubuntu

Warning: This is outdated information. This guide was tested on Ubuntu 18.04.3 LTS, Ubuntu 19.04 and 20.04.1 LTS. It assumes the installing user has sudo privileges.

  1. Visit ssl.binghamton.edu.
  2. Click «Pulse Secure for Linux» -> «Ubuntu_Debian/» -> «pulse-9.0R3.x86_64.deb»
  3. Download the file to a known location, e.g. ~/Downloads
  4. Open a terminal and execute these commands:
cd ~/Downloads sudo apt update sudo apt install libc6‐i386 lib32z1 dpkg -i pulse-9.0R3.x86_64.deb
  • After the VPN tunnel is creates successfully, the terminal window will remain blank and must remain open.
  • If the terminal window is closed, this will close the VPN connection.
  • $PODS_USER is set to your PODS account username, or specified in the CLI manually.
    • echo -e «\n#Pulse Secure VPN\nexport PODS_USER\=mcole8» >> ~/.bashrc for example
    /usr/local/pulse/pulsesvc -h ssl.binghamton.edu -u $PODS_USER -I -r "PODS Domain Users" -U ssl.binghamton.edu

    Источник

    Pulse secure для linux

    The usage information is also available in the readme file inside the package.

    The following command gives the usage of the various options of the command line client:

    The PulseClient.sh script will install the dependent packages (glibc, zlib, nss) if these packages are not already installed.

    Prerequisites to Run the Command Line Client

    • Pulse Connect Secure (PCS, formerly SA/IVE) IP address or hostname
    • VPN user name and password
    • PCS certificate (Contact PCS administrator to get certificate in DER format)
    • PCS sign-in URL
    • Proxy details, if applicable, (IP address/hostname, proxy username and password)

    Launch the Command Line Client (initial launch OR when connecting to a new server)

    Use the following command format to launch the command line client:

    vpn.pulsesecure.net -u user1 -p PulseSecure

    -U https://vpn.pulsesecure.net -f

    • The PulseClient.sh arguments are stored internally. These arguments will be reused later, if no arguments are provided.
    • Arguments storage will be overwritten if new set of arguments are provided to the script.
    • In case the user does not want the password to be revealed in the terminal history, this argument can be left out. Then a prompt for password will appear.

    Launch the Command Line Client with Proxy

    Use the following command format to launch the command line client with proxy:

    -a (-I for interactive proxy

    Note : In case you do not want to reveal the proxy password in the command line arguments, then use -I (capital i) parameter instead of the proxy password parameter. Then a prompt for the proxy password appears.

    Note : System proxy details will be used by command line client if proxy details are not provided as arguments explicitly.

    Check the Status of the VPN Connection

    Run the following command to see the status of the VPN connection:

    Note : This command could take up to 30 seconds to reflect the current state of the Pulse client.

    Terminate the Command Line Client

    Run the following command to terminate the command line client:

    Источник

Оцените статью
Adblock
detector