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