<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <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>
    </p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 15.05.2018 08:06, Pasan Meemaduma
      via Users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1069691021.1335395.1526360794501@mail.yahoo.com"><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->
      <div style="font-family:Helvetica Neue, Helvetica, Arial,
        sans-serif;font-size:16px;">
        <div>Hi Guys,<br>
          <div><br>
            <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>
                </span><span></span>
                <div><br>
                  <div>
                    <div>
                      <div><span> <span>modparam("nathelper",
                            "natping_socket", "10.3.1.251:5060")</span><br>
                        </span><span></span>
                        <div><br>
                          <div>
                            <div>
                              <div>ip add output:<br>
                                <span>4: enp4s2:
                                  <BROADCAST,MULTICAST,UP,LOWER_UP>
                                  mtu 1500 qdisc pfifo_fast state UP
                                  group default qlen 1000<br>
                                      link/ether 52:f2:09:00:00:89 brd
                                  ff:ff:ff:ff:ff:ff<br>
                                      inet 10.3.1.251/24 brd 10.3.1.255
                                  scope global secondary enp4s2<br>
                                         valid_lft forever preferred_lft
                                  forever<br>
                                </span>
                                <div><br>
                                  opensips error log :<br>
                                </div>
                                <span>May 15 14:55:33 voip2-sip23b
                                  /usr/sbin/opensips[14350]:
                                  ERROR:nathelper:init_raw_socket:
                                  cannot create raw socket<br>
                                  May 15 14:55:33 voip2-sip23b
                                  /usr/sbin/opensips[14350]:
                                  ERROR:core:init_mod: failed to
                                  initialize module nathelper</span><br>
                                <div><br>
                                  <div>This is some what related to this
                                    thread <a
                                      href="https://opensips.org/pipermail/users/2017-May/037296.html"
                                      rel="nofollow" target="_blank"
                                      class="enhancr_card_6664421392"
                                      moz-do-not-send="true">[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>
                                    <div><br>
                                      <br>
                                    </div>
                                  </div>
                                  <div><br>
                                  </div>
                                  <div
                                    id="ydp8f19462benhancr_card_6664421392"
class="ydp8f19462byahoo-link-enhancr-card
                                    ydp8f19462byahoo-link-enhancr-not-allow-cover
                                    ydp8f19462bymail-preserve-class
                                    ydp8f19462bymail-preserve-style"
                                    style="max-width:400px;font-family:"Helvetica
                                    Neue", "Segoe UI",
                                    Helvetica, Arial, sans-serif;"
                                    data-url="https://opensips.org/pipermail/users/2017-May/037296.html"
                                    data-type="YENHANCER"
                                    data-size="MEDIUM"
                                    contenteditable="false"><a
                                      href="https://opensips.org/pipermail/users/2017-May/037296.html"
                                      style="text-decoration:none
                                      !important;color:#000 !important;"
class="ydp8f19462byahoo-enhancr-cardlink" rel="nofollow" target="_blank"
                                      moz-do-not-send="true">
                                      <table
                                        class="ydp8f19462bcard-wrapper
                                        ydp8f19462byahoo-ignore-table"
                                        style="max-width:400px;"
                                        border="0" cellspacing="0"
                                        cellpadding="0">
                                        <tbody>
                                          <tr>
                                            <td width="400">
                                              <table
                                                class="ydp8f19462bcard
                                                ydp8f19462byahoo-ignore-table"
style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224,
                                                228,
                                                233);border-radius:2px;"
                                                width="100%" border="0"
                                                cellspacing="0"
                                                cellpadding="0">
                                                <tbody>
                                                  <tr>
                                                    <td>
                                                      <table
                                                        class="ydp8f19462bcard-info
ydp8f19462byahoo-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);"
                                                        border="0"
                                                        cellspacing="0"
                                                        cellpadding="0">
                                                        <tbody>
                                                          <tr>
                                                          <td
                                                          style="background-color:#ffffff;padding:16px
                                                          0 16px
                                                          12px;vertical-align:top;border-radius:0
                                                          0 0 2px;"><br>
                                                          </td>
                                                          <td
                                                          style="vertical-align:middle;padding:12px
                                                          24px 16px
                                                          12px;width:99%;font-family:"Helvetica
                                                          Neue",
                                                          "Segoe
                                                          UI",
                                                          Helvetica,
                                                          Arial,
                                                          sans-serif;border-radius:0
                                                          0 2px 0;">
                                                          <h2
                                                          class="ydp8f19462bcard-title"
style="font-size:14px;line-height:19px;margin:0 0 6px
                                                          0;font-family:"Helvetica
                                                          Neue",
                                                          "Segoe
                                                          UI",
                                                          Helvetica,
                                                          Arial,
                                                          sans-serif;word-break:break-word;color:#26282a;">[OpenSIPS-Users]
                                                          Using Contact
                                                          replication
                                                          and HA</h2>
                                                          </td>
                                                          </tr>
                                                        </tbody>
                                                      </table>
                                                    </td>
                                                  </tr>
                                                </tbody>
                                              </table>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </a></div>
                                  <div><br>
                                  </div>
                                  <div>Regards,<br>
                                    Pasan<br>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </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>