Author: Vincent E-Mail: [email protected] QQ: 46603415
config.json
{
"IP":"0.0.0.0",
"Port":"7200",
"DesSrvIP":"192.168.10.249",
"DesSrvPort":"3389",
"MaxUser":4,
"RunModel":"bl"
}
"IP":"0.0.0.0", //转发服务器ip地址
"Port":"7200", //转发服务器端口
"DesSrvIP":"192.168.10.249", //目标服务器IP地址
"DesSrvPort":"3389", //目标服务器端口
"MaxUser":4 //最大连接数
"RunModel":"bl" //运行白名单模式写参数wl,运行黑名单模式写参数bl.
whitelist.json
json数组,分隔符为,修改后必须重启网关生效
{
"AcceptIPList":"127.0.0.1,192.168.10.255"
}
blacklist.json
json数组,分隔符为,修改后必须重启网关生效
{
"BanIPList":"192.168.10.255,192.168.10.254,127.0.0.1"
}
git clone https://github.com/Cassuis/transgate.git
cd transgate
go mod tidy
sh build-linux64.sh
sh build-macos.sh
sh build-win64.sh
- Linux
- 前台运行
./TransGate
- 后台运行
./TransGate &
- 前台运行
- Windows 双击运行,日志输出在syslog下
- Mac 同Linux