My freePBX is inside LAN by NAT to fatherServer

My freePBX is inside LAN by NAT-gateway to fatherVvoice Serveronly a LAN IP in freePBX’ network. Can the freePBX provide service for internet-user?
微信图片_20240821131908

Set the local networks to 192.168.0/24 and set the external IP address to whatever it is.

Although I suspect you haven’t told us the whole story, at face value this is almost a normal configuration. as most people’s provider is on the public internet with the PABX on a private one.

It is not clear whether the users (FreePBX extensions) are themselves behind NAT, but, even the are not properly configured for that, I believe that the workarounds for that are enabled, by default.

1 Like

Yes and No.

It depends on the quality of the translation software in the nat-gateway.

Many have problems if you set the port to a non-standard port like 5160 and will work fine if it’s set to 5060.

Some translators have problems if alg is not disabled.

network address translation software is far more complex under the hood than most people understand. If you want more help you need to provide the make/model/firmware version of the NAT device.

1 Like

thank you

i do it as you said,but not work. where to set the External IP?

Same page as the external signalling port, mentioned in: PJSIP transports now configurable with external_signaling_port which is also the same page as the local networks.

1 Like

two exts can login thePBX2.can call each other
BUT can not talk each other and will abandon call about 20s

thank you . t will try it later

With the addresses shown, you have two LANs. It seems unnecessarily complicated to have NAT here, but the principles are the same as for a provider.

The router needs to be set to port forward, from more public side the SIP signalling port and the range of ports used for RTP, and FreePBX needs to be set to specify the more public side of the router as the external IP and LAN 1 as the local network. It would also be advisable to disable direct media.

If that is not working, you need to provide detailed logging, including “pjsip set logger on” and “rtp debug” output, and possible equivalent logging