Hello mates,
I have a question about port forwarding. I already tried all I know to get this working but it’s beyond me.
So I have Nethserver in my network working as gateway and firewall, I setted up port forwarding for different services/devices on my network and everything works perfectly fine.
But, as always, there is a big but.
At my office we have a SIP hybrid PBX which I have to manage, not always from my office but from anywhere. The PBX is connected to my provider through a router (I can manage the PBX but not the router). The router is setup as 192.168.30.1, the PBX as 192.168.30.2. So to be able to manage the PBX from anywhere in the world I setted up a lan card in my Nethserver as 192.168.30.10 and the gateway as 192.168.30.1 and they are all 3 (and just these 3) in a switch.
I tried to forward a port from my Nethserver to the PBX (just like I did with the rest of my port forwardings) but it’s not working, I can’t reach the PBX from the WAN of my Nethserver. I think port forwarding works only if the gateway belongs to the Nethserver.
Locally, in my network, if I setup a PC with an IP belonging to the 192.168.30.0 network AND 192.168.30.1 as gateway I can reach the PBX (on the local IP 192.168.30.2).
The only way it works from WAN is if I setup the lan from my Nethserver to 192.168.30.1 (and the gateway as the same IP). But this way I am 100% sure I will get an IP conflict between PBX and Nethserver.
So my question is: Is there any way to get this working like this? Does port forwarding in Nethserver work if the gateway doesn’t belong to Nethserver? Or this is something that’s never going to work and I have to find another solution to manage my PBX (like calling the phone company to ask them if there’s a public IP on that router and ask them to give me that IP and to make a forwarding from that bloody router to my PBX)?