Configuration with Two SIP Connections
-
I have configured SIP and RDP and they seem to work for one Provider whose Gateway is the default. But for the other I am still facing an issue. I am trying to ping the provider SIP Server but I cannot get it. Is there anything to be done in the routing since the packets seem to go to the default gateway.
-
Ah, it's actually two VoIP providers and two ISPs?
Then, yes, you will need a rule on the internal interface to pass traffic going to the new provider with the 2nd gateway set so it leaves that way. Make sure that rule is above any default pass rule.
Steve
-
Yes I have two ISPs who also provide me the VOIP service. I will apply the suggestion given to see how things work.
Thanks Steve.
-
To which interface will I exactly apply these rules. Will they be applied to the associated interface where the ISP link is connected or just to the LAN interface.
Suppose I want to make a call using a specific provider will it be necessary to define static routes.
Thanks
-Lusekelo -
You just need to make sure the PBX uses the correct WAN to reach the whichever provider it's connecting to. So you can policy route that using a firewall rule on the internal interface as I suggested or you could add static routes. Static routes will apply globally where as a policy route could be applied to only traffic from the PBX for example. In this case it probably doesn't make much difference as only the PBX should be connecting to the provider.
Steve
-
Double NAT'd behind both WAN's
-
Ah, I had assumed those 10. IPs were just examples and that the two WANs were real public IPs.
If they are not it's hard to see how the first connection works. But you would certainly have to forward all the traffic through each ISP router in that case.
Steve
-
I have applied 1:1 NAT to each WAN for Voice Connection to PBX but it does not produce the expected result. Only one WAN seems to work which is in default gateway. Is there any rule or anything else I need to apply?
Thanks
-Lusekelo -
You are right Stephen, the IPs are not actual. However one provider is using Private and the other has provided a Public IP. I have added routes back to providers network but still cannot reach the SIP Server of one provider. The provider who is using a public IP is reachable by the PBX
Thanks,
-Lusekelo -
Is the second providers network reachable at all? From anywhere?
I assume you mean they supplied a modem/router device and it is NATing the connection?
If they are really giving you a private IP to connect to as the SIP trunk I'm not sure how you're supposed to reach it.
Steve
-
Thank you for your concern in my case.
When the configuration from the second provider is directly done to the PBX Box while the first is through pfsense, I can use both Providers at the same time. My situation is, I do not want to hook providers into into the PBX hoping in the future I may have other Voice Connection from other providers as well. Connecting the PBX through the switch I think in my case is the optimal one just as I described in the diagram.
-Lusekelo