<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi, Jennifer!<br>
<br>
Unfortunately there is no way to change the pinging behavior. If
you say tht pinging works with mhomed on, I think we should focus
on fixing routing when it is enabled.<br>
Did you try to "fix" the reply interface by using
force_send_socket()?<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 05/11/2017 09:28 PM, Jennifer
Hashimoto wrote:<br>
</div>
<blockquote type="cite"
cite="mid:29150189-AA9D-40AC-A8D0-237C9F51F5DB@caztel.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Hello,
<div class="">I’m hoping someone can help me with this problem.</div>
<div class=""><br class="">
</div>
<div class="">I have an opensips 2.2.2 server that has 3
interfaces listening on debian</div>
<div class=""><br class="">
</div>
<div class="">Debian has 2 default routes in 2 different routing
tables such as is described here <a
href="https://www.thomas-krenn.com/en/wiki/Two_Default_Gateways_on_One_System"
class="" moz-do-not-send="true">https://www.thomas-krenn.com/en/wiki/Two_Default_Gateways_on_One_System</a></div>
<div class=""><br class="">
</div>
<div class="">I have put mhomed=0 as I do not need to route from
one interface to another - and if i enable mhomed it does not
work.</div>
<div class="">With mhomed off, it sends the reply out the same
interface that it came in as I want.</div>
<div class="">With mhomed on it seems to look into the default
routing table and find a route, then decide which interface to
used based on that - it does not use the ip rules to figure out
which routing table it should use (ie. ip rule and then ip route
list table rt2)</div>
<div class=""><br class="">
</div>
<div class="">The reason for all this madness is i have 2 separate
internet feeds going through 2 separate routers. If a call comes
in one of the routers, I want to send it back to the same router
and to it’s internet feed. (so that we have symmetrical routing
and nat etc works also so we can maintain redundancy in case one
feed goes down)</div>
<div class=""><br class="">
</div>
<div class="">My issue is that while everything works great with
mhomed off, load_balancer pinging seems to randomly decide which
interface to use, even if i specify a from address.</div>
<div class="">modparam("load_balancer", "probing_from",
“<a class="moz-txt-link-abbreviated" href="mailto:sip:pinger@10.10.10.10">sip:pinger@10.10.10.10</a>")</div>
<div class=""><br class="">
</div>
<div class="">The from address is always correctly populated when
I look at the SIP message , but the source_ip varies. sometimes
it is the ip of the from address, and sometimes it is another ip
on the box. The IP it chooses is not always routable by the
destination so it disables the destination.</div>
<div class=""><br class="">
</div>
<div class="">Is there a way to specify which interface/ip i want
it to probe from?</div>
<div class=""><br class="">
</div>
<div class="">(when i put mhomed=1 probing works, but then
actually sending traffic doesn’t work as it only looks in the
default routing table for a route to determine which interface
to use.)</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
</div>
<div class="">Jennifer Akemi</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>