The setup is Freepbx>router/firewall>SIP Gateway. I already setup NAT, and I can ping the SIP gateway from Freepbx. I’m going an ‘unreachable’ msg from the reporting.
the setup is freepbx(192.168.10.62) is connected to the one interface of router/firewall(192.168.10.1) which is NAT-ted into another interface of router/firewall(10.105.66.238) that connects to SIP gateway(10.105.66.237).
I can ping the SIP gateway of freepbx. I don’t have access into SIP gateway.
There is just an IP address provided by the VOIP ISP(10.105.66.236/30).
is NOT an IP., it is a network, you need a route between 192.168.10.62 and the providing host in that network, you also need an IP address in 10.105.66.236/30 routed back to 192.168.10.62 generally that is done with a dedicated connection and an added route between the networks, but you might try
ip address add 10.105.66.238/30 dev eth0
as root where eth0 is your LAN interface name and the SIP server is at 237, ( I will wait for the cry’s of woe here . . . )
Will try it. Thanks. Currently, we connected the Freepbx (10.105.66.238/24) into SIP gateway(10.105.66.237/30) along with laptop(10.105.66.100/24) to access the GUI of freepbx using a switch; we can ping the SIP gateway from Freepbx. Still getting an ‘unreachable’ msg.
If the router/firewall is NAT’ing your FreePBX to The SIP server’s network, you need it to symmetrically NAT the SIP server back to the FreePBX’s network to get two way communication. Much better to correctly route the twonetworks through your router.