Skip to content

v1.2.7

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Jun 21:40

P0rt vv1.2.7 - Enhanced Monitoring and Management

馃幆 New Features

Prometheus Metrics System

  • 25+ comprehensive metrics for connections, traffic, abuse, and security
  • Protected /metrics endpoint with HTTP Basic Authentication
  • Real-time tracking of SSH connections, HTTP requests, and WebSocket upgrades
  • Automatic metrics initialization and periodic gauge updates

Real-time SSH Client Notifications

  • Instant ban notifications sent to active SSH client consoles
  • Automatic connection termination with 5-second warning
  • Enhanced debug logging for troubleshooting notification delivery
  • Dual delivery mechanism via SSH channel and LogChannel

Emergency IP Management

  • New security unban <ip> command for immediate access recovery
  • Available in both CLI and command-line modes
  • API endpoint support for remote unbanning operations
  • Comprehensive cleanup of Redis ban keys and counters

Abuse Report Management

  • abuse report <domain> command for creating test reports
  • abuse delete <report-id> command with automatic cleanup
  • Archive reports instead of deletion for audit trail
  • Automatic IP/domain unbanning when archiving banned reports

Enhanced CLI Experience

  • Improved interactive CLI with abuse report management
  • Better autocomplete support for new commands
  • Consistent JSON output support across all commands
  • Comprehensive help documentation

馃悰 Bug Fixes & Improvements

  • Fixed metrics showing null/zero values through proper initialization
  • Corrected Redis configuration detection in CLI commands
  • Enhanced domain matching for ban notifications
  • Added extensive debug logging for ban notification system
  • Improved security event recording and metrics

馃搵 Installation

Docker (Recommended)

docker run -d --name p0rt \
  -p 22:22 -p 80:80 \
  -e REDIS_URL="redis://redis:6379" \
  meltingbot/p0rt:v1.2.7

Binary Download
Download the appropriate binary for your platform below, make it executable, and run:

chmod +x p0rt
./p0rt server start

馃敡 Configuration

Metrics Authentication (New)

export P0RT_METRICS_USERNAME="admin"
export P0RT_METRICS_PASSWORD="secure-password"

Redis Storage

export REDIS_URL="redis://localhost:6379"

馃搳 Metrics Endpoint

Access Prometheus metrics at: http://localhost:80/metrics
(Requires basic authentication)

馃毃 Breaking Changes

None - fully backward compatible with v1.0.x

馃摎 Documentation

  • Full documentation: GitHub Repository
  • CLI Reference: Run ./p0rt --help
  • Interactive Mode: Run ./p0rt cli