From 887b68d25908eb1f9b0894d13226354f58d66ca8 Mon Sep 17 00:00:00 2001 From: cheney Date: Thu, 28 May 2026 10:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxynt/.gitignore | 1 + proxynt/Readme.md | 11 +++++++++++ proxynt/config_c copy.json | 7 +++++++ proxynt/config_c.json | 7 +++++++ proxynt/config_s.json | 21 +++++++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 proxynt/.gitignore create mode 100644 proxynt/Readme.md create mode 100644 proxynt/config_c copy.json create mode 100644 proxynt/config_c.json create mode 100644 proxynt/config_s.json diff --git a/proxynt/.gitignore b/proxynt/.gitignore new file mode 100644 index 0000000..fdfdba1 --- /dev/null +++ b/proxynt/.gitignore @@ -0,0 +1 @@ +log/ \ No newline at end of file diff --git a/proxynt/Readme.md b/proxynt/Readme.md new file mode 100644 index 0000000..a260f94 --- /dev/null +++ b/proxynt/Readme.md @@ -0,0 +1,11 @@ +pip install -U proxynt + + + +nt_server -c config_s.json +nt_client -c config_c.json + + +http://:18888/websocket_path/admin + + diff --git a/proxynt/config_c copy.json b/proxynt/config_c copy.json new file mode 100644 index 0000000..3f8601c --- /dev/null +++ b/proxynt/config_c copy.json @@ -0,0 +1,7 @@ +{ + "server": { + "url": "ws://localhost:18888/websocket_path", + "password": "helloworld" + }, + "client_name": "cheney" +} \ No newline at end of file diff --git a/proxynt/config_c.json b/proxynt/config_c.json new file mode 100644 index 0000000..ba07fd3 --- /dev/null +++ b/proxynt/config_c.json @@ -0,0 +1,7 @@ +{ + "server": { + "url": "ws://localhost:18888/websocket_path", + "password": "helloworld" + }, + "client_name": "fyx" +} \ No newline at end of file diff --git a/proxynt/config_s.json b/proxynt/config_s.json new file mode 100644 index 0000000..b928ef1 --- /dev/null +++ b/proxynt/config_s.json @@ -0,0 +1,21 @@ +{ + "port": 18888, + "password": "helloworld", + "path": "/websocket_path", + "admin": { + "enable": true, + "admin_password": "cheney" + }, + "client_config": { + "fyx": [ + { + "name": "test", + "remote_port": 9788, + "local_port": 9788, + "local_ip": "zentao.sunyard.com.cn", + "speed_limit": 0.0, + "protocol": "tcp" + } + ] + } +} \ No newline at end of file