当前位置:网站首页>Fasttunnel open source intranet penetration framework
Fasttunnel open source intranet penetration framework
2022-07-26 20:07:00 【biyusr】
FastTunnel
FastTunnel Yes, it is .net core Developed a cross platform intranet penetration tool , It can expose intranet services to the public network for access by itself or anyone .
Unlike other penetration tools :FastTunnel The project is dedicated to creating an easy to scale 、 Easy to maintain intranet penetration framework , Anyone can redevelop based on this framework , You can go straight through nuget Installation depends on development , Of course, it's also a tool out of the box .
Won the GVP Open source project
FastTunnel Won open source China 2020 Most valuable open source projects

Open source warehouse address
github: https://github.com/SpringHgui/FastTunnel
gitee: https://gitee.com/Hgui/FastTunnel
Official website :https://suidao.io
What is intranet penetration ?
Generally speaking , If you deploy a website or application on the intranet , Only other network devices in the Intranet can access ; But if you want anyone on the public network to have access to your intranet applications , We have to take some measures , Intranet penetration is applied in this context .
FastTunnel What can be done ?
Home station
WeChat development
Remote desktop
erp Interworking
svn Code warehouse
Port forwarding
iot The Internet of things
Scenes, etc. , Not limited to the above
Build your own intranet penetration platform
1. In the warehouse releases Page download the corresponding program
2. Modify the client and server configuration files according to your own needs appsettings.json
3. Server operation FastTunnel.Server
4. Client running FastTunnel.Cient ( The client can run on any device in the intranet )
Configuration example
1. Access intranet with custom domain name web service
For example, you have a cloud server , Public network ip The address is 110.110.110.110 , And you have a domain name suidao.io, You want to visit test.suidao.io You can visit a website deployed on your own computer .
You need to add a new domain address DNS analysis , The type is A, The name is * , ipv4 The address is 110.110.110.110 , such *.abc.com All of the domain names will point to 110.110.110.110 Server for , because FastTunnel Default monitor http Port is 1270, So visit http://test.abc.com:1270.
Server profile :config/appsettings.json
"ServerSettings": {// Mandatory The default value is"BindAddr": "0.0.0.0",// Mandatory The default value is"BindPort": 1271,// Custom domain name web Penetration must"WebDomain": "suidao.io",// Port number of the service listening , When visiting a custom domain name site url by http://{SubDomain}.{Domain}:{ProxyPort_HTTP}/// web Penetration must"WebProxyPort": 1270,// Optional ,ngixn After the reverse proxy, the port number after the domain name can be omitted for access"WebHasNginxProxy": false,// Optional , Visit the white list , Not on the white list ip Refuse"WebAllowAccessIps": [],// Optional , Open or not SSH, It will not be processed after being disabled SSH Type port forwarding . Default false."SSHEnabled": true}
Client configuration file :
"ClientSettings": {"Common": {// Server public network ip, Corresponding to the server configuration file BindAddr, Support domain name"ServerAddr": "test.cc",// Server communication port , Corresponding to the server configuration file BindPort"ServerPort": 1271},"Webs": [{// The local site is located in the intranet ip"LocalIp": "127.0.0.1",// The port number of the site listening"LocalPort": 8080,// subdomain , When visiting this site url by http://{SubDomain}.{Domain}:{ProxyPort_HTTP}/"SubDomain": "test", // test.test.cc}]}
2. How to remove the port number after the domain name
Deploy on the server side nginx, adopt nginx The reverse agent will 80 Port traffic is forwarded to 1270 port ,nginx The configuration example of is as follows :
http {# add to resolverresolver 8.8.8.8;# Set up *.abc.com Forward to 1270 portserver {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;}# Optionalerror_log /var/log/nginx/error_ft.log error;}}
3. Configure port forwarding
Suppose the Intranet has a mysql The service port is 3306, On the intranet ip The address is 192.168.1.100, You want to visit suidao.io:33306 The request of the port is forwarded to mysql On , The following configuration is required :
1. The server configuration file does not change
2. The client configuration is as follows
"ClientSettings": {"Common": {// Server public network ip, Corresponding to the server configuration file BindAddr, Support domain name"ServerAddr": "test.cc",// Server communication port , Corresponding to the server configuration file BindPort"ServerPort": 1271},"Webs": [],/*** ssh through ,ssh Access intranet host* access #ssh -oPort=12701 {root}@{ServerAddr}* ServerAddr Fill in the server ip,root Corresponding intranet user name*/"SSH": [{"LocalIp": "192.168.1.100","LocalPort": 3306,"RemotePort": 33306}]}
3. Remote intranet computers
windows: Just put the 3306 Port replacement 3389
linux: Just put the 3306 Port replacement 22
Conclusion
I believe smart you have understood how to configure , And what each parameter represents , If there's something you don't understand , It can be mentioned issue To the author . Interested friends can go to clone Come down and play , Demand for Authors 、bug, If you can submit code to participate in development and improvement, it will be more perfect .
边栏推荐
- kvm虚拟化
- 答应我,看完别再写狗屎代码了。。
- 超强接口协作平台如何打造:细数Apifox的六把武器
- 【shell】转载:批量替换 find awk sed xargs
- Leetcode daily practice - 27. Remove elements
- 【二叉树】将二叉搜索树变平衡
- 金融机构盘点
- 2022/07/26 learning notes (day16) linked list and stack
- Kingbases SQL language reference manual of Jincang database (13. SQL statement: alter synonym to comment)
- [PHP] save session data to redis
猜你喜欢

几张图帮你捋清“中国金融机构体系”

【ffmpeg】给视频文件添加时间戳 汇总

win11 edge怎么卸载?win11 edge浏览器彻底卸载的方法教程

Latte dht-phev products are very popular. Will the sales volume make Li Ruifeng figure it out?

DevOps 实践多年,最痛的居然是?

Leetcode daily practice - 26. Delete duplicates in an ordered array

负载均衡的使用

【PHP】将 SESSION 数据保存到 Redis

使用ECS和OSS搭建个人网盘

N圆最密堆积、最小外接正方形的matlab求解(二维、三维等圆Packing 问题)
随机推荐
These 22 drawing (visualization) methods are very important and worth collecting!
【二叉树】将二叉搜索树变平衡
3万脱发人,撑起一个IPO
BluePrism流程业务对象的组件功能介绍-RPA第三章
Zhongtian steel uses tdengine in GPS and AIS scheduling
numpy.newaxis
Zabbix调用api检索方法
猎聘问卷星,成为微信「寄生虫」
go+mysql+redis+vue3简单聊室,第6弹:使用vue3和element-plus调用接口
Household deposits increased by 10.33 trillion yuan in the first half of the year, with an average of 57.1 billion deposits pouring into banks every day
使用ECS和OSS搭建个人网盘
客户案例|生学教育依托观测云打造可观测智慧教育新生态
十大排序详解
罗永浩赌上最后一次创业信用
【PHP】MySQL原生PHP操作-天龙八步
Student‘s t分布
go+mysql+redis+vue3简单聊室,第5弹:使用消息队列和定时任务同步消息到mysql
2022年下半年(软考高级)信息系统项目管理师报名条件
2000字助你精通防抖与节流
JWT 实现登录认证 + Token 自动续期方案,这才是正确的使用姿势!