<div dir="ltr"><div>Hi!</div><div><br></div>Did you try with mhomed=1 ?<div><br></div><div>Cheers,</div><div><br></div><div>Diego</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-13 21:40 GMT-03:00 Keith Whyte <span dir="ltr"><<a href="mailto:keith@rhizomatica.org" target="_blank">keith@rhizomatica.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
tl;dr - Kamailio is sending traffic to the Voip server with a source IP<br>
of the private (vpn) interface.<br>
<br>
For some weeks, I've been experimenting with Kamailio v 4.4.4, trying<br>
different options, including running (or not) a vpn interface on<br>
the kamailio server with and without NAT/rtpproxy. I have not as yet<br>
fully "installed" kamailo with database etc, I have just been playing<br>
with the config file, mostly running with -D<br>
<br>
For most of the configurations I tried, I was routing SIP to/from the<br>
VPN via another box on the network, and I tried to get RTP streams<br>
running without using rtpproxy, sometimes it worked, but I have two many<br>
double/triple NAT problems with some of the freeswitch nodes.<br>
<br>
Now I have decided to run a VPN interface directly on the kamailio<br>
server, for simplicity.<br>
<br>
Essentially what I want to do is have kamailio/rtpproxy bridge between<br>
the VPN and the VOIP provider, so it should be a pretty standard NAT config.<br>
<br>
My setup looks like this:<br>
<br>
VPN CLUSTER of Freeswitch nodes <-10.23.0.1-> KAMAILIO Server<br>
<-192.168.1.1 - gateway - PUBLIC_IP-> Voip Provider<br>
<br>
The Kamailio Server has two interfaces, one VPN interface and one facing<br>
the Public Internet.<br>
It is behind a firewall, and so has a private IP address assigned on the<br>
interface, but the isĀ  dedicated public IP that forwards all relevant<br>
ports, and traffic seen on the public side originates from this address.<br>
<br>
I have two listen directives,<br>
<br>
listen=udp:<a href="http://192.168.1.1:5060" rel="noreferrer" target="_blank">192.168.1.1:5060</a> advertise PUBLIC_IP:5060<br>
<br>
listen=udp:<a href="http://10.23.0.1:5060" rel="noreferrer" target="_blank">10.23.0.1:5060</a><br>
<br>
I expected Kamailio to receive SIP INVITE on the 10.23.0.1 address and<br>
forward it to the voip provider via the default route (the 192.168.1.1<br>
address), but it is sending the packet out to the voip provider with a<br>
source address of 10.23.0.1 !!<br>
<br>
Can anyone tell me how I can configure this? I cannot find anything<br>
obvious in the manual.<br>
<br>
Thanks!<br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br></div>