Skip to content

zCanek/hillstonux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hillstonux

A linux CLI implementation for Hillstone Secure Connect VPN Client

Changes from original hilldust

  • Uses AES-CBC as encryption algorithm instead of AES-CBC
  • Uses HMAC-MD5-96 authentication algorithm instead of HMAC-SHA1-96
  • Read configurations from an user-specified file
  • Process the route table returned from VPN server, and allow custom routes
  • Add a systemd service to startup the VPN at system startup
  • Use nmcli instead of iproute2 for network configuration
  • Fixes syntax deprecation errors on python 3.12+

Python dependencies

  • python 3
  • scapy (Python module)
  • cryptography (Python module)
  • nmcli

Installation

  1. Clone this repository:
git clone https://github.com/zCanek/hillstonux.git
  1. Create a virtual environment in python and get in
cd hillstonux
python -m venv .venv
source .venv/bin/activate
  1. Install python dependencies
pip install -r requirements.txt
  1. Modify config.json with your ip, port and credentials
{
    "server": "149.xx.xx.xx",
    "port": 0000,
    "user": "username",
    "pass": "password",
    "routes": [
        "10.6.0.0/24",
        "10.7.0.0/24"
    ]
}

Usage

sudo ./hillstonux -c config.json

It can also be started as a systemd service. An example service file is provided in systemd/hilldustWrapper.service. You may also use the install.py to configure the systemd service and start it automatically at system startup

sudo ./install.py -c config.json

About

CLI Hillstone Secure Connect VPN Client, supporting AES-CBC as encryption algorithm and HMAC-MD5-96 as authentication algorithm

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%