Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Freeswitch connects to local IP address #106

Open
J4gQBqqR opened this issue Mar 3, 2021 · 3 comments
Open

Freeswitch connects to local IP address #106

J4gQBqqR opened this issue Mar 3, 2021 · 3 comments

Comments

@J4gQBqqR
Copy link

J4gQBqqR commented Mar 3, 2021

My server's local IP address is 10.0.0.2

When I am connecting to my server using home wifi, everything works because 10.0.0.2 can be accessed.

When I am connecting from outside network, part of the webrtc connection is still doing it at 10.0.0.2 and I now have the ICE1007 Error.

Does anyone have any insight on what might be going womrong on my configurations?

Screenshot_20210302-222915

@J4gQBqqR
Copy link
Author

J4gQBqqR commented Mar 3, 2021

I read #28 that this is due to the usage of Apache reverse proxy. And there is a way to fix it with correct directive. Currently, I am using exactly the same directive as in the tutorial. Is there anything I need to update to that? Thank you !

@J4gQBqqR
Copy link
Author

J4gQBqqR commented Mar 4, 2021

I've tried to fix the issue with no luck. My machine is setup like this:
public ip ---- router (10.0.0.1) ---- Ubuntu machine (10.0.0.2) ---- Apache web server ---- bbb docker

On my router, I opened port 443,3008,5060,5066,8888,16384-32768 (a lot are not necessary, just open them while I am debugging this issue)

On my Ubuntu machine, ufw is disabled

On my Apache web server, I used the configuration in the tutorial

RewriteEngine On
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://127.0.0.1:8080%{REQUEST_URI} [P,QSA,L]

<Location />
    Require all granted
    ProxyPass http://127.0.0.1:8080/
    ProxyPassReverse http://127.0.0.1:8080/
</Location>

I am still seeing ICE 1007 Error and my Freeswitch webrtc is trying to connect to 10.0.0.2

@philipperouchaud
Copy link

It's seems to be a conflict beetwen apache proxy and bbb-docker_https_proxy_1.
I have the same problem which disappear stopping apache2 in the host.

With apache running I have this error in the scripts/compose logs -f

nginx: [emerg] bind() to [::]:443 failed (98: Address in use)
https_proxy_1          | 2021/03/05 11:32:58 [emerg] 1#1: bind() to 0.0.0.0:80 failed (98: Address in use)

with apache stopped,

https_proxy_1          | 90.120.xxx.95 - - [05/Mar/2021:11:35:07 +0000] "GET /html5client/sockjs/info?cb=vrlak_ptcy HTTP/2.0" 200 79 "https://visio.xxx.com/html5client/join?sessionToken=soor44dja3aztimz" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"

and there is no ICE 1007 Error using my client but original websites from host are unreacheable.

I will try to use bbb-docker_https_proxy_1 to distribute original websites

As I can use WebRTC fron WAN to Server 192.168.1.20, viewing local IP address was not the problem for me.

Capture du 2021-03-05 12-46-38

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants