Giter Club home page Giter Club logo

psproxy's Introduction

psproxy

A simple way to toggle the proxy settings for Pulse Secure VPN.

This utility was created to solve the problem of Charles Proxy(v3.10.2) not working when connected to a VPN using Pulse Secure(v5.2.5) on Mac OS X (v10.10.5).

This tool is not intended to work on operating systems other than Mac OS X, and has only been tested with the configuration above.

A notable change is that v2.x of this tool now supports the newer version of Pulse Secure. Install v1.x if you have the older Junos Pulse Secure.

Install

Install the latest package globally (Current Pulse Secure):

npm i -g psproxy

Install v1.x globally (Older Junos Pulse Secure):

npm i -g psproxy@1

Usage

Before executing this utility, make sure the following is in order

  1. Pulse Secure is securely connected to your VPN
  2. Your proxy (ie. Charles) is running

Apply the current proxy settings to Pulse Secure:

sudo psproxy on

Remove the current proxy settings from Pulse Secure:

sudo psproxy off

Troubleshooting

If you see one of the following error messages, follow the provided instructions to resolve the issue.

Command Line:

  • No such key

    • Pulse Secure must be both running and securely connected to the VPN
    • Use v1.x of this tool with Junos Pulse Secure
    • Use v2.x of this tool with Pulse Secure
  • Permission denied

    • Admin privileges are required, use sudo.

Browser:

  • Unable to connect to the proxy server (ERR_PROXY_CONNECTION_FAILED)
    • You closed your proxy (ie. Charles). Either restart your proxy or execute sudo psproxy off

How Does it Work?

scutil is used to apply proxy settings to Pulse Secure.

View the bin/psproxy.sh file for the specifics.

References

  1. GitHub - mivasi/CharlesJuniperVPN

psproxy's People

Contributors

majgis avatar baens avatar

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.