pytunnel


Namepytunnel JSON
Version 2.4.2 PyPI version JSON
download
home_pagehttps://github.com/sintrb/pytunnel/
SummaryA TCP tunnel server/client by Python.
upload_time2023-05-23 02:58:04
maintainer
docs_urlNone
authortrb
requires_python
license
keywords pytunnel tunnel proxy socket
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            pytunnel
===============
A TCP tunnel server/client by Python.

Install
===============
```
 pip install pytunnel
```

Useage
===============
If you want local computer port 8080 can be access through server(IP:192.168.1.102) port 1090

Setp1. Run the following command at server computer:

```bash
python -m pytunnel --bind 0.0.0.0:1990
```

It will start a tunnel server at port 1990.

Setp2. Run the following command at local computer:
```bash
python -m pytunnel --port 1090 --target 127.0.0.1:8080 --server 192.168.1.102:1990
```

It will make a tunnel with 192.168.1.102:1090 and 127.0.0.1:8080.

Now, you can open 192.168.1.102:1090 to access the local computer port 8080.

Other
===============

You can use ```-e``` to set the password:

```bash
# server
python -m pytunnel --bind 0.0.0.0:1990 -e "abcdef"
# client
python -m pytunnel --port 1090 --target 127.0.0.1:8080 --server 192.168.1.102:1990 -e "abcdef"
```

Client can use ```-c``` to excute a command at the server computer:

```bash
# show server status
python -m pytunnel --server 192.168.1.102:1990 -c "status"

# let server exit
python -m pytunnel --server 192.168.1.102:1990 -c "exit"

# kill some client, the client-key can found with "status" command
python -m pytunnel --server 192.168.1.102:1990 -c "kill client-key"
```

[Click to view more information!](https://github.com/sintrb/pytunnel)


CHANGES
===============
1.0.0

- First version

2.0.0

- Optimize data package

2.1.0

- Fix bugs
- Use multiprocessing to improve throughput capacity

2.3.0

- Add watch dog to check status
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sintrb/pytunnel/",
    "name": "pytunnel",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "pytunnel,tunnel,proxy,socket",
    "author": "trb",
    "author_email": "sintrb@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/36/9c/37ecbee9416181c7dc4aa9135928c003c286295e8f76452c3fbcf56a0ca0/pytunnel-2.4.2.tar.gz",
    "platform": null,
    "description": "pytunnel\n===============\nA TCP tunnel server/client by Python.\n\nInstall\n===============\n```\n pip install pytunnel\n```\n\nUseage\n===============\nIf you want local computer port 8080 can be access through server(IP:192.168.1.102) port 1090\n\nSetp1. Run the following command at server computer:\n\n```bash\npython -m pytunnel --bind 0.0.0.0:1990\n```\n\nIt will start a tunnel server at port 1990.\n\nSetp2. Run the following command at local computer:\n```bash\npython -m pytunnel --port 1090 --target 127.0.0.1:8080 --server 192.168.1.102:1990\n```\n\nIt will make a tunnel with 192.168.1.102:1090 and 127.0.0.1:8080.\n\nNow, you can open 192.168.1.102:1090 to access the local computer port 8080.\n\nOther\n===============\n\nYou can use ```-e``` to set the password:\n\n```bash\n# server\npython -m pytunnel --bind 0.0.0.0:1990 -e \"abcdef\"\n# client\npython -m pytunnel --port 1090 --target 127.0.0.1:8080 --server 192.168.1.102:1990 -e \"abcdef\"\n```\n\nClient can use ```-c``` to excute a command at the server computer:\n\n```bash\n# show server status\npython -m pytunnel --server 192.168.1.102:1990 -c \"status\"\n\n# let server exit\npython -m pytunnel --server 192.168.1.102:1990 -c \"exit\"\n\n# kill some client, the client-key can found with \"status\" command\npython -m pytunnel --server 192.168.1.102:1990 -c \"kill client-key\"\n```\n\n[Click to view more information!](https://github.com/sintrb/pytunnel)\n\n\nCHANGES\n===============\n1.0.0\n\n- First version\n\n2.0.0\n\n- Optimize data package\n\n2.1.0\n\n- Fix bugs\n- Use multiprocessing to improve throughput capacity\n\n2.3.0\n\n- Add watch dog to check status",
    "bugtrack_url": null,
    "license": "",
    "summary": "A TCP tunnel server/client by Python.",
    "version": "2.4.2",
    "project_urls": {
        "Homepage": "https://github.com/sintrb/pytunnel/"
    },
    "split_keywords": [
        "pytunnel",
        "tunnel",
        "proxy",
        "socket"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "369c37ecbee9416181c7dc4aa9135928c003c286295e8f76452c3fbcf56a0ca0",
                "md5": "33578dcb104f3913e1528c7cb1d4f901",
                "sha256": "16db07aada578fcd37d406fe4f35350f29adabbb3d99fe2bf2e1d6157c88e1ed"
            },
            "downloads": -1,
            "filename": "pytunnel-2.4.2.tar.gz",
            "has_sig": false,
            "md5_digest": "33578dcb104f3913e1528c7cb1d4f901",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 48846,
            "upload_time": "2023-05-23T02:58:04",
            "upload_time_iso_8601": "2023-05-23T02:58:04.649317Z",
            "url": "https://files.pythonhosted.org/packages/36/9c/37ecbee9416181c7dc4aa9135928c003c286295e8f76452c3fbcf56a0ca0/pytunnel-2.4.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-23 02:58:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sintrb",
    "github_project": "pytunnel",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pytunnel"
}
        
trb
Elapsed time: 1.10926s