Skip to content

macntech/winstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ–ฅ๏ธ Winstart

This is a simple bash file to automatically connect to an OpenVPN server and mount shared drives. This little script could be used in company or private environment to simplify the startup.

โœจ How it works

You can define as many mount points as you like by using the array provided under NAS Drives. The script will check in several ping routines if the internal host is available and if yes, it will mount the drives or if not, connect to VPN first. In this way you can use the script at home / office AND remote. Have fun!

Sample

๐Ÿ”ง Configuration

You need to configure the following things to make the script work

  • Install OpenVPN GUI (Community Edition) and install profile
  • Setup SMB / share user with access to requested drives/folders (password without special characters)
  • Set Variables in the script to match your confirguration

๐Ÿ’Ž Credits

The script uses the ANSI snippet from mlocati to make the terminal more colorful ๐ŸŒˆ. Thanks for that.

About

A simple bash start script to connect VPN and shared drives

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published