同步操作将从 FastTunnel/FastTunnel 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This project supports any commercial and secondary development activities, but seriously despises plagiarizing and copying the code, implementation scheme or architecture of this project and repackaging them into their own open source works.
FastTunnel.Core
, and target the business extension functions you need.Official website : https://suidao.io
The penetration platform developed based on this framework, if you need intranet penetration, you can register and use it directly, eliminating the cost of building and maintaining yourself. But do not use this service for important items.
OpenSource:
GitHub : FastTunnel
Gitee: FastTunnel
If helpful, click on ⭐Star to support this project, please submit an issue if you have needs and bugs, and welcome coder to PR
appsettings.json
Configuration files and log files are mounted through volume. If this image has been run before, docker may not update to the latest image. Please delete the existing image manually, and then execute the following command
docker run --detach \
--publish 1270:1270 --publish 1271:1271 \
--name FastTunnel \
--restart always \
--volume /var/FastTunnel/config:/app/config \
--volume /var/FastTunnel/Logs:/app/Logs \
springhgui/fasttunnel:latest
Double click directly FastTunnel.Client.exe
to run
chmod +x FastTunnel.Client
./FastTunnel.Client
click directly FastTunnel.Client
to run
For example, you have a server with a public IP address of 110.110.110.110
, and you have a domain name with a top-level domain name of abc.com
, you want to visit a website on the intranet by visiting test.abc.com
You need to add a DNS resolution for the domain name address, the type is A
, the name is *
, and the ipv4 address is 110.110.110.110
, so that all domain names of *.abc.com
will point to 110.110.110.110
’s server, because the default http port of FastTunnel
is 1270, so you need to visithttp://test.abc.com:1270
nginx
forwarding.http {
# add resolver
resolver 8.8.8.8;
# set *.abc.com to 1270 port
server {
server_name *.abc.com;
location / {
proxy_pass http://$host:1270;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# 可选
error_log /var/log/nginx/error_ft.log error;
}
}
ft.suidao.io
, then access the local site through the subdomain name test.ft.suidao.io:1270
, the IIS configuration is as follows:
The client configuration is as follows, there are two hosts in the intranet, and the ip is as follows: appsettings.json
"ClientSettings": {
"Common": {
"ServerAddr": "xxx.xxx.xxx.xxx",
"ServerPort": 1271
},
"SSH": [
{
"LocalIp": "192.168.0.100", // linux pc
"LocalPort": 22, // ssh default port
"RemotePort": 12701
},
{
"LocalIp": "192.168.0.101", // windows pc
"LocalPort": 3389, // windows default port for Remote
"RemotePort": 12702
}
]
}
Assuming that the user name of the intranet host is root, the server ip is x.x.x.x, and the two hosts that access the intranet are as follows
ssh -oPort=12701 root@x.x.x.x
sysdm.cpl
in the pop-up dialog box and select Allow remote connection to this computermstsc
, open the remote dialog box, enter x.x.x.x:12701
in the computer input box of the dialog box, and then specify the user name and password to remote the windows host of the intranet
vs2019
last version.net5
or higher https://dotnet.microsoft.com/download/dotnet/5.0
test.test.cc 127.0.0.1
in system host fileApache License 2.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。