Skip to main content

Port forwarding with traffic shaping

Project description

tinap – stands for “This Is Not A Proxy”

It’s also a beautiful place in Bangladesh with the biggest waterfall of that country.

The Urban Dictionary also says it’s “young people who go to rave parties who are dressed in bright and extreme styles of clothing”.

Features:

  • protocol-agnostic port forwarder

  • Network traffic shaping inspired from tsproxy

Installation

Tinap is a pure Python script, you can install it with:

$ pip install tinap

If you are under windows you need to install pywin32 as well:

$ pip install pywin32

How to use

Tinap has a few general options, followed by a mode (forward or socks):

$ tinap --help
usage: tinap [-h] [-v] [--host HOST] [--upstream-host UPSTREAM_HOST]
            [--port PORT] [--upstream-port UPSTREAM_PORT]
            [--port-mapping PORT_MAPPING] [-r RTT] [-i INKBPS] [-o OUTKBPS]

Tinap port forwarder

optional arguments:
-h, --help            show this help message and exit
-v, --verbose         Verbose mode
--host HOST           host
--upstream-host UPSTREAM_HOST
                        upstream host
--port PORT           port
--upstream-port UPSTREAM_PORT
                        upstream port
--port-mapping PORT_MAPPING
                        Comma-separated list of port forwarding rules each
                        rule is composed of <source_host>:<source_port>/<targe
                        t_host>:<target_port> Example (forwards port 80 and
                        443 to 8080 and 8282): 127.0.0.1:80/127.0.0.1:8080,127
                        .0.0.1:443/127.0.0.1:8282
-r RTT, --rtt RTT     Round Trip Time Latency (in ms).
-i INKBPS, --inkbps INKBPS
                        Download Bandwidth (in 1000 bits/s - Kbps).
-o OUTKBPS, --outkbps OUTKBPS
                        Upload Bandwidth (in 1000 bits/s - Kbps).

Configuration examples

XXX show 2 full setups: - firefox <> tinap <> wpr - firefox <> tinap <> mitmproxy

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tinap-0.2.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file tinap-0.2.tar.gz.

File metadata

  • Download URL: tinap-0.2.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.1

File hashes

Hashes for tinap-0.2.tar.gz
Algorithm Hash digest
SHA256 ce2c63f0324f1ec134801d02ab9a4ee22519da17b99424918bc194c4e5fb2f92
MD5 eb1f1a0c2c8abc3b6a25ce0eff5573aa
BLAKE2b-256 94147588fbf4ecdeacd41d6ad978d78d6ba6492023bce09e4cc88cf19830a857

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page