Ha proxy is a script designed to streamline the configuration and management of proxy tunnels, leveraging HA Tunnel Plus for services like HTTP, Git, VSCode, and SSH.
- Make sure to set the required environment variables in the
$HOME/.ha_env
file. - Ensure that the necessary dependencies
akory
,xxd
,jq
,git
,xclip
,corkscrew
,gedit
andbat
are installed.
Disclaimer: This is provided for informational purposes only. Use this script responsibly and at your own risk. The author is not responsible for any misuse or damage caused.
Run the following command to install ha-proxy (Linux only):
curl https://raw.githubusercontent.com/RajaRakoto/ha-proxy/master/setup > setup && chmod +x setup && ./setup
Uninstall ha-proxy (Linux only):
sudo rm -r "$HOME/.ha_env" /usr/local/bin/ha-proxy
π Start proxy configuration: Starts automatic proxy configuration for HTTP, Git, VSCode, and SSH.
ha-proxy --start
π Stop proxy configuration: Unsets all proxy configurations.
ha-proxy --stop
π Check current proxy status: Displays the current status of proxy configurations.
ha-proxy --status
π Restart proxy configuration: Restarts proxy configuration by stopping and then starting it.
ha-proxy --restart
π Copy proxy information: Copies proxy information to the clipboard.
ha-proxy --getProxy
π Copy encoded proxy information: Copies encoded proxy information to the clipboard.
ha-proxy --getProxyEncoded
π Copy proxy server information: Copies proxy server information to the clipboard.
ha-proxy --getProxyServer
π Copy encoded proxy server information: Copies encoded proxy server information to the clipboard.
ha-proxy --getProxyServerEncoded
π Check script: Checks for required variables and dependencies.
ha-proxy --check
π Set env variables: Sets environment variables using a text editor.
ha-proxy --env
π Generate new SSH key: Generates a new SSH (private|public) key.
ha-proxy --ssh
π Fix env file: Repair .ha_env file by regenerating it again in your home.
ha-proxy --fix
π Display script version: Display the current version of ha-proxy.
ha-proxy --version # or -v
π Display help message: Displays a help message with usage examples.
ha-proxy --help # or -h