mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1669] Traefik + Frp does not seem to work together(ssh_exchange_identification: Connection closed by remote host) #1318
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1318
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 @Lilja on GitHub (Feb 20, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1669
I'm using traefik for loadbalancing / not having to worrying about port forwarding. I've defined two traefik entrypoints(port 7303, 7304) that I'm able to communicate with from the client. As traefik will handle redirect, it needs to run in it's own network. Therefore I am not using
network_mode: hoston the server. All of the devices are currently on LAN. I've edited/etc/hoststo make my dns resolution work(192.168.0.27 domain.net)My
frps.iniare as follows.My
frpc.iniare as follows.Logs-server:
Logs - client:
Logs - ssh window:
What version of frp are you using (./frpc -v or ./frps -v)?
Frps:
0.31.2(docker container)Frpc:
0.31.1(docker container)What operating system and processor architecture are you using (
go env)?docker, on amd64 and arm32v7(raspberry pi client)Configures you used:
The server - with traefik is configured with this docker-compose.
Describe the results you received:
error: ssh_exchange_identification: Connection closed by remote host
Describe the results you expected:
I should be prompted with a password to connect to the server
@Lilja commented on GitHub (Feb 20, 2020):
Hmm. As per https://github.com/fatedier/frp/issues/907, i added
network_mode: hoston the raspberry pi(client). And it works! Seems to be unrelated to traefik.Why is network mode needed on the client?
@fatedier commented on GitHub (Feb 21, 2020):
@Lilja The container with
Hostnetwork is in the same net namespace with your host machine, so it can connect to service on your host machine such as sshd.Otherwise, it has it's own net namespace which has no sshd process listen on 22 port.