beordle / termtunnel

Cross-platform terminal tunnel tool
MIT License
356 stars 36 forks source link

服务端能支持配置文件进入termtunnel shell吗 #44

Closed lixiang2017 closed 2 years ago

lixiang2017 commented 2 years ago

有很多端口需要转发,可以支持配置文件吗?比如

termtunnel -a  --config   config_file

config_file里每一条是local_listen/remote_listen 的命令

beordle commented 2 years ago

尝试下 socks5 的动态转发?或者说,我也可以增加一个 shell 中的命令来读取某个配置文件,类似 source a.sh 的体验

lixiang2017 commented 2 years ago

动态转发可以。发现readme里只写了Share local internet with remote, 没写 share remote internet with local。

# 把本地端口3355的所有流量,都转发到远程服务器。是一个socks代理
local_listen 127.0.0.1 3355  127.0.0.1 0

local_listen 很好用,感谢!