mirror of
https://github.com/mmatczuk/go-http-tunnel.git
synced 2026-05-15 14:16:17 -06:00
[GH-ISSUE #72] Client won't connect #33
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/go-http-tunnel#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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 :PORTis what we're connecting to, not anything else.