Proxy TCP ports of local systems
Project description
socket-proxy
This tool allows to forward TCP or HTTP ports to a server and make them available through the server. TCP ports will be mapped to ports of the server. HTTP forwarding is done with a simple reverse proxy using sub-domains. It consists of a client and server part. The server is listening for incoming connections from clients and creates additional listeners upon connection. These can be used to directly contact the TCP port set up as destination in the connecting client.
Security
With this tool you can publish local service which might cause security issues for non-hardened ports. You should consider further security measurements to harden critical systems if used. The HTTP implementation is very basic. It's recommended to use a reverse proxy like nginx with SSL and a wildcard certificate if HTTPS is required.
Features
- TLS encryption of the tunnel
- Support for client certificates if CA is specified on the server
- Support for IPv4 and IPv6
- Proxy generic TCP ports or more specific HTTP servers
- Limitation of number of tunnels, clients per tunnel, and connections per IP
- Limit the access to specific IP's
- Configuration on server and client side and negotiation of the used settings
Usage
-
Generate CA and certificates to be used on the server and client (e.g. using certs.sh of the package, easy-rsa, or openssl directly)
-
Start a tunnel server using a certificate and matching private key
$ socket_proxy server --cert certificate.pem --key certificate.key
- Start a tunnel client and connect to a server. Tunnelled connections can access server reachable under TARGET:PORT
$ socket_proxy client --ca ca.pem -c SERVER -d TARGET:PORT
- Connect clients to the opened ports on the server
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for socket_proxy-2.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff1b3d10987604486e62a39a1cdb523ff0c32b4c7d15d461c4925c7c62d1b8f8 |
|
MD5 | ef987633ce17d62fd066860f47d63046 |
|
BLAKE2b-256 | dff525998f6d70ecbd0f5442c68c3f29a5c446cdbcec69b6b52303e90e09df52 |