Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byebyebruce/tun
https://github.com/byebyebruce/tun
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/byebyebruce/tun
- Owner: byebyebruce
- Created: 2022-06-26T05:35:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-28T06:04:05.000Z (over 2 years ago)
- Last Synced: 2024-06-21T13:08:57.489Z (5 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TUN
简易隧道工具## 使用场景
比方A机器运行着Redis,B机器需要访问,但B ping不通A,A能ping通B## 使用方式
1. 安装工具
```
go install github.com/byebyebruce/tun/cmd/tun@latest
```
2. B机器运行
`tun s --listen=:9900`
3. A机器运行
`tun c --server=${B_IP}:9900 --remote=:6379 127.0.0.1:6379`
4. B机器连接A机器的redis
`redis-cli -p 6379`