Commit Graph

20 Commits

Author SHA1 Message Date
phobos
c48d727f6c Phone pages: download buttons — Android PhobosWG APK (self-hosted /app/), iOS WireGuard App Store; installer nginx /app/ 2026-05-30 14:41:01 +03:00
phobos
b37b4cc1a3 README: public docs — human description, features, screenshots section, update/rollback, troubleshooting table 2026-05-30 14:33:22 +03:00
phobos
9e1144d310 Versioning: VERSION file, phobos-update (update/rollback), panel version+update UI v1.0.0 2026-05-30 14:29:50 +03:00
phobos
54867442ae Phone clients: panel generates phobos:// link + QR (Android) and plain WG + QR (iOS); installer qrcode dep + ALLOW_PLAIN_WG option 2026-05-30 14:25:35 +03:00
phobos
87882b0156 Footer: detailed authorship (who made what + whose support); new Telegram link 2026-05-30 14:09:59 +03:00
phobos
95eb17a84a Support links: add Ozon (author) + WireGuard Easy/Emile Nijssen credit; full footer chain 2026-05-30 14:07:24 +03:00
phobos
01c9baab0e Add GitHub Sponsor button (FUNDING.yml -> Boosty) 2026-05-30 14:02:35 +03:00
phobos
6752e61b1e Add support links (author + upstream Phobos/wg-obfuscator) to README + panel footer 2026-05-30 14:01:48 +03:00
phobos
d5313d3572 secondary-setup: fetch agent api.py (with /api/router-config); README turnkey 2026-05-30 13:47:14 +03:00
phobos
8113fb190a install.sh: set -e safe watchdog cron install 2026-05-30 13:44:33 +03:00
phobos
dc09185afd install.sh: optional GH_TOKEN for private-repo fetch 2026-05-30 13:41:46 +03:00
phobos
fff45ca342 turnkey installer: full primary stack one-command + session improvements
- install.sh: rewritten as self-contained turnkey primary installer (deps,
  wg-obfuscator from Ground-Zerro, wg0, obfuscator services, Phobos repo +
  PCA overlay patches, web panel, nginx, router watchdog).
- app.py: current panel (RU/EN, tunnel-pull config endpoint, fan-out, load-aware
  rebalance, online-anywhere status, '?' help).
- overlay/: patched onboarding scripts (phobos-client.sh 403 fix,
  install-router.sh.template tunnel-pull+cron+client_id, router-configure-wireguard
  public WG, phobos-pull.sh tunnel-first).
- server/: phobos-health.sh (self-heal+apply-server), phobos-pull.sh,
  phobos-router-watchdog.py, api.py (agent + /api/router-config).
2026-05-30 13:39:49 +03:00
Андрей Бобырев
5badb15d75 feat: safety checks + backup + uninstall for secondary-setup.sh
Pre-flight checks before installation:
- Detect existing WireGuard, Phobos clients, tokens, server.env
- Check port conflicts (obfuscator ports, 51820, 8444)
- Check running conflicting services
- Pause with warning count if issues found

Safety during install:
- Auto-backup existing configs to /opt/Phobos/backup/TIMESTAMP/
- Preserve existing wg0.conf if found (reuse keys)
- Skip obfuscator binary download if already installed

Clean uninstall script:
- /opt/Phobos/server/phobos-secondary-uninstall.sh
- Stops all services, removes configs and systemd units
- Preserves backup directory
- Removes iptables rules

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-29 00:03:19 +03:00
Андрей Бобырев
ba5a9deeb6 feat: random 5-digit port for panel on install
Panel now gets a random port (10000-59999) instead of fixed 8443.
Harder to find via port scanning, avoids conflicts with existing services.
Port saved to /opt/phobos-panel/.port for reference.
Override with PANEL_PORT=xxxxx env var.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-28 23:53:15 +03:00
Андрей Бобырев
a9f175d564 ui: add descriptions to servers/labels pages, improve delete buttons
- Servers page: descriptions for API key, VPN servers table, secondary setup
- Labels page: explain what labels do and where they appear
- Delete buttons: show "Удалить" text instead of just ✕, add confirm dialogs
- Fix duplicate nav link on servers page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-28 23:46:25 +03:00
Андрей Бобырев
0e2a194f43 chore: update obfuscator ports to stealth values (2083, 5443, 993)
Ports 51821-51823 look like WireGuard to port scanners.
New ports mimic cPanel/HTTPS/IMAPS — less suspicious.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-28 23:44:17 +03:00
Андрей Бобырев
4f1fca5222 feat: multi-server failover, health monitor, port hopping
- client/phobos-health.sh: router-side health monitor + auto-heal
  - Cron every 60s, checks WG handshake age
  - Auto-restart obfuscator (3min), WireGuard (5min)
  - Port hopping (10min), server failover (15min)
  - Auto-return to primary when recovered
- client/failover.conf.example: multi-server config template
- server/secondary-setup.sh: one-command secondary server deploy
  - WG + multi-port obfuscator + mini-API on :8444
  - Auto-registers with main server
- Panel: new "Серверы" page
  - Add/remove secondary servers
  - Health check, peer sync, fetch info
  - API key management
  - Secondary server install command

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-28 23:28:34 +03:00
Андрей Бобырев
c35f5464ab fix: show real install tokens, use wget for Keenetic routers
- Settings page reads /opt/Phobos/tokens/tokens.json for real install commands
- Uses wget (available on BusyBox/Keenetic) instead of curl in displayed commands
- Shows client name and token expiry for each install command

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-28 23:15:41 +03:00
Андрей Бобырев
afe5c39649 fix: remove personal donation links and author data from panel and README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-28 23:12:45 +03:00
Андрей Бобырев
e11451b984 feat: PCA Phobos — web panel for obfuscated WireGuard VPN
Flask web panel for Phobos (wg-obfuscator + WireGuard):
- Active sessions monitoring (wg show)
- Client management (add/remove via phobos-client.sh)
- Labels by Real IP
- Subscription expiry with auto-kick
- Telegram notifications (connect/disconnect/expiry)
- One-command installer
- Dark theme UI

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-28 23:06:08 +03:00