[OpenSIPS-Users] natping_socket param in nathelper
Liviu Chircu
liviu at opensips.org
Tue May 15 01:16:43 EDT 2018
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
> <https://opensips.org/pipermail/users/2017-May/037296.html>, 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
>
> <https://opensips.org/pipermail/users/2017-May/037296.html>
>
> Regards,
> Pasan
>
>
> _______________________________________________
> 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/4770490f/attachment.html>
More information about the Users
mailing list