<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>HI Liviu,<br><div><br><div>Thanks for the reply. Yes opensips does start under root with that param set, But it doesn't appear to be using the spoofed socket that I configured to do the ping, Still trying to use whats in the usrloc Socket info.<br><br></div></div></div>
<div><br></div><div><br></div>
<div id="yahoo_quoted_6915950472" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Tuesday, 15 May 2018, 10:47:16 AM GMT+5:30, Liviu Chircu <liviu@opensips.org> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv4679387498"><div>
<p><tt>Hi Pasan,</tt></p>
<p><tt>This is not related to the natping socket, rather to an
inability of the opensips process to open up a raw rocket. Can you
try to run opensips as root, just to confirm it fixes the issue?</tt></p>
<p><tt>Best regards,</tt><br clear="none">
</p>
<pre class="yiv4679387498moz-signature">Liviu Chircu
OpenSIPS Developer
<a rel="nofollow" shape="rect" class="yiv4679387498moz-txt-link-freetext" target="_blank" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="yiv4679387498yqt8507589952" id="yiv4679387498yqt14630"><div class="yiv4679387498moz-cite-prefix">On 15.05.2018 08:06, Pasan Meemaduma
via Users wrote:<br clear="none">
</div>
<blockquote type="cite">
<div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;">
<div>Hi Guys,<br clear="none">
<div><br clear="none">
<div>
<div>I'm trying to use "<span>natping_socket" parameter in
nathelper module to spoof the source ip of the nat
ping from the backup server. But I can't start
opensips with that param set and its failing with
following error. The socket IP I specify is available
on the server.<br clear="none">
</span><span></span>
<div><br clear="none">
<div>
<div>
<div><span> <span>modparam("nathelper",
"natping_socket", "10.3.1.251:5060")</span><br clear="none">
</span><span></span>
<div><br clear="none">
<div>
<div>
<div>ip add output:<br clear="none">
<span>4: enp4s2:
<BROADCAST,MULTICAST,UP,LOWER_UP>
mtu 1500 qdisc pfifo_fast state UP
group default qlen 1000<br clear="none">
link/ether 52:f2:09:00:00:89 brd
ff:ff:ff:ff:ff:ff<br clear="none">
inet 10.3.1.251/24 brd 10.3.1.255
scope global secondary enp4s2<br clear="none">
valid_lft forever preferred_lft
forever<br clear="none">
</span>
<div><br clear="none">
opensips error log :<br clear="none">
</div>
<span>May 15 14:55:33 voip2-sip23b
/usr/sbin/opensips[14350]:
ERROR:nathelper:init_raw_socket:
cannot create raw socket<br clear="none">
May 15 14:55:33 voip2-sip23b
/usr/sbin/opensips[14350]:
ERROR:core:init_mod: failed to
initialize module nathelper</span><br clear="none">
<div><br clear="none">
<div>This is some what related to this
thread <a rel="nofollow" shape="rect" class="yiv4679387498enhancr_card_6664421392" target="_blank" href="https://opensips.org/pipermail/users/2017-May/037296.html">[OpenSIPS-Users]
Using Contact replication and HA</a>,
But I couldn't come up with a
conclusion as discussion there
wasn't complete. Is there a
limitation in using this function ?
There's not much info on the doc. I
even tried with different ports
other than 5060, But result is still
the same.<br clear="none">
<div><br clear="none">
<br clear="none">
</div>
</div>
<div><br clear="none">
</div>
<div class="yiv4679387498ydp8f19462byahoo-link-enhancr-card yiv4679387498ydp8f19462byahoo-link-enhancr-not-allow-cover yiv4679387498ydp8f19462bymail-preserve-class yiv4679387498ydp8f19462bymail-preserve-style" id="yiv4679387498ydp8f19462benhancr_card_6664421392" style="max-width:400px;" data-url="https://opensips.org/pipermail/users/2017-May/037296.html" data-type="YENHANCER" data-size="MEDIUM"><a rel="nofollow" shape="rect" class="yiv4679387498ydp8f19462byahoo-enhancr-cardlink" target="_blank" href="https://opensips.org/pipermail/users/2017-May/037296.html" style="text-decoration:none;color:#000;">
<table class="yiv4679387498ydp8f19462bcard-wrapper yiv4679387498ydp8f19462byahoo-ignore-table" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td colspan="1" rowspan="1" width="400">
<table class="yiv4679387498ydp8f19462bcard yiv4679387498ydp8f19462byahoo-ignore-table" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px;" cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td colspan="1" rowspan="1">
<table class="yiv4679387498ydp8f19462bcard-info yiv4679387498ydp8f19462byahoo-ignore-table" style="background-color:rgb(255, 255, 255);background-image:none;background-repeat:repeat;background-attachment:scroll;background-size:auto auto;position:relative;z-index:2;width:100%;max-width:400px;border-radius:0px 0px 2px 2px;border-top:1px solid rgb(224, 228, 233);" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td colspan="1" rowspan="1" style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px;"><br clear="none">
</td><td colspan="1" rowspan="1" style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;">
<h2 class="yiv4679387498ydp8f19462bcard-title" style="font-size:14px;line-height:19px;margin:0 0 6px 0;">[OpenSIPS-Users]
Using Contact
replication
and HA</h2>
</td></tr></tbody></table>
</td></tr></tbody></table>
</td></tr></tbody></table>
</a></div>
<div><br clear="none">
</div>
<div>Regards,<br clear="none">
Pasan<br clear="none">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br clear="none">
<fieldset class="yiv4679387498mimeAttachmentHeader"></fieldset>
<br clear="none">
<pre>_______________________________________________
Users mailing list
<a rel="nofollow" shape="rect" class="yiv4679387498moz-txt-link-abbreviated" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a rel="nofollow" shape="rect" class="yiv4679387498moz-txt-link-freetext" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote></div>
<br clear="none">
</div></div><div class="yqt8507589952" id="yqt75351">_______________________________________________<br clear="none">Users mailing list<br clear="none"><a shape="rect" ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br clear="none"><a shape="rect" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br clear="none"></div></div>
</div>
</div></div></body></html>