Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asutorufa/tunnel
A simple NAT traversal tool
https://github.com/asutorufa/tunnel
nat nat-trav
Last synced: about 1 month ago
JSON representation
A simple NAT traversal tool
- Host: GitHub
- URL: https://github.com/asutorufa/tunnel
- Owner: Asutorufa
- Created: 2023-06-26T14:58:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-21T17:11:37.000Z (3 months ago)
- Last Synced: 2024-08-21T19:20:54.842Z (3 months ago)
- Topics: nat, nat-trav
- Language: Go
- Homepage:
- Size: 73.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# tunnel
A simple NAT traversal tools, current only support TCP.
## build
```shell
make linux
make windows
make darwin
```## server
```shell
server -h 127.0.0.1:8388 -r rule.json
```## client
```shell
client -s private.server.com:8388 -uuid uuid -s5 127.0.0.1:1080 -r rule.json
```rule.json
```json
{
"127.0.0.1:56022": { // local listen address
"uuid": "uuid1", // target device uuid
"address": "127.0.0.1", // target address
"port": 50051 // target port
},
"127.0.0.1:56023": {
"uuid": "uuid2",
"address": "127.0.0.1",
"port": 8000
},
"127.0.0.1:56024": {
"uuid": "uuid3",
"address": "127.0.0.1",
"port": 22
}
}
```