1
General Discussion / Help with WebRTC / HAproxy / NAT ?
« on: 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 !
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 !