Proxy TCP ports of local systems
Project description
socket-proxy
This tool allows to forward TCP ports to a server and make them accessible through ports of the server. 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 are publishing local ports which might cause security issues for non-hardened ports.
Features
- TLS encryption of the tunnel
- Support for client certificates if CA is specified on the server
- Support for IPv4 and IPv6
- Limitation of number of tunnels, clients per tunnel, and connections per IP
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-1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67b45c389a34387ed357b624d227b01128bad83591f3d10fb75bffc71a3628f9 |
|
MD5 | 0ea5e2b7f5cb704ae4d093ec8b8ec19f |
|
BLAKE2b-256 | 0e6b268b897f31b4dee28d06142fef303a2929e51361b3a32803cae380a36b3a |