Home Projects Guides Blog Contact GitHub

VPN Interface Detector

A Bash script to identify your VPN network interface for easy configuration.

View on GitHub

Quick Install

Install the tool globally with a single command:

Installs to /usr/local/bin bash <(curl -sSL https://github.com/DD00031/vpn-detect/raw/refs/heads/main/install.sh)

Once installed, simply run vpn-detect in your terminal.

How it Works

Perfect for configuring VPN Binding in clients like qBittorrent, this script works by comparing your system state:

  1. Scans current network interfaces.
  2. Pauses and prompts you to connect to your VPN.
  3. Rescans interfaces after connection.
  4. Identifies the new interface created by the tunnel.

Manual Installation

Requirements

  • OS: Linux or macOS.
  • Dependencies: net-tools (usually pre-installed on macOS; requires `apt install` on Ubuntu).

Steps

1. Clone & Permissions git clone https://github.com/DD00031/vpn-detect.git cd vpn-detect chmod +x vpn-detect.sh
2. Run Locally ./vpn-detect.sh

License

Available under the GPL-3.0 license.