[OpenSIPS-Users] natping_socket param in nathelper

Pasan Meemaduma pasandev at ymail.com
Tue May 15 02:52:57 EDT 2018


HI Liviu,

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.

 

    On Tuesday, 15 May 2018, 10:47:16 AM GMT+5:30, Liviu Chircu <liviu at opensips.org> wrote:  
 
  
Hi Pasan,
 
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?
 
Best regards,
 
 Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com On 15.05.2018 08:06, Pasan Meemaduma via Users wrote:
  
  Hi Guys,
 
  I'm trying to use "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.
  
    modparam("nathelper", "natping_socket", "10.3.1.251:5060")
  
   ip add output:
 4: enp4s2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
     link/ether 52:f2:09:00:00:89 brd ff:ff:ff:ff:ff:ff
     inet 10.3.1.251/24 brd 10.3.1.255 scope global secondary enp4s2
        valid_lft forever preferred_lft forever
  
 opensips error log :
  May 15 14:55:33 voip2-sip23b /usr/sbin/opensips[14350]: ERROR:nathelper:init_raw_socket:  cannot create raw socket
 May 15 14:55:33 voip2-sip23b /usr/sbin/opensips[14350]: ERROR:core:init_mod: failed to initialize module nathelper
 
 This is some what related to this thread [OpenSIPS-Users] Using Contact replication and HA, 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.
 
 
   
   
|  
|  
| 
  |  
[OpenSIPS-Users] Using Contact replication and HA
  |

  |

  |

  
  Regards,
 Pasan
                
  
 _______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 _______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180515/8cb634ed/attachment.html>


More information about the Users mailing list