Skip to content

Lightweight HTTP & SOCKS5 proxy server built with pproxy.

License

Notifications You must be signed in to change notification settings

thiefcoder/my-proxy-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Proxy Server (HTTP + SOCKS5)

A lightweight proxy server that exposes HTTP and SOCKS5 endpoints using pproxy. It is designed to be simple to run and easy to configure via environment variables.

Features

  • HTTP proxy and SOCKS5 proxy in one process
  • Optional username/password authentication
  • Works well with local networks (prints LAN IPs on startup)

Requirements

  • Python 3.9+

Installation

pip install -r requirements.txt

Usage

python proxy_server.py

The server will bind to 0.0.0.0 by default and listen on:

  • HTTP: 8080
  • SOCKS5: 1080

Configuration

Set environment variables to customize behavior:

Variable Description Default
LISTEN_HOST Interface to bind 0.0.0.0
HTTP_PORT HTTP proxy port 8080
SOCKS_PORT SOCKS5 proxy port 1080
PROXY_USER Username for auth (none)
PROXY_PASS Password for auth (none)

Example

set LISTEN_HOST=0.0.0.0
set HTTP_PORT=8080
set SOCKS_PORT=1080
set PROXY_USER=myuser
set PROXY_PASS=secret
python proxy_server.py

Notes

  • If you set PROXY_USER, you must also set PROXY_PASS (and vice versa).
  • The server prints local LAN IPs that can be used by other devices on your network.

About

Lightweight HTTP & SOCKS5 proxy server built with pproxy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages