Skip to content

Cross-platform proxy server supporting socks4/socks4a and socks5 protocols.

Notifications You must be signed in to change notification settings

CXDXVR/RedProxy.Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RedProxy.Server

This application is a cross-platform proxy server supporting socks4/socks4a and socks5 protocols, written in C++ using the boost.asio library.

Features

  • SOCKS4 Protocol

    • socks4a Supports
    • USER-ID Authentication
    • Commands
      • CONNECT
      • BIND
  • SOCKS5 Protocol

    • IPv6 Supports
    • Authentication
      • NO-AUTH
      • USERNAME-PASSWORD
    • Commands
      • CONNECT
      • BIND
      • UDP-ASSOCIATE

Build & Run

$> cmake -S . -B Build
$> cmake --build Build

Usage

By default, the application can be supplied without a configuration file, and will use the default values that will be described below. If you need to configure the application with parameters other than the usual ones, you need to create a file settings.ini next to the executable file of the application.
This configuration file should contain several sections with the following parameters:

SOCKS4 Section

Key Value Description
enable bool Enable socks4 server. true by default.
enable_connect bool Enable CONNECT command. true by default.
enable_bind bool Enable BIND command. true by default.
user_id string The value of authorization. If it is empty, authorization is not required. Empty by default.
address string Server address. By default 127.0.0.1
port uint16_t Server port. By default 1080.

SOCKS5 Section

Key Value Description
enable bool Enable socks4 server. true by default.
enable_connect bool Enable CONNECT command. true by default.
enable_bind bool Enable BIND command. true by default.
enable_udp bool Enable UDP-ASSOCIATE command. true by default.
username string The value of authorization. If it is empty, authorization is not required. Empty by default.
password string The value of authorization. If it is empty, authorization is not required. Empty by default.
address string Server address. By default 127.0.0.1
port uint16_t Server port. By default 1081.

settings.ini example:

[socks4]
enable=true
enable_connect=true
enable_bind=true
user_id=test
address=127.0.0.1
port=1080

[socks5]
enable=true
enable_connect=true
enable_bind=true
enable_udp=true
username=test
password=test
address=127.0.0.1
port=1081

About

Cross-platform proxy server supporting socks4/socks4a and socks5 protocols.

Topics

Resources

Stars

Watchers

Forks