Socket
Socket
Sign inDemoInstall

lucky-vpn

Package Overview
Dependencies
23
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lucky-vpn

Windows-friendly utilities that generate automation scripts for VPN connection


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Lucky VPN

Heavily inspired by chnroutes.

Most features are currently Windows only, you may use lvpn generate -u to generate routes.txt that contains networks allocated for China though.

Installation

npm install -g lucky-vpn

Usage

lvpn generate "VPN Connection Name"

.\vpn-up.bat
.\vpn-down.bat

# Try following commands for more usage information
lvpn generate --help
lvpn route --help

Note that vpn-up.bat will automatically add routes, but vpn-down.bat won't delete routes added. Run .\route-delete.bat manually if you wish.

It is recommanded to leave it there though, as it takes some time to add or remove.

Phonebook

If you have a .pbk file from your VPN provider, you may try -b option.

DNS Overriding

If you want to override DNS specified by the VPN provider, you may try -d option. If there are multiple DNS servers to specify, use , to separate.

Tips

  • Use Lucky VPN along with Lucky DNS (the goal is similar to ChinaDNS but it's Windows-friendly) to get even better experience.

  • Reduce the number of routes generated by -s option. For example, -s 2048 to filter routes with network length shorter than 2048.

  • Add a task to Task Scheduler to run vpn-up.bat or route-add.bat on network connection.

    Check out the task template you may import to Task Scheduler.

Build

npm run build

License

MIT License.

Keywords

FAQs

Last updated on 04 Mar 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc