Hello,
I have gitlab and mattermost sitting inside my network, let’s call it 172.16.0.10, in a docker container.
I have mattermost NATed in from the firewall, let’s call the address 200.210.220.230. It DNAT/SNATs ports 443, 8443 (udp and tcp).
Inside my network, I have mattermost.domain.com resolving to 172.16.0.10, and outside, I have it resolving to 200.210.220.230.
The problem is trying to make calls work. They work fine inside the network. They work fine outside the network if I set “ICE host override” to 200.210.220.230.
Setting “ICE host override” to “200.210.220.230/172.16.0.10” doesn’t work, even though the documentation suggests it would. That somehow makes the webrtc address into 192.168.1.1, in line with the docker configuration.
How do I make them work in both situations?
Ideally I’d set the “ICE host override” to mattermost.domain.com, but for some reason, it resolves that to the internal address (172.16.0.10) before sending it out. It should just send out the address and let the resolver do what resolvers do, no?
Seems like I’m missing something very basic, or there’s a fundamental design problem I don’t understand.
Doing an iptables hairpin loopback would be exceedingly difficult in this setup; as such, 200.210.230.240 isn’t accessible from within my network.
Looking at past topics, similar things have arisen, but I can’t believe I’m the only one to be in this situation.