Skip to main content

socatlord

socatlord is a tool to manage multiple socats

You feed it with a config file placed at /etc/socatlord that has the syntax like:

# this is a comment

9.9.9.9:80 -> 123.23.4.3.:81
80 -> 192.168.224.20:80
udp 0.0.0.0:23 -> 192.168.224.20:23

TCP is the default protocol. Socatlord will spawn as many socats as necessary.

Usage

After you put this file, call socatlord install. This will install and enable socatlord to start during your startups (only if you're using Systemd). /etc/socatlord will be created about then, if it does not already exists. If you haven't done so, now it would be a good time to fill it up.

Note that installation itself will not start socatlord! After installation put your configuration in /etc/socatlord.

Later call either socatlord run or systemctl start socatlord.service to terminate currently running socats and launch your own. This may terminate your SSH connection, if you're using a socat to proxy it though, however it will destroy them and restart in one go.

You can also call socatlord stop to stop all socats.

You can provide an optional argument of -v to see what commands are launched. You can provide an optional explicit path to config file, if /etc/socatlord is meant not to be used. socatlord must be run as root. A check will be made for this.

Changelog

v1.3

  • socatlord will check if socats are alive after started

v1.2

  • socatlord uses argparse
  • socatlord will check if it's ran as root

v1.1

  • socat's will be silenced if the mode is not verbose
  • better default /etc/socatlord

v1.0

First formal release

Metadata

Release files for socatlord 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for socatlord 1.3
File Size Uploaded Provenance
socatlord-1.3.tar.gz 6.0 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for socatlord 1.3
File Interpreter ABI Platform
socatlord-1.3-py3.8.egg Legacy Egg format - - Details
socatlord-1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 17.8 kB

Release files / socatlord-1.3.tar.gz

Download URL socatlord-1.3.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7b833a4e8f045ee76a39ea914c191059f70f8ac7d88aef82a5265a9d14e8c4ef
BLAKE2b-256 checksum
How to use checksums
5144d9b4de51e919ec62fe44447fb6a350ec83bd4b26ad3a1ef54955fcc29050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0

Release files / socatlord-1.3-py3.8.egg

Download URL socatlord-1.3-py3.8.egg
Size 5.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
1722d6600677f2543569ad0ee560faae4429aeac2d50036dbc433ecbc87e5954
BLAKE2b-256 checksum
How to use checksums
58254c893d3ff1b55b1611821c14f6e2d15c54d9bf4b79cd3b58bf4036485464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0

Release files / socatlord-1.3-py2.py3-none-any.whl

Download URL socatlord-1.3-py2.py3-none-any.whl
Size 6.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e613807f97ea0e179724bc5ae9019f87e625654772b3a0b6a34c6fae2ed150ef
BLAKE2b-256 checksum
How to use checksums
1ad40bfe9cc3e021e4a24eb370c0ffb2378a24d818f1f0707411854cdc80b23f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0

Security for socatlord 1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page