New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/alediator/vpn

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/alediator/vpn

  • v0.0.0-20190715070024-07ee767631bf
  • Source
  • Go
  • Socket score

Version published
Created
Source

VPN connection helper

This is a command build just for learn a bit of golang that depends on openconnect and any post script you want to execute it before.

About

Bear in mind that this is a first language project just to play a bit with golang and cobra for the cli. Generating more than 4MB binary for something that you would do it with a simple bash script is too much, by the way it works!

On the other hand, thanks to CodelyTV and friendsofgo for introducing me to golang.

Requirements

  • Openconnect. This is a simple wrapper to use openconnect, so you might have installed it as well as any additional dependency to connect your VPN
  • In addition, you could install vpn-slice and use it as part of your setup with the post script information VPN_POST_SCRIPT

How to run it

  1. Download the release binary
  2. Make it executable: chmod +x vpn
  3. Copy it to the place you want to use it (f.i. /usr/local/bin)
  4. Execute it with: vpn connect -h

And follow the instructions:

> vpn connect -h
Helper to connect to a VPN through openconnect. 
Note that this is able to read `.env` files (by default in `/home/$USER/.vpn`)

Usage:
  vpn-cli connect [flags]

Flags:
  -a, --flags string      additional flags for openconnect - VPN_ADDITIONAL_FLAGS at .env
  -h, --help              help for connect
  -v, --host string       host to use for the vpn - VPN_HOST at .env
  -p, --password string   static password - VPN_STATIC_PASSWORD at .env
  -s, --script string     script to execute - VPN_POST_SCRIPT at .env
  -t, --token string      dynamic token key
  -u, --user string       user to use - VPN_USER at .env

If you want to save part of the configuration, just get the .env.dist file, edit it and save it at /home/$USER/.vpn

FAQs

Package last updated on 15 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc