Port Forwarder
lupaxa-port-forwarder is a small TCP relay. It listens on a local
port and forwards each accepted connection to a remote host and port.
Install the package for the library API and the port-forwarder
console command:
You can also run python -m lupaxa.port_forwarder.
What it does
- Binds a local TCP listener (loopback by default)
- Accepts each client on its own thread
- Opens a matching connection to the remote host and port
- Copies bytes in both directions until either side closes
- Keeps the other direction open after a half-close so replies still arrive
- Can run several
LOCAL:HOST:REMOTEmappings in one process - Optionally allowlists sources, caps concurrent sessions, and closes idle ones
- Exposes
PortForwarderandPortForwarderGroupas library classes
Next steps
- Getting started — install and first run
- Usage — CLI flags and the library API
- Reference — arguments, defaults, and exit codes
- Examples — common forward recipes