socks5-proxy-server logo

socks5-proxy-server

  •  0 ratings
In category: Proxy

About socks5-proxy-server

SOCKS5 proxy server with built-in authentication and Telegram-bot for user management and user statistics on data spent (handy when you pay per GB of data). It is dockerised and simple to install.

  •   1358  
  •   0  
  •   0  
  •   0  
Github stats:
  •  Commits: 63  
  •   53  
  •   12  
  •  Latest commit: May 2, 2023  

Deploy this app to RackNerd for $0.99/mo only!

Languages/Platforms/Technologies:
Lincenses:

More about socks5-proxy-server

Socks5 proxy server

Prerequisites

How to run

  • Copy .env.example file: cp .env.example .env
  • Fill in configuration: nano .env. Fields:
  • APP_PORT - proxy server port (default: 54321),
  • LOG_LEVEL - log level (default: INFO),
  • REQUIRE_AUTH - if set to 1, anonymous users are not allowed.
  • Start application: docker compose up -d

CLI commands

In all commands you need to call js-script in app docker container.
So you need to find out container name with proxy application by running the following command:

docker compose ps

For example, it will be socks5-proxy-server-proxy-1.

In all the following commands you need to replace socks5-proxy-server-proxy-1 with the yours container name.

Create user

docker exec -it socks5-proxy-server-proxy-1 sh -c 'exec node scripts/create-user.js'

Delete user

docker exec -it socks5-proxy-server-proxy-1 sh -c 'exec node scripts/delete-user.js'

Show users statistics

docker exec -it socks5-proxy-server-proxy-1 sh -c 'exec node scripts/users-stats.js'

Telegram bot for administration

Configuration

  • Initialize bot at @botfather, get API token
  • Set params in .env:
  • PUBLIC_URL - URL to server. E.g. http://proxy.domain.com:8443
  • TELEGRAM_API_TOKEN - API token from BotFather
  • TELEGRAM_WEBHOOK_URL - default: /webhook
  • TELEGRAM_USE_WEBHOOKS - 1 - use webhooks, 0 - use polling. To use webhooks you need to generate ssl certificates
  • Create admin:
    docker exec -it socks5-proxy-server-telegram_bot-1 sh -c 'exec node scripts/create-admin.js' 

You also can delete admin via script, if you need:

docker exec -it socks5-proxy-server-telegram_bot-1 sh -c 'exec node scripts/delete-admin.js' 

Available commands

  • /users_stats - show data usage statistics per user
  • /create_user - create new proxy user
  • /delete_user - delete proxy user
  • /get_users - get list of proxy users
  • /generate_pass [length] - generate random password with specified length (10 by default)

Comments (0)

Please login to join the discussion on this project.

socks5-proxy-server Reviews (0)

Overall Rating

None

based on 0 ratings

Please login to review this project.

No reviews for this project yet.

↑ back to top

RackNerd Medium Rectangle Banner

Popular Projects

FluxBB

in Social Networks and Forums
 41k    0    0    0  

Nextcloud

in File Transfer & Synchronization
 31k    1    1    0  

Dashboard

in Personal Dashboards
 11k    0    0    0  

Libreddit

in Social Networks and Forums
 10k    0    1    0  

Audiobookshelf

in Audio Streaming
 9k    0    1    0  

Libre Translate

in Miscellaneous
 8k    0    0    0  

CasaOS

in Self-hosting Solutions
 8k    0    0    0  

Most Discussed

Nextcloud

in File Transfer & Synchronization
 31k    1    1    0  

Tube Archivist

in Automation
 5k    0    1    0  

OneDev

in Project Management
 3k    0    0    0  

iodine

in Proxy
 3k    0    0    0  

Alf.io

in Booking and Scheduling
 3k    0    0    0  

sysPass

in Password Managers
 2k    0    0    0  

Misskey

in Social Networks and Forums
 3k    0    0    0  
pCloud Lifetime

Top Rated Projects

Gitea

 1 rating
in Project Management

Bagisto

 1 rating
in E-commerce

LinkAce

 1 rating
in Bookmarks and Link Sharing

Pydio

 1 rating
in File Transfer & Synchronization

Audiobookshelf

 1 rating
in Audio Streaming

Nextcloud

 1 rating
in File Transfer & Synchronization

Seafile

 1 rating
in File Transfer & Synchronization

Categories

You May Also Be Interested In

SOCKS5Engine logo
SOCKS5Engine cover

SOCKS5Engine

Lightweight & resource-efficient SOCKS5 proxy server, optim…

SWAG (Secure Web Application Gateway) logo
SWAG (Secure Web Application Gateway) cover

SWAG (Secure Web Application Gateway)

Nginx webserver and reverse proxy with PHP support, built-i…

Tinyproxy logo
Tinyproxy cover

Tinyproxy

Light-weight HTTP/HTTPS proxy daemon.