Code Monkey home page Code Monkey logo

fasttunnel's Introduction

FastTunnel

License Build status Nuget Nuget

README | 中文介绍


Sponsor

If FastTunel gives you value, might as well ☕ sponsor a cup of coffee~。


What is FastTunnel?

  • FastTunnel is a high-performance cross-platform intranet penetration tool. With it, you can expose intranet services to the public network for yourself or anyone to access.
  • Unlike other penetration tools, the FastTunnel project is committed to creating an easy-to-extensible and easy-to-maintain intranet penetration framework.
  • You can build your own penetration application by referencing the nuget package of FastTunnel.Core, and target the business extension functions you need.

Docs

https://docs.suidao.io

Enjoy Now

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.

Repositories

GitHub
Gitee

If helpful, click on ⭐Star to support this project, please submit an issue if you have needs and bugs, and welcome coder to PR

GVP Projrct

img1


What can FastTunel do?

  • Remote intranet computer Windows/Linux/Mac
  • Use a custom domain name to access intranet web services (usually used for WeChat development)
  • Port forwarding/port mapping, access services provided by any port on the intranet mysql, redis, ftp, etc.
  • p2p penetration
  • Support binding multiple domain names to access intranet services
  • Support domain name whitelist restriction
  • Support client identity verification

Contributors

Join QQ Group

License

Apache License 2.0

fasttunnel's People

Contributors

cnwzhu avatar dependabot[bot] avatar ha-ei avatar ioxygen avatar jalalimahdi avatar mcq12322 avatar springhgui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fasttunnel's Issues

无域名场景下的使用

非常感谢提供这么好用的软件
我的使用场景如下:
场景为内部网络(内部网络分多个网段,网段之间需要穿透),无DNS

我想通过request请求的cookie中的值来区分,请问应该怎么处理?
比如:cookie里面的参数("tunel-targe":"test"),表示访问test.test.cc 这个节点

@SpringHgui 能给个思路吗? 非常感谢

Reading is already in progress.

[10:38:52 INF] Executed endpoint 'Fallback {*path:nonfile}'
[10:38:52 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - - - 200 - - 0.1739ms
[10:38:58 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - -
[10:38:58 INF] Executing endpoint 'Fallback {*path:nonfile}'
[10:38:58 INF] Executed endpoint 'Fallback {*path:nonfile}'
[10:38:58 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - - - 200 - - 0.1727ms
[10:38:59 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - -
[10:38:59 INF] Executing endpoint 'Fallback {*path:nonfile}'
[10:38:59 INF] Executed endpoint 'Fallback {*path:nonfile}'
[10:38:59 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - - - 200 - - 0.1560ms
[10:39:00 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - -
[10:39:00 INF] Executing endpoint 'Fallback {*path:nonfile}'
[10:39:00 INF] Executed endpoint 'Fallback {*path:nonfile}'
[10:39:00 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - - - 200 - - 0.2077ms
[10:39:00 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - -
[10:39:00 INF] Executing endpoint 'Fallback {*path:nonfile}'
[10:39:00 INF] Executed endpoint 'Fallback {*path:nonfile}'
[10:39:00 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - - - 200 - - 0.2032ms
[10:39:01 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - -
[10:39:01 INF] Executing endpoint 'Fallback {*path:nonfile}'
[10:39:01 INF] Executed endpoint 'Fallback {*path:nonfile}'
[10:39:01 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - - - 200 - - 0.1733ms
[10:39:01 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - -
[10:39:01 INF] Executing endpoint 'Fallback {*path:nonfile}'
[10:39:01 INF] Executed endpoint 'Fallback {*path:nonfile}'
[10:39:01 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/pos/Test - - - 200 - - 0.2103ms
[11:57:10 INF] 客户端关闭  ::ffff:61.140.25.26 当前在线数:0
[11:57:10 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/ - - - 101 - - 4920014.8848ms
[15:22:14 ERR] Unhandled exception while processing 0HMP67I1HU77G.
System.InvalidOperationException: Reading is already in progress.
   at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_AlreadyReading()
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
   at System.IO.Pipelines.Pipe.ReadAsync(CancellationToken token)
   at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(CancellationToken cancellationToken)
   at FastTunnel.Core.Forwarder.FastTunelProtocol.TryAnalysisPipeAsync() in /src/FastTunnel.Core/Forwarder/FastTunelProtocol.cs:line 52
   at FastTunnel.Core.Forwarder.Kestrel.MiddleWare.InitializerMiddleware.OnConnectionAsync(ConnectionContext context) in /src/FastTunnel.Core/Forwarder/Kestrel/MiddleWare/InitializerMiddleware.cs:line 37
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync()
[06:20:12 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/ - -
[06:20:12 INF] 客户端连接 ::ffff:61.140.25.26 当前在线数:1
[06:22:29 ERR] Unhandled exception while processing 0HMP67I1HU77O.
System.InvalidOperationException: Reading is already in progress.
   at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_AlreadyReading()
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
   at System.IO.Pipelines.Pipe.ReadAsync(CancellationToken token)
   at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(CancellationToken cancellationToken)
   at FastTunnel.Core.Forwarder.FastTunelProtocol.TryAnalysisPipeAsync() in /src/FastTunnel.Core/Forwarder/FastTunelProtocol.cs:line 52
   at FastTunnel.Core.Forwarder.Kestrel.MiddleWare.InitializerMiddleware.OnConnectionAsync(ConnectionContext context) in /src/FastTunnel.Core/Forwarder/Kestrel/MiddleWare/InitializerMiddleware.cs:line 37
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync()
[06:22:32 ERR] Unhandled exception while processing 0HMP67I1HU77P.
System.InvalidOperationException: Reading is already in progress.
   at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_AlreadyReading()
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
   at System.IO.Pipelines.Pipe.ReadAsync(CancellationToken token)
   at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(CancellationToken cancellationToken)
   at FastTunnel.Core.Forwarder.FastTunelProtocol.TryAnalysisPipeAsync() in /src/FastTunnel.Core/Forwarder/FastTunelProtocol.cs:line 52
   at FastTunnel.Core.Forwarder.Kestrel.MiddleWare.InitializerMiddleware.OnConnectionAsync(ConnectionContext context) in /src/FastTunnel.Core/Forwarder/Kestrel/MiddleWare/InitializerMiddleware.cs:line 37
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync()
[06:22:34 ERR] Unhandled exception while processing 0HMP67I1HU77Q.
System.InvalidOperationException: Reading is already in progress.
   at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_AlreadyReading()
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
   at System.IO.Pipelines.Pipe.ReadAsync(CancellationToken token)
   at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(CancellationToken cancellationToken)
   at FastTunnel.Core.Forwarder.FastTunelProtocol.TryAnalysisPipeAsync() in /src/FastTunnel.Core/Forwarder/FastTunelProtocol.cs:line 52
   at FastTunnel.Core.Forwarder.Kestrel.MiddleWare.InitializerMiddleware.OnConnectionAsync(ConnectionContext context) in /src/FastTunnel.Core/Forwarder/Kestrel/MiddleWare/InitializerMiddleware.cs:line 37
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync()
[06:23:20 INF] Starting up!
[06:23:20 WRN] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
[06:23:20 INF] User profile is available. Using '/root/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
[06:23:20 WRN] Overriding address(es) 'http://*:1270'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.
[06:23:20 INF] Now listening on: http://[::]:1270
[06:23:20 INF] Application started. Press Ctrl+C to shut down.
[06:23:20 INF] Hosting environment: Production
[06:23:20 INF] Content root path: /app
[06:23:29 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/ - -
[06:23:29 INF] 客户端连接 ::ffff:61.140.25.26 当前在线数:1
[06:23:34 ERR] Unhandled exception while processing 0HMPC614CNJ9O.
System.InvalidOperationException: Reading is already in progress.
   at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_AlreadyReading()
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
   at System.IO.Pipelines.Pipe.ReadAsync(CancellationToken token)
   at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(CancellationToken cancellationToken)
   at FastTunnel.Core.Forwarder.FastTunelProtocol.TryAnalysisPipeAsync() in /src/FastTunnel.Core/Forwarder/FastTunelProtocol.cs:line 52
   at FastTunnel.Core.Forwarder.Kestrel.MiddleWare.InitializerMiddleware.OnConnectionAsync(ConnectionContext context) in /src/FastTunnel.Core/Forwarder/Kestrel/MiddleWare/InitializerMiddleware.cs:line 33
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync()
[06:23:35 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/ - -
[06:23:35 INF] Executing endpoint 'Fallback {*path:nonfile}'
[06:23:35 INF] Executed endpoint 'Fallback {*path:nonfile}'
[06:23:35 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/ - - - 200 - - 6.5813ms
[06:23:36 INF] Request starting HTTP/1.1 GET http://8.134.14.93:1270/favicon.ico - -
[06:23:36 INF] Request finished HTTP/1.1 GET http://8.134.14.93:1270/favicon.ico - - - 404 0 - 2.5841ms
[06:23:37 ERR] Unhandled exception while processing 0HMPC614CNJ9Q.
System.InvalidOperationException: Reading is already in progress.
   at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_AlreadyReading()
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
   at System.IO.Pipelines.Pipe.ReadAsync(CancellationToken token)
   at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(CancellationToken cancellationToken)
   at FastTunnel.Core.Forwarder.FastTunelProtocol.TryAnalysisPipeAsync() in /src/FastTunnel.Core/Forwarder/FastTunelProtocol.cs:line 52
   at FastTunnel.Core.Forwarder.Kestrel.MiddleWare.InitializerMiddleware.OnConnectionAsync(ConnectionContext context) in /src/FastTunnel.Core/Forwarder/Kestrel/MiddleWare/InitializerMiddleware.cs:line 33
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync()

server 端崩溃

1,客户端程序 反复打开,关闭,操作几次,服务端直接崩溃;
2,客户端程序开启时,经常出现“通信已建立”的日志后,不在出现 隧道建立成功的消息了。

Who is using FastTunel | 如果贵公司在尝试使用FastTunel 可以在此留下使用场景

不忘初心

FastTunel建立初衷为丰富.NET平台生态贡献一份力量,不为盈利,本项目终身免费商业授权。希望本项目给所有用户带来价值,渴望来自社区的共同完善,打造.NET平台下第一的内网穿透项目。

赞助作者

如果FastTunel给你带去的巨大的价值,不妨☕ 赞助一杯咖啡~。

填写问卷

填写模板仅为了宣传项目,给您带去了价值,不让留下您的足迹,免费给FastTunel做个宣传效果。也驱动我们更好的完善项目,给更多的人带去价值。

公司:某公司/某个人
使用场景:开发小程序,公司mysql数据库,商用提供穿透服务
当前进展:调研中|落地中|已落地
您的评价:非常不错的项目,解决了我的问题
使用建议:效果很好,完美解决我司业务需求

identity

First, Thank for great project
I've been looking for a tunnel tool that supports .net for a long time, and now it seems I've found it
I have a question: client identity verification => this is check account user/pass when connect server ?
image
I'm deploying to a client, but I'm worried others can connect freely without a user/pass
Thanks

FastTunnel.Server reads the configuration file but starts with the default settings

I have downloaded and extracted FastTunnel.Server.linux-x64.tar.gz (v2.1.1) file to run on the ubuntu 20.04 server (amd64) machine.

Then, I changed the permission of the exec file (chmod +x FastTunnel.Server) and edited the following config file appsettings.json in the same directory of FastTunnel:

{
"AllowedHosts": "*",
"EnableFileLog": false,
"urls": "http://*:443",
"FastTunnel": {
"BasePort": 443,
"WebDomain": "laboratory.ddns.net",
"WebAllowAccessIps": [ ],
"EnableForward": true,
"Tokens": [ ]
}
}

Then, I exec the FastTunnel.Server in the ubuntu server (amd64), that shows:

larsid@instance-1:~/FastTunnel.Server.linux-x64$ ./FastTunnel.Server
[23:25:56 INF] User profile is available. Using '/home/user/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
[23:25:56 INF] Now listening on: http://[::]:1270
[23:25:56 INF] Application started. Press Ctrl+C to shut down.
[23:25:56 INF] Hosting environment: Production
[23:25:56 INF] Content root path: /home/user/FastTunnel.Server.linux-x64

And How you can see, the FastTunnel.Server reads the configuration file, but it starts with the default settings, and not with the settings defined in the config file.

存在程序崩溃bug问题

在程序建立连接后出现异常 导致服务端崩溃

2020/08/01 14:05:00.324|DEBUG|===== FastTunnel Client Start =====
2020/08/01 14:05:00.934|DEBUG|通信已建立
2020/08/01 14:05:01.071|INFO|From Server:
=====隧道已建立成功,可通过以下方式访问内网服务=====

http://test.test.cc:1270 => 127.0.0.1:8001
test.cc:1273 => 127.0.0.1:22
test.cc:1274 => 192.168.0.91:3389

====================================================
2020/08/01 14:05:01.071|ERROR|From Server:Object reference not set to an instance of an object.
2020/08/01 14:05:15.959|DEBUG|last heart recived 15.015728900000001s ago
2020/08/01 14:05:15.973|DEBUG|已退出登录

2020/08/01 14:05:15.994|DEBUG|通信已建立
2020/08/01 14:05:15.994|ERROR|System.Net.Sockets.SocketException (10004): 一个封锁操作被对 WSACancelBlockingCall 的调用 中断。
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at FastTunnel.Core.Core.FastTunnelClient.ReceiveServer(Object obj) in D:\Github\FastTunnel\FastTunnel.Core\Core\SuiDaoClient.cs:line 197

经过仔细排查后 发现位于处,可能指令分割后恰巧left变量为空 导致重复进行HandleWords函数中,且在后续逻辑中进行序列化时 失败

另有一点 建议 当我客户端远程到域名服务器时,需要考虑如果不是ip参数 需要考虑到域名dns解析,否则异常
2020/08/01 14:03:53.409|DEBUG|===== FastTunnel Client Start =====
2020/08/01 14:03:58.601|ERROR|An invalid IP address was specified.

代码位于处,可判断是否为ip或域名

是否支持数据加密?

假设Server在国外,Client在国内,做的web映射,Query的时候携带被墙的域名如Google。com 这样TCP会被重置断开,服务无法使用。

怎么设置成自动启动?

安装后需要手动启动并配置,远程桌面操作,一旦重启电脑就连不上了。如何安装成服务自动启动并自动配置参数?

服务端控台经常输出错误日志

服务端控台经常输出下面的error,用的Forwards代理,但功能还是正常能用的,而且我客户端也没10个那么多,是每刷次就会增加1个client,不知道有没有影响

[02:01:23 INF] 【0.0.0.0:1271】Accepted. There are 10 clients connected to the port
[02:01:23 ERR]
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at FastTunnel.Core.Forwarder.MiddleWare.FastTunnelSwapHandler.Handle(HttpContext context, Func`1 next) in /src/FastTunnel.Core/Forwarder/MiddleWare/FastTunnelSwapHandler.cs:line 73

关停 suidao.io 内网穿透服务体验服务的公告

suidao用户:

大家好,自 suidao 免费运行至今已有约3年零8个月左右。
免费运营期间收到用户的赞助几乎为零,每年需投入几千元的云资源费用,也没有精力去支撑运营和维护;
感谢这些年大家的支持,但是今天很遗憾的做出暂停服务的决定,云服务器已过期,且不再进行续费。
所有开源项目将不会受到影响。
 


                                                                                  FastTunnel作者 

多域名支持功能希望实现下

目前的配置文件下 webDomain只能配置一个域名,导致在多域名配置的时候只能启动多个实例来实现了,希望能够支持多域名配置

Ver 2.1.1 ARM64平台上不能正常正运作

SpringHgui 您好,
我将你的FastTunnel 2.1.1 用docker buildx 命令生产 Linux/arm64 平台的镜像,成功启动了容器, 但运作时有日志报错:
[10:31:15 WRN] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
� [10:31:15 INF] User profile is available. Using '/root/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
� 2[10:31:16 INF] Now listening on: http://[::]:1270
� [10:31:16 INF] Creating key {a6a83795-00ce-49a0-aa75-dd09d6be8975} with creation date 2022-07-23 10:31:16Z, activation date 2022-07-23 10:31:16Z, and expiration date 2022-10-21 10:31:16Z.
� [10:31:16 WRN] No XML encryptor configured. Key {a6a83795-00ce-49a0-aa75-dd09d6be8975} may be persisted to storage in unencrypted form.
� v[10:31:16 INF] Writing data to file '/root/.aspnet/DataProtection-Keys/key-a6a83795-00ce-49a0-aa75-dd09d6be8975.xml'.
� ?[10:31:16 INF] Application started. Press Ctrl+C to shut down.
� /[10:31:16 INF] Hosting environment: Production
� '[10:31:16 INF] Content root path: /app
� M[10:31:26 INF] Request starting HTTP/1.1 GET http://laimw.ddns.net:1270/ - -
� M[10:31:26 INF] Request starting HTTP/1.1 GET http://laimw.ddns.net:1270/ - -
� I[10:31:26 INF] 客户端连接 ::ffff:42.200.214.109 当前在线数:2
� I[10:31:26 INF] 客户端连接 ::ffff:42.200.214.109 当前在线数:2
� U[10:31:32 INF] 【0.0.0.0:1274】Accepted. There are 1 clients connected to the port
� o[10:31:32 INF] Request starting HTTP/1.1 PROXY http://laimw.ddns.net:1270/3714a2fdedfe4de29dc879f5ef543284 - -
� �[10:31:32 ERR]
� CSystem.Threading.Tasks.TaskCanceledException: A task was canceled.
� at FastTunnel.Core.Forwarder.MiddleWare.FastTunnelSwapHandler.Handle(HttpContext context, Func1 next) in /src/FastTunnel.Core/Forwarder/MiddleWare/FastTunnelSwapHandler.cs:line 73 � [10:31:32 INF] Request finished HTTP/1.1 PROXY http://laimw.ddns.net:1270/3714a2fdedfe4de29dc879f5ef543284 - - - 200 0 - 250.3935ms � U[10:31:36 INF] 【0.0.0.0:1274】Accepted. There are 2 clients connected to the port � o[10:31:36 INF] Request starting HTTP/1.1 PROXY http://laimw.ddns.net:1270/912455a3017f497ebf16076b6e4a294f - - � M[10:31:37 INF] Request starting HTTP/1.1 GET http://laimw.ddns.net:1270/ - - � a[10:31:37 INF] Request finished HTTP/1.1 GET http://laimw.ddns.net:1270/ - - - 101 - - 38.2212ms � M[10:31:47 INF] Request starting HTTP/1.1 GET http://laimw.ddns.net:1270/ - - � a[10:31:47 INF] Request finished HTTP/1.1 GET http://laimw.ddns.net:1270/ - - - 101 - - 17.9902ms � �[10:31:55 ERR] � CSystem.Threading.Tasks.TaskCanceledException: A task was canceled. � at FastTunnel.Core.Forwarder.MiddleWare.FastTunnelSwapHandler.Handle(HttpContext context, Func1 next) in /src/FastTunnel.Core/Forwarder/MiddleWare/FastTunnelSwapHandler.cs:line 73
� [10:31:55 INF] Request finished HTTP/1.1 PROXY http://laimw.ddns.net:1270/912455a3017f497ebf16076b6e4a294f - - - 200 0 - 19663.7099ms
� M[10:31:57 INF] Request starting HTTP/1.1 GET http://laimw.ddns.net:1270/ - -
� a[10:31:58 INF] Request finished HTTP/1.1 GET http://laimw.ddns.net:1270/ - - - 101 - - 11.3246ms
� M[10:32:08 INF] Request starting HTTP/1.1 GET http://laimw.ddns.net:1270/ - -
� a[10:32:08 INF] Request finished HTTP/1.1 GET http://laimw.ddns.net:1270/ - - - 101 - - 11.3320ms
� M[10:32:18 INF] Request starting HTTP/1.1 GET http://laimw.ddns.net:1270/ - -
� a[10:32:18 INF] Request finished HTTP/1.1 GET http://laimw.ddns.net:1270/ - - - 101 - - 10.4260ms

请帮忙解决问题,谢谢!

大的js文件有问题

一个148K的js文件打开有问题,其它小的文件没有任何问题,有谁见过?

在腾讯云上运行服务端直接报错!Cannot assign requested address

2021/05/15 21:26:33.299|DEBUG|===== FastTunnel Server Start =====
2021/05/15 21:26:33.517|DEBUG|FastTunnel Server Start
2021/05/15 21:26:33.543|ERROR|System.Net.Sockets.SocketException (99): Cannot assign requested address
at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at FastTunnel.Core.Listener1..ctor(String ip, Int32 port, ILogger1 logerr, Action2 acceptCustomerHandler, T data) at FastTunnel.Core.Core.FastTunnelServer.ListenFastTunnelClient() at FastTunnel.Core.Core.FastTunnelServer.Run() at FastTunnel.Server.Program.Run(IServiceProvider servicesProvider) at FastTunnel.Server.Program.Main(String[] args) Cannot assign requested address System.Net.Sockets.SocketException (99): Cannot assign requested address at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at FastTunnel.Core.Listener1..ctor(String ip, Int32 port, ILogger1 logerr, Action2 acceptCustomerHandler, T data)
at FastTunnel.Core.Core.FastTunnelServer.ListenFastTunnelClient()
at FastTunnel.Core.Core.FastTunnelServer.Run()
at FastTunnel.Server.Program.Run(IServiceProvider servicesProvider)
at FastTunnel.Server.Program.Main(String[] args)

配置文件:

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"ServerSettings": {
"BindAddr": "152.136.110.82", // 可选
"BindPort": 1271, // 可选

"Domain": "codecocoa.com", // 自定义域名web穿透必须

// 服务监听的端口号, 访问自定义域名站点时url为 http://{SubDomain}.{Domain}:{ProxyPort_HTTP}/
"ProxyPort_HTTP": 1270, // web穿透必须
"HasNginxProxy": false // 可选,ngixn反向代理后可省略域名后的端口号进行访问

}
}

服务端[Forward]建立Swap超时,过一短时间崩溃

客户端和服务端可以正常链接使用
Server linux-64
client window-x64
版本 #V2.04
当tcp转发后
info: FastTunnel.Core.Handlers.Server.LoginHandler[0] 【0.0.0.0:1003】Accepted. There are 1 clients connected to the port info: FastTunnel.Core.Handlers.Server.LoginHandler[0] 【0.0.0.0:1003】Accepted. There are 2 clients connected to the port fail: FastTunnel.Core.Handlers.Server.LoginHandler[0] [Forward]建立Swap超时 2c191d25fa87402a9**** fail: FastTunnel.Core.Handlers.Server.LoginHandler[0] [Forward]建立Swap超时 1654a546e2414baa9****
过段时间客户端链接超时
客户端链接超时 The remote party closed the WebSocket connection without completing the close handshake.
服务端报错提示
`info: FastTunnel.Core.Handlers.Server.LoginHandler[0]
【0.0.0.0:1003】Accepted. There are 1 clients connected to the port
info: FastTunnel.Core.Handlers.Server.LoginHandler[0]
【0.0.0.0:1003】Accepted. There are 2 clients connected to the port
fail: FastTunnel.Core.Handlers.Server.LoginHandler[0]
[Forward]建立Swap超时 2c191d25fa87402a9****
fail: FastTunnel.Core.Handlers.Server.LoginHandler[0]
[Forward]建立Swap超时 1654a546e2414baa9****

fail: FastTunnel.Core.MiddleWares.FastTunnelClientHandler[0]
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at FastTunnel.Core.Forwarder.MiddleWare.FastTunnelSwapHandler.Handle(HttpContext context, Func1 next) in E:\Github\FastTunnel\FastTunnel.Core\Forwarder\MiddleWare\FastTunnelSwapHandler.cs:line 65 fail: Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets[0] Unexpected exception in SocketConnection.CancelConnectionClosedToken. System.AggregateException: One or more errors occurred. (An attempt was made to transition a task to a final state when it had already completed.) ---> System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed. at System.Threading.Tasks.TaskCompletionSource1.SetResult(TResult result)
at FastTunnel.Core.Forwarder.MiddleWare.FastTunnelSwapHandler.<>c.b__3_0(Object task) in E:\Github\FastTunnel\FastTunnel.Core\Forwarder\MiddleWare\FastTunnelSwapHandler.cs:line 62
at System.Threading.CancellationTokenSource.CallbackNode.<>c.b__9_0(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.CancellationTokenSource.CallbackNode.ExecuteCallback()
at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
--- End of inner exception stack trace ---
at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException)
at System.Threading.CancellationTokenSource.Cancel()
at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal.SocketConnection.CancelConnectionClosedToken()
fail: FastTunnel.Core.MiddleWares.FastTunnelClientHandler[0]
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at FastTunnel.Core.Forwarder.MiddleWare.FastTunnelSwapHandler.Handle(HttpContext context, Func1 next) in E:\Github\FastTunnel\FastTunnel.Core\Forwarder\MiddleWare\FastTunnelSwapHandler.cs:line 65 fail: Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets[0] Unexpected exception in SocketConnection.CancelConnectionClosedToken. System.AggregateException: One or more errors occurred. (An attempt was made to transition a task to a final state when it had already completed.) ---> System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed. at System.Threading.Tasks.TaskCompletionSource1.SetResult(TResult result)
at FastTunnel.Core.Forwarder.MiddleWare.FastTunnelSwapHandler.<>c.b__3_0(Object task) in E:\Github\FastTunnel\FastTunnel.Core\Forwarder\MiddleWare\FastTunnelSwapHandler.cs:line 62
at System.Threading.CancellationTokenSource.CallbackNode.<>c.b__9_0(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.CancellationTokenSource.CallbackNode.ExecuteCallback()
at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
--- End of inner exception stack trace ---
at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException)
at System.Threading.CancellationTokenSource.Cancel()
at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal.SocketConnection.CancelConnectionClosedToken()
`

how to install on UBUNTU vps ?

Hello .

can you give me the command to install the server FastTunnel on Ubuntu Vps , Please ?

and how to run it on Android to connect to the server and create the tunnel like a VPN.

What app can i use and how ?

i will wait your reply

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.