GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — peerharbor/longtail/README.md at main · equationofmathphysics/peerharbor

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
119 lines (83 loc) · 3.03 KB
/

README.md

Copy path

File metadata and controls

119 lines (83 loc) · 3.03 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

PeerHarbor

English | 中文

PeerHarbor is a lightweight, self-hosted WireGuard web admin panel. Give an AI assistant one sentence with your server address, let it prepare the install commands, then manage WireGuard devices from a browser.

PeerHarbor web admin dashboard

Features

  • AI one-sentence setup: ask AI to configure PeerHarbor for your server.
  • AI-assisted one-command install with deploy/bootstrap.sh.
  • Open source under the MIT License.
  • Lightweight Python/Flask web admin console.
  • WireGuard protocol underneath, compatible with standard WireGuard clients.
  • Add devices, scan QR codes, download .conf files, pause peers, grant admin access, and control trusted ports from the web UI.

AI Setup Prompt

Hands-on mode:

Please install and configure PeerHarbor for me. My server IP/domain is: ____.
After installation, give me the WireGuard QR code, the web admin URL, and the verification steps.

Command-only mode:

Please generate the commands to install PeerHarbor on my server. My server IP/domain is: ____.
Do not connect to my server. Only output the commands I need to run, remind me to allow udp/51820, and include how to open the web admin console.

Install

sudo apt update
sudo apt install -y git

sudo git clone https://github.com/equationofmathphysics/peerharbor.git /opt/longtail
cd /opt/longtail/longtail

sudo ./deploy/bootstrap.sh YOUR_SERVER_IP_OR_DOMAIN:51820 phone

bootstrap.sh installs dependencies, creates /etc/longtail/longtail.env, creates or reuses /etc/wireguard/wg0.conf, starts wg-quick@wg0 and longtail-web, and prints the first WireGuard QR code.

Allow the public WireGuard port in your cloud firewall or security group:

udp/51820

Web Admin

After scanning the QR code and turning on WireGuard, open:

http://10.66.0.1:51437/

From a computer outside the VPN, use an SSH tunnel:

ssh -L 51437:10.66.0.1:51437 user@your-server

Then open:

http://127.0.0.1:51437/

Verify

sudo systemctl status wg-quick@wg0 --no-pager
sudo systemctl status longtail-web --no-pager

Configuration

Main config file:

/etc/longtail/longtail.env

Common settings:

NET_TOOLS_SERVER_ENDPOINT=YOUR_SERVER_IP_OR_DOMAIN:51820
NET_TOOLS_WG_CONF=/etc/wireguard/wg0.conf
NET_TOOLS_WG_CIDR=10.66.0.0/24
NET_TOOLS_SERVER_VPN_IP=10.66.0.1
NET_TOOLS_CLIENT_ALLOWED_IPS=10.66.0.0/24
NET_TOOLS_ADMIN_IPS=127.0.0.1,::1,10.66.0.1
NET_TOOLS_BIND_HOST=10.66.0.1
NET_TOOLS_FIREWALL_ENABLED=1

Full examples are in deploy/longtail.env.example and deploy/examples/.

Security

  • Do not commit generated client configs, QR-code images, or /var/lib/longtail; they may contain private keys.
  • Do not expose the web admin console directly to the public internet.
  • Only udp/51820 needs to be public by default.
  • Keep admin access limited to localhost and trusted WireGuard devices.

License

Project-authored code is released under the MIT License.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.