vpnhood / VpnHood

Undetectable Fast Portable VPN
GNU Lesser General Public License v2.1
1k stars 151 forks source link

VPN Not Connect #602

Closed msalehip closed 2 months ago

msalehip commented 2 months ago

Hello Everyone, I have a docker server in Germany and I configure it but I can't connect to it. The diagnosis report is shown below:

`13:04:25.7214 | Info | AppVersion: 4.6.553.0

13:04:25.7215 | Info | Time: 2024-08-30 09:34:25Z

13:04:25.7215 | Info | OS: Microsoft Windows NT 10.0.22631.0, 64-bit

13:04:25.7215 | Info | UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0

13:04:25.7263 | Info | UserSettings: { "Logging": { "LogToConsole": true, "LogToFile": false, "LogAnonymous": true, "LogEventNames": [], "LogLevel": "Information" }, "CultureCode": null, "ClientProfileId": "447da90e-29b7-48be-955e-7bdc2ef6e1a0", "ServerLocation": null, "MaxDatagramChannelCount": 4, "TunnelClientCountry": true, "AppFilters": [], "AppFiltersMode": "All", "UseUdpChannel": false, "DropUdpPackets": false, "IncludeLocalNetwork": false, "IncludeIpRanges": [ "0.0.0.0-255.255.255.255", "::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" ], "ExcludeIpRanges": [], "PacketCaptureIncludeIpRanges": [ "0.0.0.0-255.255.255.255", "::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" ], "PacketCaptureExcludeIpRanges": [], "AllowAnonymousTracker": true, "DnsServers": null, "DomainFilter": { "Blocks": [], "Excludes": [], "Includes": [] }, "DebugData1": null, "DebugData2": null }

13:04:25.7264 | Info | Country: -

13:04:25.7264 | Info | VpnHood Client is Connecting ...

13:04:25.7264 | Info | TokenId: **-a5d5-78686062f13b, SupportId:

13:04:25.7267 | Trac | Checking the Internet connection...

13:04:25.7308 | Info | PingTest: Started, RemoteAddress: 8.8.8.8, Timeout: 10000...

13:04:25.7312 | Info | PingTest: Started, RemoteAddress: 1.1.1.1, Timeout: 10000...

13:04:25.7314 | Info | UdpTest: Started, DnsName: www.google.com, NsServer: 8.8.8.8:53, Timeout: 10000...

13:04:25.7316 | Info | UdpTest: Started, DnsName: www.google.com, NsServer: 1.1.1.1:53, Timeout: 10000...

13:04:25.7319 | Info | HttpTest: Started, Url: https://www.google.com/, Timeout: 10000...

13:04:25.7321 | Info | HttpTest: Started, Url: https://www.quad9.net/, Timeout: 10000...

13:04:25.7322 | Info | HttpTest: Started, Url: https://www.microsoft.com/, Timeout: 10000...

13:04:25.7724 | Info | UdpTest: Succeeded, DnsName: www.google.com, NsServer: 8.8.8.8:53.

13:04:25.7734 | Info | UdpTest: Succeeded, DnsName: www.google.com, NsServer: 1.1.1.1:53.

13:04:25.8053 | Info | PingTest: Succeeded, RemoteAddress: 8.8.8.8.

13:04:25.8557 | Info | PingTest: Succeeded, RemoteAddress: 1.1.1.1.

13:04:26.3806 | Info | HttpTest: Succeeded, Url: https://www.microsoft.com/.

13:04:26.3810 | Trac | Checking the VpnServer ping...

13:04:26.3811 | Info | PingTest: Started, RemoteAddress: 5...69, Timeout: 10000...

13:04:26.4961 | Info | PingTest: Succeeded, RemoteAddress: 5...69.

13:04:26.4963 | Trac | Pinging server is OK.

13:04:26.5011 | Info | Client UseUdpChannel: False, DropUdpPackets: False, IncludeLocalNetwork: False, MinWorkerThreads: 12, CompletionPortThreads: 1, ClientIpV6: False

13:04:26.5011 | Info | Client ClientVersion: 4.6.553.0, ClientProtocolVersion: 4, ClientId: **-8f1d-abeec881704a

13:04:26.5011 | Info | Client Client state is changed. NewState: Connecting

13:04:26.5013 | Trac | Client Session | Sending a request. RequestCode: Hello, RequestId: b316c3a7-10ce-4975-b976-fc1bd61d8bdd:client

13:04:26.6420 | Info | HttpTest: Succeeded, Url: https://www.google.com/.

13:04:32.3740 | Warn | HttpTest: Failed!, Url: https://www.quad9.net/. Message: The request was canceled due to the configured HttpClient.Timeout of 10 seconds elapsing.

13:04:35.7338 | Warn | HttpTest: Failed!, Url: https://www.quad9.net/. Message: The request was canceled due to the configured HttpClient.Timeout of 10 seconds elapsing.

13:04:46.0696 | Erro | Session | Disposing... Exception: System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.. ---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host. --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory1 buffer, CancellationToken cancellationToken) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at System.Threading.Tasks.ValueTask1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at VpnHood.Tunneling.Utils.HttpUtil.ReadHeadersAsync(Stream stream, CancellationToken cancellationToken, Int32 maxLength) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Tunneling\Utils\HttpUtil.cs:line 20 at VpnHood.Tunneling.Utils.HttpUtil.ReadHeadersAsync(Stream stream, CancellationToken cancellationToken, Int32 maxLength) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Tunneling\Utils\HttpUtil.cs:line 42 at VpnHood.Client.ConnectorServices.ConnectorServiceBase.CreateClientStream(TcpClient tcpClient, Stream sslStream, String streamId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorServiceBase.cs:line 79 at VpnHood.Client.ConnectorServices.ConnectorServiceBase.GetTlsConnectionToServer(String streamId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorServiceBase.cs:line 112 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](Byte[] request, String requestId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 80 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 39 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 45 at VpnHood.Client.VpnHoodClient.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 835 at VpnHood.Client.VpnHoodClient.ConnectInternal(CancellationToken cancellationToken, Boolean allowRedirect) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 652 at VpnHood.Client.VpnHoodClient.Connect(CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 278

13:04:46.0704 | Trac | Shutting down...

13:04:46.0704 | Info | Client state is changed. NewState: Disconnecting

13:04:46.0790 | Trac | Disposing the PacketCapture...

13:04:46.0790 | Trac | Disposing ClientHost...

13:04:46.0790 | Trac | Disposing Tunnel...

13:04:46.0790 | Trac | Disposing ProxyManager...

13:04:46.0790 | Trac | Disposing Nat...

13:04:46.0790 | Trac | Disposing ConnectorService...

13:04:46.0791 | Info | Client state is changed. NewState: Disposed

13:04:46.0822 | Info | Bye Bye!

13:04:46.0834 | Erro | Could not connect. Exception: System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.. ---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host. --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory1 buffer, CancellationToken cancellationToken) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at System.Threading.Tasks.ValueTask1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at VpnHood.Tunneling.Utils.HttpUtil.ReadHeadersAsync(Stream stream, CancellationToken cancellationToken, Int32 maxLength) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Tunneling\Utils\HttpUtil.cs:line 20 at VpnHood.Tunneling.Utils.HttpUtil.ReadHeadersAsync(Stream stream, CancellationToken cancellationToken, Int32 maxLength) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Tunneling\Utils\HttpUtil.cs:line 42 at VpnHood.Client.ConnectorServices.ConnectorServiceBase.CreateClientStream(TcpClient tcpClient, Stream sslStream, String streamId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorServiceBase.cs:line 79 at VpnHood.Client.ConnectorServices.ConnectorServiceBase.GetTlsConnectionToServer(String streamId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorServiceBase.cs:line 112 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](Byte[] request, String requestId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 80 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 39 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 45 at VpnHood.Client.VpnHoodClient.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 835 at VpnHood.Client.VpnHoodClient.ConnectInternal(CancellationToken cancellationToken, Boolean allowRedirect) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 652 at VpnHood.Client.VpnHoodClient.Connect(CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 278 at VpnHood.Client.Diagnosing.Diagnoser.Diagnose(VpnHoodClient vpnHoodClient, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\Diagnosing\Diagnoser.cs:line 76 at VpnHood.Client.App.VpnHoodApp.ConnectInternal(Token token, String serverLocationInfo, String userAgent, Boolean allowUpdateToken, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client.App\VpnHoodApp.cs:line 587 at VpnHood.Client.App.VpnHoodApp.ConnectInternal(Token token, String serverLocationInfo, String userAgent, Boolean allowUpdateToken, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client.App\VpnHoodApp.cs:line 618 at VpnHood.Client.App.VpnHoodApp.Connect(Nullable1 clientProfileId, String serverLocation, Boolean diagnose, String userAgent, Boolean throwException, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client.App\VpnHoodApp.cs:line 481

trudyhood commented 2 months ago

Your server does not listen to the port, or it is not running the VpnHood server. Make sure you have mapped your docker container port correctly and set up the storage folder. You can also send me the server log. Usually, using the Linux installer is more straightforward than docker for the VpnHood server.

msalehip commented 2 months ago

Thank you for your response. Here is my server log. It was working a month ago.

[2024-08-30 22:02:16] 2024/08/30 18:32:16.314 | Info | | [2024-08-30 22:02:16] Using FileAccessManager. AccessFolder: /app/storage/access [2024-08-30 22:02:16] [2024-08-30 22:02:16] 2024/08/30 18:32:16.365 | Info | | FileAccessManager [2024-08-30 22:02:16] Creating Certificate file: /app/storage/access/certificates/default.pfx [2024-08-30 22:02:16] [2024-08-30 22:02:18] 2024/08/30 18:32:18.046 | Info | | FileAccessManager [2024-08-30 22:02:18] ServerLocation: DE/Bavaria [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.141 | Warn | | [2024-08-30 22:02:18] There is no token in the store! Use the following command to create one: [2024-08-30 22:02:18] dotnet VpnHoodServer.dll gen -? [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.177 | Info | | Server [2024-08-30 22:02:18] Module: VpnHood.Server, Version=4.6.553.0, Culture=neutral, PublicKeyToken=null [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.189 | Info | | Server [2024-08-30 22:02:18] OS: Debian GNU/Linux 12 (bookworm), X64, TotalMemory: 29 GB, Logical Cores: 6 [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.189 | Info | | Server [2024-08-30 22:02:18] IsDiagnoseMode: False [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.189 | Info | | Server [2024-08-30 22:02:18] DefaultTcpKernelSentBufferSize: 16384, DefaultTcpKernelReceiveBufferSize: 131072 [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.255 | Info | | Server [2024-08-30 22:02:18] Configuring by the Access Manager... [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.420 | Info | | Server [2024-08-30 22:02:18] Public IPv4: 5.75.198.69, Public IPv6: , IsV6Supported: False [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.484 | Info | | Server [2024-08-30 22:02:18] RemoteConfig: { [2024-08-30 22:02:18] "Tracking": { [2024-08-30 22:02:18] "TrackClientIp": false, [2024-08-30 22:02:18] "TrackLocalPort": false, [2024-08-30 22:02:18] "TrackDestinationIp": false, [2024-08-30 22:02:18] "TrackDestinationPort": false, [2024-08-30 22:02:18] "TrackUdp": true, [2024-08-30 22:02:18] "TrackTcp": true, [2024-08-30 22:02:18] "TrackIcmp": true [2024-08-30 22:02:18] }, [2024-08-30 22:02:18] "Session": { [2024-08-30 22:02:18] "Timeout": "01:00:00", [2024-08-30 22:02:18] "UdpTimeout": "00:01:00", [2024-08-30 22:02:18] "TcpTimeout": "00:15:00", [2024-08-30 22:02:18] "IcmpTimeout": "00:00:30", [2024-08-30 22:02:18] "SyncInterval": "00:20:00", [2024-08-30 22:02:18] "SyncCacheSize": 100000000, [2024-08-30 22:02:18] "MaxDatagramChannelCount": 8, [2024-08-30 22:02:18] "MaxUdpClientCount": 500, [2024-08-30 22:02:18] "MaxIcmpClientCount": 20, [2024-08-30 22:02:18] "TcpBufferSize": 8192, [2024-08-30 22:02:18] "TcpKernelSendBufferSize": null, [2024-08-30 22:02:18] "TcpKernelReceiveBufferSize": null, [2024-08-30 22:02:18] "TcpConnectTimeout": "00:00:30", [2024-08-30 22:02:18] "TcpReuseTimeout": "00:00:40", [2024-08-30 22:02:18] "MaxTcpConnectWaitCount": 500, [2024-08-30 22:02:18] "MaxTcpChannelCount": 1000, [2024-08-30 22:02:18] "NetScanLimit": null, [2024-08-30 22:02:18] "NetScanTimeout": null, [2024-08-30 22:02:18] "UseUdpProxy2": false [2024-08-30 22:02:18] }, [2024-08-30 22:02:18] "NetFilter": { [2024-08-30 22:02:18] "IncludeLocalNetwork": false, [2024-08-30 22:02:18] "PacketCaptureIncludeIpRanges": null, [2024-08-30 22:02:18] "PacketCaptureExcludeIpRanges": null, [2024-08-30 22:02:18] "IncludeIpRanges": null, [2024-08-30 22:02:18] "ExcludeIpRanges": null, [2024-08-30 22:02:18] "BlockIpV6": false [2024-08-30 22:02:18] }, [2024-08-30 22:02:18] "TcpEndPoints": [ [2024-08-30 22:02:18] "0.0.0.0:443",

[2024-08-30 22:02:18] ], [2024-08-30 22:02:18] "UdpEndPoints": [ [2024-08-30 22:02:18] "0.0.0.0:6058",

[2024-08-30 22:02:18] ], [2024-08-30 22:02:18] "DnsServers": [ [2024-08-30 22:02:18] "8.8.8.8", [2024-08-30 22:02:18] "8.8.4.4", [2024-08-30 22:02:18] "2001:4860:4860::8888", [2024-08-30 22:02:18] "2001:4860:4860::8844" [2024-08-30 22:02:18] ], [2024-08-30 22:02:18] "UpdateStatusInterval": "00:02:00", [2024-08-30 22:02:18] "LogAnonymizer": true, [2024-08-30 22:02:18] "ServerSecret": "2U34JGCx0CWLgKJSDHGl8Q==", [2024-08-30 22:02:18] "ConfigCode": "", [2024-08-30 22:02:18] "MinCompletionPortThreads": null, [2024-08-30 22:02:18] "MaxCompletionPortThreads": null, [2024-08-30 22:02:18] "AddListenerIpsToNetwork": null, [2024-08-30 22:02:18] "DnsChallenge": null, [2024-08-30 22:02:18] "Certificates": [ [2024-08-30 22:02:18] { [2024-08-30 22:02:18] "CommonName": "ry.naecuqaeci.net", [2024-08-30 22:02:18] "RawData": "***"} [2024-08-30 22:02:18] ] [2024-08-30 22:02:18] } [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.487 | Warn | | Server [2024-08-30 22:02:18] Remote configuration has been overwritten by the local settings. [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.489 | Info | | Server [2024-08-30 22:02:18] RemoteConfig: { [2024-08-30 22:02:18] "Tracking": { [2024-08-30 22:02:18] "TrackClientIp": false, [2024-08-30 22:02:18] "TrackLocalPort": false, [2024-08-30 22:02:18] "TrackDestinationIp": false, [2024-08-30 22:02:18] "TrackDestinationPort": false, [2024-08-30 22:02:18] "TrackUdp": true, [2024-08-30 22:02:18] "TrackTcp": true, [2024-08-30 22:02:18] "TrackIcmp": true [2024-08-30 22:02:18] }, [2024-08-30 22:02:18] "Session": { [2024-08-30 22:02:18] "Timeout": "01:00:00", [2024-08-30 22:02:18] "UdpTimeout": "00:01:00", [2024-08-30 22:02:18] "TcpTimeout": "00:15:00", [2024-08-30 22:02:18] "IcmpTimeout": "00:00:30", [2024-08-30 22:02:18] "SyncInterval": "00:20:00", [2024-08-30 22:02:18] "SyncCacheSize": 100000000, [2024-08-30 22:02:18] "MaxDatagramChannelCount": 8, [2024-08-30 22:02:18] "MaxUdpClientCount": 500, [2024-08-30 22:02:18] "MaxIcmpClientCount": 20, [2024-08-30 22:02:18] "TcpBufferSize": 8192, [2024-08-30 22:02:18] "TcpKernelSendBufferSize": null, [2024-08-30 22:02:18] "TcpKernelReceiveBufferSize": null, [2024-08-30 22:02:18] "TcpConnectTimeout": "00:00:30", [2024-08-30 22:02:18] "TcpReuseTimeout": "00:00:40", [2024-08-30 22:02:18] "MaxTcpConnectWaitCount": 500, [2024-08-30 22:02:18] "MaxTcpChannelCount": 1000, [2024-08-30 22:02:18] "NetScanLimit": null, [2024-08-30 22:02:18] "NetScanTimeout": null, [2024-08-30 22:02:18] "UseUdpProxy2": false [2024-08-30 22:02:18] }, [2024-08-30 22:02:18] "NetFilter": { [2024-08-30 22:02:18] "IncludeLocalNetwork": false, [2024-08-30 22:02:18] "PacketCaptureIncludeIpRanges": null, [2024-08-30 22:02:18] "PacketCaptureExcludeIpRanges": null, [2024-08-30 22:02:18] "IncludeIpRanges": null, [2024-08-30 22:02:18] "ExcludeIpRanges": null, [2024-08-30 22:02:18] "BlockIpV6": false [2024-08-30 22:02:18] }, [2024-08-30 22:02:18] "TcpEndPoints": [ [2024-08-30 22:02:18] "0.0.0.0:443",

[2024-08-30 22:02:18] ], [2024-08-30 22:02:18] "UdpEndPoints": [ [2024-08-30 22:02:18] "0.0.0.0:6058",

[2024-08-30 22:02:18] ], [2024-08-30 22:02:18] "DnsServers": [ [2024-08-30 22:02:18] "8.8.8.8", [2024-08-30 22:02:18] "8.8.4.4", [2024-08-30 22:02:18] "2001:4860:4860::8888", [2024-08-30 22:02:18] "2001:4860:4860::8844" [2024-08-30 22:02:18] ], [2024-08-30 22:02:18] "UpdateStatusInterval": "00:02:00", [2024-08-30 22:02:18] "LogAnonymizer": false, [2024-08-30 22:02:18] "ServerSecret": "2U34JGCx0CWLgKJSDHGl8Q==", [2024-08-30 22:02:18] "ConfigCode": "", [2024-08-30 22:02:18] "MinCompletionPortThreads": null, [2024-08-30 22:02:18] "MaxCompletionPortThreads": null, [2024-08-30 22:02:18] "AddListenerIpsToNetwork": null, [2024-08-30 22:02:18] "DnsChallenge": null, [2024-08-30 22:02:18] "Certificates": [ [2024-08-30 22:02:18] { [2024-08-30 22:02:18] "CommonName": "ry.naecuqaeci.net", [2024-08-30 22:02:18] "RawData": "***"} [2024-08-30 22:02:18] ] [2024-08-30 22:02:18] } [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.489 | Info | | Server [2024-08-30 22:02:18] MinWorkerThreads: 6, MinCompletionPortThreads: 30 [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.489 | Info | | Server [2024-08-30 22:02:18] MaxWorkerThreads: 32767, MaxCompletionPortThreads: 65535 [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.603 | Info | | Server [2024-08-30 22:02:18] Start listening on TcpEndPoint: 0.0.0.0:443 [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.609 | Info | | Server [2024-08-30 22:02:18] Start listening on TcpEndPoint: :::443 [2024-08-30 22:02:18] [2024-08-30 22:02:18] 2024/08/30 18:32:18.609 | Info | | Server [2024-08-30 22:02:18] Server is ready! [2024-08-30 22:02:18]

msalehip commented 2 months ago

The situation was changed:

'22:02:25.3446 | Info | AppVersion: 4.6.553.0

22:02:25.3446 | Info | Time: 2024-08-30 18:32:25Z

22:02:25.3446 | Info | OS: Microsoft Windows NT 10.0.22631.0, 64-bit

22:02:25.3446 | Info | UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0

22:02:25.3447 | Info | UserSettings: { "Logging": { "LogToConsole": true, "LogToFile": false, "LogAnonymous": true, "LogEventNames": [], "LogLevel": "Information" }, "CultureCode": null, "ClientProfileId": "a07d4137-292f-4224-be21-f523aeca5b29", "ServerLocation": null, "MaxDatagramChannelCount": 4, "TunnelClientCountry": true, "AppFilters": [], "AppFiltersMode": "All", "UseUdpChannel": false, "DropUdpPackets": false, "IncludeLocalNetwork": false, "IncludeIpRanges": [ "0.0.0.0-255.255.255.255", "::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" ], "ExcludeIpRanges": [], "PacketCaptureIncludeIpRanges": [ "0.0.0.0-255.255.255.255", "::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" ], "PacketCaptureExcludeIpRanges": [], "AllowAnonymousTracker": true, "DnsServers": null, "DomainFilter": { "Blocks": [], "Excludes": [], "Includes": [] }, "DebugData1": null, "DebugData2": null }

22:02:25.3447 | Info | Country: -

22:02:25.3447 | Info | VpnHood Client is Connecting ...

22:02:25.3448 | Info | TokenId: **-bd27-593f5ff61d67, SupportId:

22:02:25.3451 | Trac | Checking the Internet connection...

22:02:25.3530 | Info | PingTest: Started, RemoteAddress: 8.8.8.8, Timeout: 10000...

22:02:25.3535 | Info | PingTest: Started, RemoteAddress: 1.1.1.1, Timeout: 10000...

22:02:25.3537 | Info | UdpTest: Started, DnsName: www.google.com, NsServer: 8.8.8.8:53, Timeout: 10000...

22:02:25.3542 | Info | UdpTest: Started, DnsName: www.google.com, NsServer: 1.1.1.1:53, Timeout: 10000...

22:02:25.3547 | Info | HttpTest: Started, Url: https://www.google.com/, Timeout: 10000...

22:02:25.3548 | Info | HttpTest: Started, Url: https://www.quad9.net/, Timeout: 10000...

22:02:25.3549 | Info | HttpTest: Started, Url: https://www.microsoft.com/, Timeout: 10000...

22:02:25.3954 | Info | UdpTest: Succeeded, DnsName: www.google.com, NsServer: 8.8.8.8:53.

22:02:25.4130 | Info | UdpTest: Succeeded, DnsName: www.google.com, NsServer: 1.1.1.1:53.

22:02:25.4249 | Info | PingTest: Succeeded, RemoteAddress: 8.8.8.8.

22:02:25.4602 | Info | PingTest: Succeeded, RemoteAddress: 1.1.1.1.

22:02:26.2472 | Info | HttpTest: Succeeded, Url: https://www.google.com/.

22:02:26.2475 | Trac | Checking the VpnServer ping...

22:02:26.2476 | Info | PingTest: Started, RemoteAddress: 5...69, Timeout: 10000...

22:02:26.3425 | Info | HttpTest: Succeeded, Url: https://www.microsoft.com/.

22:02:26.3602 | Info | PingTest: Succeeded, RemoteAddress: 5...69.

22:02:26.3604 | Trac | Pinging server is OK.

22:02:26.3751 | Info | Client UseUdpChannel: False, DropUdpPackets: False, IncludeLocalNetwork: False, MinWorkerThreads: 12, CompletionPortThreads: 1, ClientIpV6: False

22:02:26.3752 | Info | Client ClientVersion: 4.6.553.0, ClientProtocolVersion: 4, ClientId: **-8f1d-abeec881704a

22:02:26.3752 | Info | Client Client state is changed. NewState: Connecting

22:02:26.3753 | Trac | Client Session | Sending a request. RequestCode: Hello, RequestId: 40946895-d450-4108-8dd2-c98799364128:client

22:02:29.0398 | Erro | Session | Disposing... Exception: System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task) at VpnHood.Common.Utils.VhUtil.RunTask(Task task, TimeSpan timeout, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Common\Utils\VhUtil.cs:line 130 at VpnHood.Client.ConnectorServices.ConnectorServiceBase.GetTlsConnectionToServer(String streamId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorServiceBase.cs:line 99 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](Byte[] request, String requestId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 80 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 39 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 45 at VpnHood.Client.VpnHoodClient.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 835 at VpnHood.Client.VpnHoodClient.ConnectInternal(CancellationToken cancellationToken, Boolean allowRedirect) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 652 at VpnHood.Client.VpnHoodClient.Connect(CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 278

22:02:29.0403 | Trac | Shutting down...

22:02:29.0403 | Info | Client state is changed. NewState: Disconnecting

22:02:29.0452 | Trac | Disposing the PacketCapture...

22:02:29.0452 | Trac | Disposing ClientHost...

22:02:29.0452 | Trac | Disposing Tunnel...

22:02:29.0452 | Trac | Disposing ProxyManager...

22:02:29.0453 | Trac | Disposing Nat...

22:02:29.0453 | Trac | Disposing ConnectorService...

22:02:29.0453 | Info | Client state is changed. NewState: Disposed

22:02:29.0502 | Info | Bye Bye!

22:02:29.0515 | Erro | Could not connect. Exception: System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) --- End of stack trace from previous location --- at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task) at VpnHood.Common.Utils.VhUtil.RunTask(Task task, TimeSpan timeout, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Common\Utils\VhUtil.cs:line 130 at VpnHood.Client.ConnectorServices.ConnectorServiceBase.GetTlsConnectionToServer(String streamId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorServiceBase.cs:line 99 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](Byte[] request, String requestId, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 80 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 39 at VpnHood.Client.ConnectorServices.ConnectorService.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\ConnectorServices\ConnectorService.cs:line 45 at VpnHood.Client.VpnHoodClient.SendRequest[T](ClientRequest request, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 835 at VpnHood.Client.VpnHoodClient.ConnectInternal(CancellationToken cancellationToken, Boolean allowRedirect) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 652 at VpnHood.Client.VpnHoodClient.Connect(CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\VpnHoodClient.cs:line 278 at VpnHood.Client.Diagnosing.Diagnoser.Diagnose(VpnHoodClient vpnHoodClient, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client\Diagnosing\Diagnoser.cs:line 76 at VpnHood.Client.App.VpnHoodApp.ConnectInternal(Token token, String serverLocationInfo, String userAgent, Boolean allowUpdateToken, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client.App\VpnHoodApp.cs:line 587 at VpnHood.Client.App.VpnHoodApp.ConnectInternal(Token token, String serverLocationInfo, String userAgent, Boolean allowUpdateToken, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client.App\VpnHoodApp.cs:line 618 at VpnHood.Client.App.VpnHoodApp.Connect(Nullable`1 clientProfileId, String serverLocation, Boolean diagnose, String userAgent, Boolean throwException, CancellationToken cancellationToken) in C:\Users\Developer\source\repos\Vh\VpnHood\VpnHood.Client.App\VpnHoodApp.cs:line 481'

trudyhood commented 2 months ago

The situation has not been changed. (10061): No connection could be made because the target machine actively

It means that your server closes the connection because the port is not open. Have you mapped the docker container port correctly?

Could you let me know if you installed the server using the following method? https://github.com/vpnhood/VpnHood/wiki/How-to-run-VpnHood-Server-on-Linux-using-docker

msalehip commented 2 months ago

The situation has not been changed. (10061): No connection could be made because the target machine actively

It means that your server closes the connection because the port is not open. Have you mapped the docker container port correctly?

Could you let me know if you installed the server using the following method? https://github.com/vpnhood/VpnHood/wiki/How-to-run-VpnHood-Server-on-Linux-using-docker

Dear Trudyhood, Thank you for your response. I run my docker container with command like this: docker run -u root -w /app/ -v /app/storage:/app/storage -p 57294:443 -d vpnhood/vpnhoodserver:latest After I run my docker container. I telnet the host port (57294) from client side and container Vpnhood server responds to my request. In addition, I tested it with CryPing software and got the same result.

Usually, using the Linux installer is more straightforward than docker for the VpnHood server.

I have no choice to change my docker server to linux.

msalehip commented 2 months ago

Dear Trudyhood, Based on the changes I made in the appsettings.json file, the port problem was solved. But it still does not connect.

log.txt

trudyhood commented 2 months ago

Good, you can also use -p 443:443 if your server 443 port is available or use -p 57294:57294 and listen to port 57294 in your docker,

Can you give me a token? trudy@vpnhood.con

trudyhood commented 2 months ago

Duplicate of #444