Skip to main content

Add your description here

Project description

功能: 内网穿透服务器与客户端

1. 安装

pip install l0n0lnat

2. 服务器命令

l0n0lnatserver -h
usage: l0n0lnatserver [-h] 监听地址 监听端口 密码

启动nat客户端

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

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

3. 客户端命令

l0n0lnatclient -h
usage: l0n0lnatclient [-h] [-6] 服务器地址 服务器端口 远端监听端口 被穿透的服务地址 被穿透的服务端口 密码

启动nat客户端

positional arguments:
  服务器地址           远程服务器地址
  服务器端口           远程服务器端口
  远端监听端口          远端监听端口
  被穿透的服务地址        被穿透的服务地址
  被穿透的服务端口        被穿透的服务端口
  密码              通信密码

options:
  -h, --help      show this help message and exit
  -6, --use-ipv6  启用 IPv6

4. 实例

  • 被穿透服务: A(192.168.1.2:80)
  • 服务器: B(192.168.1.3)

4.1 在B上执行

l0n0lnatserver 0.0.0.0 11223 123

4.2 在A上执行

l0n0lnatclient 192.168.1.3 11223 8888 127.0.0.1 80 123

4.3 访问B:8888

curl http://192.168.1.3:8888

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

l0n0lnat-3.1.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

l0n0lnat-3.1.4-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file l0n0lnat-3.1.4.tar.gz.

File metadata

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

File hashes

Hashes for l0n0lnat-3.1.4.tar.gz
Algorithm Hash digest
SHA256 1b64e689c1b8c942a03fe0787203eb26e666dfac753ac616a7104621b61279d4
MD5 9e4d446ef4dd56adc54a0e13708a0226
BLAKE2b-256 628c4a6e890662f97f3e0fc5d540cd6dfac38f4a6efd8b03c221233dfdae87ef

See more details on using hashes here.

File details

Details for the file l0n0lnat-3.1.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for l0n0lnat-3.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6f794de5ae7a67296ea3dcaf2c64cf18d104728e12255fc6328405d20b63aa7d
MD5 d1429fce5852bba9fcccda7d52c17e0c
BLAKE2b-256 3f90fa4dea81649c22290adb02020fab96aec8d4052db7beaf68fe989c19eba6

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