{"id":16895495,"url":"https://github.com/qwerty541/logged-tcp-proxy","last_synced_at":"2025-03-22T09:31:41.284Z","repository":{"id":152784394,"uuid":"426606404","full_name":"qwerty541/logged-tcp-proxy","owner":"qwerty541","description":"Implementation of logged TCP proxy command line tool on Rust.","archived":false,"fork":false,"pushed_at":"2025-03-16T18:55:20.000Z","size":384,"stargazers_count":8,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T19:47:50.100Z","etag":null,"topics":["cli","command-line","command-line-interface","command-line-tool","logging","networking","proxy","rust","rust-lang","tcp"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/logged_tcp_proxy","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qwerty541.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":"AlexandrGarbuzov","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.buymeacoffee.com/qwerty541zxc"]}},"created_at":"2021-11-10T12:03:04.000Z","updated_at":"2025-03-16T18:54:25.000Z","dependencies_parsed_at":"2023-05-27T16:15:30.078Z","dependency_job_id":"5ec058bf-eae1-4083-b188-cc302495b078","html_url":"https://github.com/qwerty541/logged-tcp-proxy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwerty541%2Flogged-tcp-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwerty541%2Flogged-tcp-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwerty541%2Flogged-tcp-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwerty541%2Flogged-tcp-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qwerty541","download_url":"https://codeload.github.com/qwerty541/logged-tcp-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937751,"owners_count":20535124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line","command-line-interface","command-line-tool","logging","networking","proxy","rust","rust-lang","tcp"],"created_at":"2024-10-13T17:24:27.086Z","updated_at":"2025-03-22T09:31:41.271Z","avatar_url":"https://github.com/qwerty541.png","language":"Rust","funding_links":["https://patreon.com/AlexandrGarbuzov","https://www.buymeacoffee.com/qwerty541zxc"],"categories":[],"sub_categories":[],"readme":"# logged-tcp-proxy \u003c!-- omit in toc --\u003e\n\n[![Crates.io version][crates-version-badge]][crates-url]\n[![Crates.io downloads][crates-downloads-badge]][crates-url]\n![Rust version][rust-version]\n![License][license-badge]\n[![Workflow Status][workflow-badge]][actions-url]\n\n[crates-version-badge]: https://img.shields.io/crates/v/logged_tcp_proxy.svg\n[crates-downloads-badge]: https://img.shields.io/crates/d/logged_tcp_proxy.svg\n[crates-url]: https://crates.io/crates/logged_tcp_proxy\n[license-badge]: https://img.shields.io/crates/l/logged_tcp_proxy.svg\n[workflow-badge]: https://github.com/qwerty541/logged-tcp-proxy/workflows/check/badge.svg\n[actions-url]: https://github.com/qwerty541/logged-tcp-proxy/actions\n[rust-version]: https://img.shields.io/badge/rust-1.74.1%2B-lightgrey.svg?logo=rust\n\n\u003cdetails\u003e\n\u003csummary\u003eTable of contents\u003c/summary\u003e\n\n- [Description](#description)\n- [Installation](#installation)\n  - [From crates.io (Recommended)](#from-cratesio-recommended)\n  - [From git repository](#from-git-repository)\n- [Options](#options)\n- [Example](#example)\n- [License](#license)\n- [Contribution](#contribution)\n\u003c/details\u003e\n\n## Description\n\nThis repository provides a command line interface for proxying TCP connections with payload output into the console. Payload output can be formatted in different ways: hexadecimal (lowercase and uppercase), decimal, octal and binary.\n\n## Installation\n\n### From crates.io (Recommended)\n\nRun the following command and wait until the crate is compiled:\n\n```sh\n$ cargo install logged_tcp_proxy\n```\n\nNow you can run compiled binary:\n\n```sh\n$ logged_tcp_proxy --bind-listener-addr 127.0.0.1:20502 --remote-addr 127.0.0.1:20582\n```\n\n### From git repository\n\nRun the following command and wait until the crate is compiled:\n\n```sh\n$ cargo install --git https://github.com/qwerty541/logged-tcp-proxy.git --tag v0.1.2 logged_tcp_proxy\n```\n\nAlso you can remove tag option to install the latest development version.\n\nNow you can run compiled binary:\n\n```sh\n$ logged_tcp_proxy --bind-listener-addr 127.0.0.1:20502 --remote-addr 127.0.0.1:20582\n```\n\n## Options\n\nBelow is a list of currently supported options.\n\n```\n$ logged_tcp_proxy --help\nCommand line interface for proxying TCP connections with payload output into console which can be formatted different ways.\n\nUsage: logged_tcp_proxy [OPTIONS] --bind-listener-addr \u003cBIND_LISTENER_ADDR\u003e --remote-addr \u003cREMOTE_ADDR\u003e\n\nOptions:\n  -l, --level \u003cLEVEL\u003e\n          Application logging level [default: debug] [possible values: trace, debug, info, warn, error, off]\n  -b, --bind-listener-addr \u003cBIND_LISTENER_ADDR\u003e\n          Address on which TCP listener should be binded\n  -r, --remote-addr \u003cREMOTE_ADDR\u003e\n          Address of remote server\n  -t, --timeout \u003cTIMEOUT\u003e\n          Incoming connection reading timeout [default: 60]\n  -f, --formatting \u003cFORMATTING\u003e\n          Formatting of console payload output, [default: lowerhex] [possible values: decimal, lowerhex, upperhex, binary, octal]\n  -s, --separator \u003cSEPARATOR\u003e\n          Console payload output bytes separator [default: :]\n  -p, --precision \u003cPRECISION\u003e\n          Timestamp precision [default: seconds] [possible values: seconds, milliseconds, microseconds, nanoseconds]\n  -h, --help\n          Print help\n  -V, --version\n          Print version\n```\n\n## Example\n\nBelow is an example of using this command line tool as proxy between device and data storage server with command and console output.\n\n```\n$ logged_tcp_proxy --bind-listener-addr 127.0.0.1:20502 --remote-addr 127.0.0.1:20582\n[2023-05-04T02:39:33Z INFO] Listener binded, waiting for incoming connections...\n[2023-05-04T02:39:37Z INFO] Incoming connection from 127.0.0.1:50376\n[2023-05-04T02:39:37Z DEBUG] \u003c 00:00:00:00:00:19:6f:03:16:00:1f:00:20:00:11:00:22:00:33:00:44:00:55:00:66:00:01:00:00:00:00\n[2023-05-04T02:39:37Z DEBUG] \u003e 00:00:00:00:00:0b:6f:10:03:f1:00:02:04:00:00:00:00\n[2023-05-04T02:39:37Z DEBUG] \u003c 00:00:00:00:00:06:6f:10:03:f1:00:02\n[2023-05-04T02:39:37Z DEBUG] \u003e 00:01:00:00:00:06:6f:03:00:7a:00:01:00:02:00:00:00:06:6f:03:00:7b:00:02\n[2023-05-04T02:39:37Z DEBUG] \u003c 00:01:00:00:00:05:6f:03:02:02:ff:00:02:00:00:00:07:6f:03:04:00:00:00:01\n[2023-05-04T02:39:37Z DEBUG] \u003e 00:03:00:00:00:06:01:01:00:01:00:01:00:04:00:00:00:06:01:02:00:01:00:01:00:05:00:00:00:06:01:03:00:01:00:10:00:06:00:00:00:06:01:03:00:11:00:01:00:07:00:00:00:06:01:03:00:7b:00:01:00:08:00:00:00:06:01:03:0f:a0:00:01:00:09:00:00:00:06:01:03:13:88:00:03:00:0a:00:00:00:06:01:04:00:01:00:01\n[2023-05-04T02:39:37Z DEBUG] \u003c 00:03:00:00:00:04:01:01:01:01:00:04:00:00:00:04:01:02:01:01:00:05:00:00:00:23:01:03:20:00:7b:00:0c:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:01:36:40:49:0f:db:40:09:21:fb:54:44:2d:18:ff:ff:00:06:00:00:00:05:01:03:02:ff:ff:00:07:00:00:00:05:01:03:02:00:01:00:08:00:00:00:03:01:83:02:00:09:00:00:00:09:01:03:06:00:01:00:02:00:03:00:0a:00:00:00:05:01:04:02:00:7b\n[2023-05-04T02:40:18Z DEBUG] \u003e 00:0b:00:00:00:06:6f:03:03:e8:00:01\n[2023-05-04T02:40:18Z DEBUG] \u003c 00:0b:00:00:00:05:6f:03:02:00:00\n```\n\n## License\n\nLicensed under either of\n\n-   Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)\n-   MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwerty541%2Flogged-tcp-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqwerty541%2Flogged-tcp-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwerty541%2Flogged-tcp-proxy/lists"}