Giter VIP home page Giter VIP logo

pytunl's Introduction

PYtunl

NOTE: PYtunl is no longer maintained. The Go version of this program can be used instead: https://github.com/cghdev/gotunl-vpn

PYtunl is a command line client for Pritunl written in Python.

At the moment is only supported in MacOS.

Usage:

usage: vpn.py [-h] [-l] [-c <profile>] [-d <profile>] [-o <format>]

Pritunl command line client.

optional arguments:
  -h, --help                            show this help message and exit
  -l, --list                            List connections.
  -c <profile>, --connect <profile>     Connects to <profile>.
  -d <profile>, --disconnect <profile>  Disconnects <profile> or "all".
  -o <format>, --output <format>        Selects output format for listing
                                        connections (json, table). Default
                                        "table".

Examples:

$ ./vpn.py -l
+------+------------------------+--------------+
|   ID | Name                   | Status       |
|------+------------------------+--------------|
|    1 | US VPN                 | Disconnected |
|    2 | UK VPN                 | Disconnected |
|    3 | Netherlands VPN        | Disconnected |
|    4 | Hong Kong VPN          | Disconnected |
|    5 | Test VPN               | Disconnected |
+------+------------------------+--------------+
$ ./vpn.py -c 3
$ ./vpn.py --connect "Test VPN"
Enter the username: user1
Enter the password:
$ ./vpn.py --list
+------+------------------------+--------------+
|   ID | Name                   | Status       |
|------+------------------------+--------------|
|    1 | US VPN                 | Disconnected |
|    2 | UK VPN                 | Disconnected |
|    3 | Netherlands VPN        | Connected    |
|    4 | Hong Kong VPN          | Disconnected |
|    5 | Test VPN               | Connected    |
+------+------------------------+--------------+
$ ./vpn.py -d all

pytunl's People

Contributors

cghdev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

xman1980

pytunl's Issues

Does not support Pritunl 1.0.2226.23

After an upgrade, pritunl-service does not listen to port 9770 anymore

~ $ sudo lsof -p 2107
COMMAND    PID USER   FD     TYPE             DEVICE SIZE/OFF                NODE NAME
pritunl-s 2107 root  cwd      DIR                1,4      704                   2 /
pritunl-s 2107 root  txt      REG                1,4 16321600            12975074 /Applications/Pritunl.app/Contents/Resources/pritunl-service
pritunl-s 2107 root  txt      REG                1,4  1558432 1152921500311885584 /usr/lib/dyld
pritunl-s 2107 root    0r     CHR                3,2      0t0                 313 /dev/null
pritunl-s 2107 root    1u     CHR                3,2      0t0                 313 /dev/null
pritunl-s 2107 root    2u     CHR                3,2    0t149                 313 /dev/null
pritunl-s 2107 root    3     PIPE 0x42988fc495beccb3    16384                     ->0xd5771435255d2bb9
pritunl-s 2107 root    4     PIPE 0xd5771435255d2bb9    16384                     ->0x42988fc495beccb3
pritunl-s 2107 root    5r     CHR               17,1   0t4096                 589 /dev/urandom
pritunl-s 2107 root    6u  KQUEUE                                                 count=0, state=0xa
pritunl-s 2107 root    7u    unix 0xd67d4976088ab16d      0t0                     /var/run/pritunl.sock
pritunl-s 2107 root    8u    unix 0xd67d4976088abf7d      0t0                     /var/run/pritunl.sock
pritunl-s 2107 root    9u    unix 0xd67d4976088aabf5      0t0                     /var/run/pritunl.sock

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.