No project description provided
Project description
ProxyNT is a reverse proxy server that can expose a local server to the internet through NATs and firewalls
Features
- Open port mapping via browser anytime and anywhere
- Encrypted transmission between public network server and local network client via WebSocket
- Few dependencies, one-click installation via pip
- Stable, automatically reconnect, and already in production environment
- Support for rate limiting
Common Scenarios
- Hosting website server at home
- Managing IoT devices
Installation
pip install -U proxynt
Example: Accessing an Internal Network Machine via SSH
Suppose the public server's IP is 192.168.9.224.
1. Create config_s.json
file on the public network machine
config_s.json
content:
{
"port": 18888,
"password": "helloworld",
"path": "/websocket_path",
"admin": {
"enable": true,
"admin_password": "new_password"
}
}
Then start:
nt_server -c config_s.json
Explanation:
port
: Listening portpassword
: Connection passwordpath
: WebSocket pathadmin
: Management page configuration (optional)admin.enable
: Whether to enable management pageadmin.admin_password
: Management password
2. Create config_c.json
file on the local network computer that needs to be accessed
config_c.json
content:
{
"server": {
"url": "ws://192.168.9.224:18888/websocket_path",
"password": "helloworld"
},
"client_name": "home_pc"
}
Then start:
nt_client -c config_c.json
Explanation:
server
: Configuration of the server to be connected, including port, IP address, whether to use HTTPS, password, and WebSocket path.client_name
: Client name, needs to be unique.client
: Empty array.
3. Open the server webpage http://192.168.9.224:18888/websocket_path/admin
and add a port:
Explanation: The management page path is WebSocket path + /admin .
4. Configuration succeeded, use SSH to connect:
ssh -oPort=12222 [email protected]
Complete Configuration Instructions (please delete the comments when using)
- Client config_c.json
{
"server": { // Server configuration to connect to
"port": 18888, // Port
"host": "192.168.9.224", // IP address
"https": false, // Whether the server is using HTTPS
"password": "helloworld", // Password
"path": "/websocket_path" // WebSocket path
},
"client": [ // List of forwarding configurations
{
"name": "ssh",
"remote_port": 1222,
"local_port": 22,
"local_ip": "127.0.0.1"
},
{
"name": "mongo",
"remote_port": 1223,
"local_port": 27017,
"local_ip": "127.0.0.1"
}
],
"client_name": "ubuntu1", // Client name, must be unique
"log_file": "/var/log/nt/nt.log" // Path to log file
}
- Server config_c.json
{
"port": 18888, // Listening port
"password": "helloworld", // Password
"path": "/websocket_path", // WebSocket path
"log_file": "/var/log/nt/nt.log", // Path to log file
"admin": {
"enable": true, // Whether to enable admin page
"admin_password": "new_password" // Password for admin page
}
}
Stargazers over time
Update history
- 1.1.9: Bandwidth limitation
- 1.1.8: Display client version
- 1.1.7: Fixed duplicate client_name
- 1.1.6: Fixed client WebSocketException: socket is already opened.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proxynt-1.1.20.tar.gz
(344.3 kB
view details)
Built Distribution
proxynt-1.1.20-py3-none-any.whl
(369.8 kB
view details)
File details
Details for the file proxynt-1.1.20.tar.gz
.
File metadata
- Download URL: proxynt-1.1.20.tar.gz
- Upload date:
- Size: 344.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87438f0f91d92f096b823cb4026be2d79b7fc860354962d5495c33a9b7ec4b85 |
|
MD5 | 5e395c60b45ee5627b94b5309e4d60d4 |
|
BLAKE2b-256 | b04656aedd55047be9d1072286031a6215e887705d793480562632c7264850e9 |
File details
Details for the file proxynt-1.1.20-py3-none-any.whl
.
File metadata
- Download URL: proxynt-1.1.20-py3-none-any.whl
- Upload date:
- Size: 369.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9381719283e8eab1094aed3a9fbabc31fcd553b9f6dd3aae66cd50c0f37cd79 |
|
MD5 | 81d832736836847a39d8fe438d70f244 |
|
BLAKE2b-256 | 294416ab192c8d8318687afb0da5a7ab180967abf48a585a3412f6a9f22725ed |