Skip to content

Omena0/SRP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SRP - Small Reverse Proxy

Features

  • Authentication with rate limit
  • Fast, minimal latency.
  • Efficient. 3kb memory usage with 1 connection.
  • Username & password auth
  • Cross platform
  • Per-user allocation limit

Usage

./srp register <username> <password>
./srp deletelogin <username> <password>
./srp claim <port>
./srp unclaim <username> <password>
./srp forward
./srp serve

Config format

srps.conf

host=127.0.0.1:6969

# Port forwarding restrictions
min_port=20000
max_port=21000
ports_per_login=10
logins_per_ip=3

# Restricted ports (comma-separated, can only be used via config file assignment)
# Example: restricted_ports=22,80,443,3306
restricted_ports=

forwards.conf

# Address of the SRP server
server=127.0.0.1:6969

# Login
passwd=Omena0:bingchilling

# Forwards
# <remote port> -> <local port>
forwards=[
    20001 -> 8000
]

Data storage format

logins.conf

Live list of logins in format:

<username>:<passwd hash>:<creation timestamp>[|<claimed ports csv>]

Editing the file should apply changes without restarting server. The server should edit this file to add/remove accounts/claimed ports

About

Simple and fast reverse proxy

Topics

Resources

Stars

Watchers

Forks