Giter Club home page Giter Club logo

paloalto-gsuite's Introduction

GlobalProtect for Linux (SAML authentication)

Description

This project allow Linux machines connect to VPN using openconnect with SAML authentication from G Suite.

Required

  • python3
  • openconnect
  • chromedriver

Fedora 32

Please do not use higher version of openconnect then 8.05 Add this line into the file /etc/dnf/dnf.conf

excludepkgs=openconnect-8.10

Now you can install openconnect

sudo dnf install openconnect

DebilUntu

apt-get install openconnect

Installation

First we have to install all dependence in Python3

pip3 install --user -r requirements.txt

Download latest version of chromedriver

https://chromedriver.chromium.org/downloads

Creating cache directory (this value should be set in gp-gsuite.conf)

mkdir ~/.azimo.gp

Configuration

Please edit file gp-gsuite.conf and change settings:

  • vpn_url if address change, by default https://vpn.azimo.com
  • username your gmail account, ex. [email protected]
  • password leave empty, I don't want know your password
  • gateway not used at this moment, by default Manual vpn.azimo.com
  • webdriver path to binnary chromedrive (at this moment we are using chromedrive in version 73)
  • webdriver_dir where all cookies should be saved, by default ~/.azimo.gp
  • openconnect_cmd if you don't have to use root privillages can be empty
  • prelogin_cookie if you already know prelogin_cookie you can skip cookie generation
  • openconnect_args extra parameters for openconnect
  • execute 1 or true to execute, 0 for debug only
  • debug 1 or true for debug variables
  • bug.nl 1 or true, newline work-around for openconnect
  • bug.username 1 or true, username work-around for openconnect

Usage

It's verrryyyyyy easy :)

./gp-gsuite.py <conf>

Example:

./gp-gsuite.py gp-gsuite.conf

Issues

  1. chromedrive cache (java kur12)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
  (Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Linux 5.0.5-200.fc29.x86_64 x86_64)

Solution:

rm -rf /tmp/.com.google.Chrome*

paloalto-gsuite's People

Contributors

bizonek27 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

paloalto-gsuite's Issues

cant connect ubuntu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.