[GH-ISSUE #72] Client won't connect #33

Closed
opened 2026-05-05 10:57:59 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @mfoe87 on GitHub (Feb 2, 2018).
Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/72

Hi!

Interesting in trying out this tunnel, but i cannot get it to work. I have followed everything explain in the README.MD file. Running this from the latest releases, have tried both the linux binary and the windows binary.

Generated server and client keys. As a last resort i tried to connect locally to make sure there wasnt a network issue.

Server output:

` ______ __ __________________ __ __
/ / / / / / / / __ \ / / ______ ____ ___ / /
/ / / __ \ / // / / / / / / // / / / / / / __ / __ / _ / /
/ // / // / / __ / / / / / / / / // // / / / / / / / / /
_
/_
/ // // // // // _/_,// /// //_
/_/
github.com/mmatczuk/go-http-tunnel

2018/02/02 17:44:15 level 1 action start addr [::]:5223
2018/02/02 17:44:15 level 1 action start http addr :80
2018/02/02 17:44:15 level 1 action start https addr :443`

Client output (http):
2018/02/02` 17:45:32 config server_addr: 127.0.0.1:80
tls_crt: client.crt
tls_key: client.key
root_ca: ""
backoff:
interval: 500ms
multiplier: 1.5
max_interval: 1m0s
max_time: 15m0s
tunnels:
webui:
proto: http
addr: http://127.0.0.1:8080
host: webui.my-tunnel-host.com

2018/02/02 17:45:32 level 1 action start
2018/02/02 17:45:32 level 1 action dial network tcp addr 127.0.0.1:80
2018/02/02 17:45:32 level 0 msg dial failed network tcp addr 127.0.0.1:80 err tls: oversized record received with length 20527
2018/02/02 17:45:32 level 1 action backoff sleep 660.522566ms
2018/02/02 17:45:32 level 1 action dial network tcp addr 127.0.0.1:80
2018/02/02 17:45:32 level 0 msg dial failed network tcp addr 127.0.0.1:80 err tls: oversized record received with length 20527`

Changing the config to use 443 instead of 80:
2018/02/02 17:48:59 config server_addr: 127.0.0.1:443
tls_crt: client.crt
tls_key: client.key
root_ca: ""
backoff:
interval: 500ms
multiplier: 1.5
max_interval: 1m0s
max_time: 15m0s
tunnels:
webui:
proto: http
addr: http://127.0.0.1:8080
host: webui.my-tunnel-host.com

2018/02/02 17:48:59 level 1 action start
2018/02/02 17:48:59 level 1 action dial network tcp addr 127.0.0.1:443
2018/02/02 17:49:09 level 1 action disconnected
2018/02/02 17:49:09 level 1 action dial network tcp addr 127.0.0.1:443`

Here's the config file:
server_addr: 127.0.0.1:443
tunnels:
webui:
proto: http
addr: 127.0.0.1:8080
host: webui.my-tunnel-host.com
ssh:
proto: tcp
addr: 192.168.0.5:22
remote_addr: 0.0.0.0:22

Firewall has added exceptions, so I'm lost here. Any help would be appreciated

Originally created by @mfoe87 on GitHub (Feb 2, 2018). Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/72 Hi! Interesting in trying out this tunnel, but i cannot get it to work. I have followed everything explain in the README.MD file. Running this from the latest releases, have tried both the linux binary and the windows binary. Generated server and client keys. As a last resort i tried to connect locally to make sure there wasnt a network issue. Server output: ` ______ __ __________________ __ __ / ____/___ / / / /_ __/_ __/ __ \ / /___ ______ ____ ___ / / / / __/ __ \ / /_/ / / / / / / /_/ / / __/ / / / __ \/ __ \/ _ \/ / / /_/ / /_/ / / __ / / / / / / ____/ / /_/ /_/ / / / / / / / __/ / \____/\____/ /_/ /_/ /_/ /_/ /_/ \__/\__,_/_/ /_/_/ /_/\___/_/ github.com/mmatczuk/go-http-tunnel 2018/02/02 17:44:15 level 1 action start addr [::]:5223 2018/02/02 17:44:15 level 1 action start http addr :80 2018/02/02 17:44:15 level 1 action start https addr :443` Client output (http): 2018/02/02` 17:45:32 config server_addr: 127.0.0.1:80 tls_crt: client.crt tls_key: client.key root_ca: "" backoff: interval: 500ms multiplier: 1.5 max_interval: 1m0s max_time: 15m0s tunnels: webui: proto: http addr: http://127.0.0.1:8080 host: webui.my-tunnel-host.com 2018/02/02 17:45:32 level 1 action start 2018/02/02 17:45:32 level 1 action dial network tcp addr 127.0.0.1:80 2018/02/02 17:45:32 level 0 msg dial failed network tcp addr 127.0.0.1:80 err tls: oversized record received with length 20527 2018/02/02 17:45:32 level 1 action backoff sleep 660.522566ms 2018/02/02 17:45:32 level 1 action dial network tcp addr 127.0.0.1:80 2018/02/02 17:45:32 level 0 msg dial failed network tcp addr 127.0.0.1:80 err tls: oversized record received with length 20527` Changing the config to use 443 instead of 80: 2018/02/02 17:48:59 config server_addr: 127.0.0.1:443 tls_crt: client.crt tls_key: client.key root_ca: "" backoff: interval: 500ms multiplier: 1.5 max_interval: 1m0s max_time: 15m0s tunnels: webui: proto: http addr: http://127.0.0.1:8080 host: webui.my-tunnel-host.com 2018/02/02 17:48:59 level 1 action start 2018/02/02 17:48:59 level 1 action dial network tcp addr 127.0.0.1:443 2018/02/02 17:49:09 level 1 action disconnected 2018/02/02 17:49:09 level 1 action dial network tcp addr 127.0.0.1:443` Here's the config file: server_addr: 127.0.0.1:443 tunnels: webui: proto: http addr: 127.0.0.1:8080 host: webui.my-tunnel-host.com ssh: proto: tcp addr: 192.168.0.5:22 remote_addr: 0.0.0.0:22 Firewall has added exceptions, so I'm lost here. Any help would be appreciated
Author
Owner

@mfoe87 commented on GitHub (Feb 2, 2018):

Well.. After grabbing a cup of coffee the problem was in how I connect to the server from the client.

-tunnelAddr :PORT is what we're connecting to, not anything else.

<!-- gh-comment-id:362734793 --> @mfoe87 commented on GitHub (Feb 2, 2018): Well.. After grabbing a cup of coffee the problem was in how I connect to the server from the client. `-tunnelAddr :PORT` is what we're connecting to, not anything else.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/go-http-tunnel#33
No description provided.