Jump to content

Dynamic IP with snomONE behind NAT


htcom

Recommended Posts

I've got a snomONE behind a NAT router with port forwarding set for the relevant ports. I have also set the IP Routing list on the snomone such that it contains my public ip address. That all work fine without any nat issues until my public ip address gets updated by the isp.

 

I am not asking for STUN, but is there a way in the snomone for it to recognise what the external ip address is whilst keeping NAT ?

I suppose I'd like to input something like wxyz.dyndns.org and for the Snom to handle the rest.

 

Thank you.

Link to comment
Share on other sites

IP routing list (numeric) is really doing a good job with NAT,

But as it is a low level functionality, when you change the ip routing list,

you have to restart the pbx to activate the changes.

 

A few years ago, I wrote a script, mainly base on dyndsn.org script to track the ip change, automatically change the ip routing list and restart the pbx.

It worked, but not the correct way to do it in production environment with lots of calls.

 

It could certainly be possible to allow a text base input of the ip routing list,

the problem is that every time, this ip routing list will be used, there will be a name resolution to check if last used route is still the same ....

 

Fixed IP is not so expensive !

 

Regards,

 

R.

Link to comment
Share on other sites

Thanks for the reply Top System, that's interesting.

 

You are absolutely correct a fixed IP is not expensive and I'm pleased Snom have decided against stun.

 

(We are only having this issue because our dedicated voip broadband has been accidentally cancelled and we are sharing the voip with the general data broadband while the circuit is set-up again.)

When it was on the dedicated fixed ip broadband the Snom worked without any problem with the IP Routing List set and behind nat (Vigor 2820).

Link to comment
Share on other sites

Interesting regarding 4.5.0.1090 onwards. I've been thinking some more about this and I am considering using the dual wan capability of the adsl router we use to automatically switch incase of a broadband outage. However the public ip issue is still going to be present.

 

In our scenario it's probably not going to be an issue as we will hopefully move over to a super-fast broadband service when it becomes available. However I would have thought if the snomONE could be dynamic public ip aware behind nat (but not stun) then it might be a useful feature especially given that a restart is soon not to be required. But I'm probably the first and last person to think so :) .

Link to comment
Share on other sites

  • 1 month later...

Well there are two ways to let the PBX know that the routing has changed.

 

First of all, tell the operating system! The PBX asks the operating system what IP address will be used when it sends a packet to some destination. For this, you don't have to configure anything on the PBX. So if your PBX should use a public IP address, configure it on the operating system level!

 

Second, if the PBX should override the routing table on the operating system level (which is a remarkable step), you can update that settings through a SOAP RPC. Older versions did not update the internal override table, that has been fixed in recent versions. Based on that, you can write a script that does whatever you want to do and then update the routing table in the PBX. Please remember that the PBX is a server, not a client where you can fix NAT issues with a couple of STUN packets.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...