-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running Galene behind haproxy ? #45
Comments
It looks like haproxy is breaking the WebSocket connection (that's what the "client:...connection reset by peer" message implies). Please check the haproxy documentation, and make sure that haproxy is configured in order to proxy WebSocket connections to |
Finally i set directly a public IP and it works. |
Are you using a TLS certificate that's signed by an authority recognised by the mobile? |
Finally, it works on mobile. I'm using LET'sENCRYPT certif but i was migrating DNS to the dedicated IP i put on the container. When DNS was ok, all became good ! Thanks ! |
For haproxy, if you have some clue about the configuration, i would be interested because i would prefer to have Galene behind it. Any way, great works, it is so simple to setup compared to BBB (i tried it just before and it was just insane). |
Glad you've solved your immediate problem. Please do summarise your findings when you manage to get Galène to work behind haproxy. |
I did some new test with haproxy, for now it looks like to work but it autodisconnects user when idling too much. On frontend, i added:
Still using "mode http" because this frontend is shared with many other services but i guess it would be better to have "mode tcp" for websocket. |
I did some new test with haproxy, for now it looks like to work but it
autodisconnects use when idling.
Galène sends a keepalive every 45 to 55 seconds. Please make sure all of
your timeouts are set at 60s or more. Perhaps you need to set the
http-client or http-keep-alive timeouts?
(Aside. TCP is a connected protocol, and unless there's something very
wrong with the implementation of the proxy, there should be no problem
using timeouts on the order of hours or even days.)
|
I put 90 sec the timeout but still these errors when a user is disconnected abrubtaly: Jan 26 09:26:30 atxovh-vis500 galene[16489]: 2021/01/26 09:26:30 PushConn: client is dead |
This is the message in browser when it kicked me out. In parallel, Galene shows this log:
en tcpdump ca donne ca
|
I was focus in modification on FRONTEND timeout but it appears there are also timeout in BACKEND side. in Backend: timeout connect 600s |
Now haproxy is working, i turned-off the STUN server json to use only the internal one but not working:
On haproxy container, i got iptables to redirect port 1195 to the Galene container. (TCP/UDP). |
Ok i had an asymetrical routage, now it works !!! |
On haproxy container, i got iptables to redirect port 1195 to the Galene
container. (TCP/UDP).
Does your firewall implement hairpinning?
|
it was the default gateway of the Galene container which was wrong with bad effet it was going on internet with another public IP that the one configured to go inside. (HAPROXY container has multiples IP public). HAPROXY : OK IPTABLES (ON HAPROXY CONTAINER)
HAPROXY
GALENE CONFIG
|
I'm glad to hear that.
|
I 've still some error like that :
Could it be due to the fact i'm using 2 devices under my wifi network ? thanks |
This is probably nothing to worry about. Please see pion/turn#197. |
Question is about HAPROXY.
Galene is installed sucessfuly but can't see each other on a room.
I only see my own face. (users also see only their own face).
Configuration
Running Galene in a container with only a private IP ( 192.168.10.111)
Public IP is behind another container dedicated to haproxy (192.168.10.252 + PUblic IP ) which send the 443 traffic to Galene container on 8443 port.
Also some iptables redirect for 1194/UDP and 10000-65535 udp port from Haproxy container to Galene container.
when starting Galene:
As we can see, it shows Haproxy IP (192.168.10.252) instead of user IP. (X Forward For ?).
Does Galene support haproxy ?
thanks
The text was updated successfully, but these errors were encountered: