Skip to main content

TCP转发服务器

Project description

功能: 加密转发服务器

1.安装

pip install l0n0ltcp -U

2.本地服务器

l0n0ltransclient -h
正在使用uvloop
usage: l0n0ltransclient [-h] 监听地址 监听端口 服务器地址 服务器端口 密码

启动TCP加密转发客户端

positional arguments:
  监听地址        本地监听地址
  监听端口        本地监听端口
  服务器地址       远程服务器地址
  服务器端口       远程服务器端口
  密码          通信密码

options:
  -h, --help  show this help message and exit

3. 远端服务器

l0n0ltransserver -h
usage: l0n0ltransserver [-h] 监听地址 监听端口 服务器地址 服务器端口 密码

启动TCP加密转发服务器

positional arguments:
  监听地址        本地监听地址
  监听端口        本地监听端口
  服务器地址       远程服务器地址
  服务器端口       远程服务器端口
  密码          通信密码

options:
  -h, --help  show this help message and exit

4. socks5服务器

l0n0ltranssocks5 -h
usage: l0n0ltranssocks5 [-h] 本地监听地址 本地监听端口

socks5服务器

positional arguments:
  本地监听地址      本地监听地址
  本地监听端口      本地监听端口

options:
  -h, --help  show this help message and exit

5. 实例

比如远程服务器有一个http服务器:A(192.168.1.2) 在服务器上监听127.0.0.1:8080.是不能被其他主机访问的.

我们还有主机 B(192.168.1.3) 是可以被其他主机访问的

  • A B 均表示IP地址

5.1 在A上执行

l0n0ltransserver 0.0.0.0 11224 127.0.0.1 8080 123

5.2 在B上执行

l0n0ltransclient 0.0.0.0 11223 192.168.1.3 11224 123

5.3 在任意可以访问到B的主机上

curl http://192.168.1.3:11223

Project details


Download files

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

Source Distribution

l0n0ltcp-2.0.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

l0n0ltcp-2.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file l0n0ltcp-2.0.2.tar.gz.

File metadata

  • Download URL: l0n0ltcp-2.0.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for l0n0ltcp-2.0.2.tar.gz
Algorithm Hash digest
SHA256 480d078e5c52dd8005606bca5f0ad3e439f52f78bdfc71d93c8e06f0086a2260
MD5 8e5d6d4aa439f392ac610b226057dd93
BLAKE2b-256 0cc3f041bc6f40c0d8a75bbdc8c499931a9d80ead6f0e8945c05ed057856b962

See more details on using hashes here.

File details

Details for the file l0n0ltcp-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: l0n0ltcp-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for l0n0ltcp-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09b3f7af044bee099d91cb7e3ce8a3422af344ed8035074dc082d3d10a8975a5
MD5 4167ff01392ca01e0225043e4f59b58d
BLAKE2b-256 0f760fc9314a157cd6f860684b78c3cb91cacd778c27ed9dfb7e2eb0f16d8a23

See more details on using hashes here.

Supported by

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