Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Tookie

#1
General Discussion / Help with WebRTC / HAproxy / NAT ?
October 22, 2024, 08:18:14 PM
Hi,

version: OPNSense 24.7.6

I have a 3D printer server under Fluidd, which allows me to have a web interface and a webcam sent via WebRTC.
If I access via LAN, everything works, I have interface + camera.
If I access via VPN from my phone through opnsense, everything is ok interface+camera.

But, and this is where I completely fail, through the WAN it is impossible to obtain video from the camera.
I access the printer interface through a reverse proxy (HAproxy). I don't know if there is something to configure on HAproxy for it to work.

I tried pure NAT, so port 80 of my Wan to port 80 of my server, I still have the WEB interface, but the camera video remains black.

I've read things about a "STUN", but I don't know anything about webRTC so I'm completely lost.. If anyone can give me a hand :)

If you need more information, don't hesitate. THANKS !
#2
French - Français / WebRTC / HAproxy / OPNSENSE
October 22, 2024, 08:06:38 PM
Bonjour,

version : OPNSense 24.7.6

J'ai un serveur d'imprimante 3D sous Fluidd, qui permets d'avoir une une interface de contrôle et une webcam envoyé en WebRTC.
Si j'accède en LAN, tout fonctionne, j'ai bien interface + camera.
Si j'accède en VPN depuis mon téléphone à travers opnsense, tout est ok interface+camera.

Par contre, et c'est la ou je sèche totalement, à travers le WAN impossible d'obtenir l'image de la camera.
J'accède l'interface d'imprimante à travers un reverse proxy (HAproxy). Je ne sais pas si il y a quelque chose a configurer sur HAproxy pour que ca fonctionne.

J'ai essayé en NAT pur et dur , donc port 80 de mon Wan vers port 80 de mon serveur , j'ai toujours l'interface WEB, mais l'image de la camera reste noire.

J'ai lu des choses sur un "STUN", mais le connais pas du tout le webRTC donc je suis complètement perdu.. Si quelqu'un peu me filer un coup de main :)

Si vous avez besoin de plus d'info n'hésitez pas. Merci !