Skip to main content

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

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

Metadata

Release files for l0n0lnat 3.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for l0n0lnat 3.1.8
File Size Uploaded Provenance
l0n0lnat-3.1.8.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for l0n0lnat 3.1.8
File Interpreter ABI Platform
l0n0lnat-3.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / l0n0lnat-3.1.8.tar.gz

Download URL l0n0lnat-3.1.8.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2c38a792ff82119514e2e2326230a085927a6238fbf3b7185ae8f98b36033c2e
BLAKE2b-256 checksum
How to use checksums
f8df4d3023b4d0d492f6ab82e941aa8682cc26d6d223049845839866498fdccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / l0n0lnat-3.1.8-py3-none-any.whl

Download URL l0n0lnat-3.1.8-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01e307f49dbdb249f4bef8c2733eae505308d3555fbc40d753fdc373124f88d8
BLAKE2b-256 checksum
How to use checksums
fc7dfd37f76897826e9d9a39f0ef05ac740c24fc5e1780d9583e0cdd1027cbc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Security for l0n0lnat 3.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page