Defining the Maximum Session Time ........22 Installation .............25 Windows ................. 25 Linux ................30 Configuration ..........33 Logging In ..............33 Port Binding ..............33 System Settings .............. 35 4.3.1 Logging ......................................4.3.2 Preparing Recovery ..............................snom technology AG • 3...
Page 4
4 S N A T F S N O M I L T E R 4.3.3 General Outound Proxy ............................4.3.4 Media Ports ....................................4.3.5 Media Relay ..................................... 4.3.6 Controlling Routing ..............................4.3.7 Multiple 2xx Handling ............................4.3.8 Trusted Addresses ...............................
VoIP services today and therefore must address the problem. The snom 4S NAT Filter enables non-NAT aware devices to oper- ate in private networks. The filter typically operates on a public IP ad- dress. Non-NAT aware devices are automatically refreshed; NAT-aware devices that operate behind symmetrical NAT may self-refresh their bind- ings using the built-in STUN server of the filter, which is operating on the...
4 S N A T F S N O M I L T E R 1.1 Applications The filter can be used in the following scenarios: • Corporations. Corporations which operate their infrastructure be- hind NAT and/or firewalls can talk to the public Internet through the filter.
Page 7
The second exception is an SDP attachment. The filter checks if the user agent needs support (or must be recorded) and will in that case add a local contact to the SDP that can be used for media relay. snom technology AG • 7...
Page 8
4 S N A T F S N O M I L T E R • The third exception occurs when the filter queries a web server for routing information. In this case, it will send a provisional response to stop the UAC from repeating messages. These three exceptions make sure that all user agents will work behind NAT, no matter what NAT-type or how many NAT-levels are being used.
There are three exceptions to this rule: • The first exception is a REGISTER request. When a user agent tries to register and needs the support of the filter, the filter will set up a snom technology AG • 9...
This document shows how the snom 4S filter can be used to solve the problems. Although snom also makes user agents, the snom 4S filter works with most SIP user agents from other companies. The requirements on these user agents are described below.
2.2.3 Signalling SIP SIP traffic is relatively unproblematic because SIP typically is not as time critical as media. Usually, it is ok to route SIP packets through a longer path than media. snom technology AG • 11...
4 S N A T F S N O M I L T E R In SIP it is legal to send from a different port than the receiving port. When this is being done, there is no way of supporting these de- vices behind NAT.
NAT Filter instead of the user agent when they want to deliver a message. The NAT Filter then forwards the message to the user agent using the connection which is kept open with the keep-alive messages. snom technology AG • 13...
4 S N A T F S N O M I L T E R When the NAT Filter sees a message that contains information about sending media (session description protocol, SDP), it opens a local globally routable port on behalf of the user agent and patches these mes- sages in a way that the destination will send media via this port.
Page 17
A user agent that supports this way of refreshing the bindings includes a “P-NAT-Refresh” header in the REGISTER message: REGISTER sip:snom.com SIP/2.0 Via: SIP/2.0/UDP 192.168.1.10:5060;branch=z9hG4bK-fozdn9kbolfw From: “Karl Klammer” <sip:kk@snom.com>;tag=9e9mynnnwa To: “ Karl Klammer” <sip:kk@snom.com> Call-ID: 10f2c240790b-cj4sy7drgp6q@192-168-1-10 CSeq: 2 REGISTER Max-Forwards: 70 Contact: <sip:kk@192.168.1.10:5060;line=5zy4hsui>;q=0.7 User-Agent: snom200-2.05h...
4 S N A T F S N O M I L T E R 2.3.3 RTP Relay When initiating a call, user agents usually include a Session Description Protocol (SDP) attachment that describes where they expect media. If the user agent operates on a public Internet address, there is no need to interfere in this process.
4 S N A T F S N O M I L T E R a=silenceSupp:off - - - - The NAT Filter changes the private address to a globally routable address and inserts the local port. It also inserts a hint that tells the other user agent that it should not do silence suppression.
I L T E R In any case, customers are asked to contact their vendor in case of problems and explanations. In general, snom recommends using NAT- aware user agents to reduce the network and support overhead. 2.6.2 STUN/ICE-Aware User Agents STUN/ICE-Aware User Agents must implement the two IETF standards.
Page 23
I L T E R If the proxy wants to provide information about how long the call can stay up, it should use AOC information. snom can help on implementing this feature in networks on demand. snom technology AG • 23...
Page 24
4 S N A T F S N O M I L T E R 24 • Architecture...
The Windows version of the NAT Filter comes with an InstallShield application that should make the installation very simple for you. Before you start the installation, you might want to make sure that the necessary ports are available on your machine. Please use the snom technology AG • 25...
Page 26
4 S N A T F S N O M I L T E R netstat command to check which ports are being used on that machine. You can change the ports later; however you should at least make sure that you can access the administration web interface of the NAT Filter with an open port.
Page 27
The http and the https ports are important for you as it is the only way to administer the NAT Filter. Please select a port number that suits your needs. The default ports are 80 (http) and 443 (https). If you snom technology AG • 27...
Page 28
4 S N A T F S N O M I L T E R forget the port number, you need to look it up later, using the netstat command. After entering the license information and the port numbers, the InstallShield program will ask you for the installation directory.
Page 29
To see the NAT Filter service, go to the Control Panel, select “Ad- ministrative Tools” and double-click on “Services”. You will see the list of services, including the snom 4S NAT Filter. If you select the properties menu entry, you will see the Properties dialog for the NAT Filter.
RPM is stored, it should install the RPM into your system. The process is not started automatically after the installation, as was the case with the old snom software packages, because RPM’s can- 30 • Installation...
Page 31
HTTP and SIP ports. Please verify first if the default values in /etc/syconfig/snom* match your local requirements, before you start the process in the usual manner with /etc/init.d/snom* (or rcsnom* under SuSE). snom technology AG • 31...
Page 32
4 S N A T F S N O M I L T E R 32 • Installation...
The login creates a session. This session will timeout after a cer- tain time (by default, one hour). 4.2 Port Binding You need to tell the server on what ports it should listen. snom technology AG • 33...
Page 34
4 S N A T F S N O M I L T E R For http and https, you need to know the port numbers when you want to log in. We recommend not using the standard ports. Operating a server on the public internet usually leads to a lot of denial of service at- tacks on the standard ports.
file for every day. This way you can keep a certain history of log files and remove them from the file system as soon as you think the information contained there is not relevant any more. snom technology AG • 35...
4 S N A T F S N O M I L T E R The Log Length number indicates how many log entries the NAT Filter should keep in internal memory. The NAT Filter writes log mes- sages using the first-in-first-out principle, so that there is no memory leak caused by log messages.
It is much easier to protect only the filter against attacks than your whole SIP network. The third big advantage is that it solves many problems with poor SIP implementations. Typically, immature SIP implementations can- snom technology AG • 37...
4 S N A T F S N O M I L T E R not deal properly with strict and loose routing which results in compli- cated routing problems. The filter will take care of the routing problems; the user agent just has to route the request to the filter, which even the poorest implementations are able to do.
By turning the Add comedia flag feature on, you will make the filter add a suitable flag to SDP to indicate that this behaviour is desired. The disadvantage of this snom technology AG • 39...
4 S N A T F S N O M I L T E R flag is again that it makes the messages bigger and this increases the probability that you will have problems with UDP fragmentation. 4.3.12 Removing Headers As stated before, you may want to remove some headers to make messages shorter.
Page 41
The parameter to_uri is set to the URI in the to header. • The parameter uri is set to the value of the request-URI. All parameters are URL-encoded according to the rules of the http protocol. A possible request might look like this: http://snom.com/ post.htm?action=start&from_uri=sip:abc@snom.com&to_uri=sip: def@snom.com&uri=sip:abc@proxy.snom.com (possible escape characters are not shown here for simplicity).
(usually, “sip”) and no corner brackets. Example: uri: sip: 1234@route1.snom.com For programming your web server, please consult your web server manual. Samples and advice are available from snom on demand. 4.4 Timeout Settings In contrast to previous versions, the time related settings have been summarized on this new management web page.
NAT bindings from the outside. If you turn the flag off, the filter will send short white space packets to the registered user agent. The value directly influences the keep-alive traffic caused by the NAT Filter. snom technology AG • 43...
4 S N A T F S N O M I L T E R The Registration Logging Time is the time after which it moves the backup file to the primary location. See preparing recovery above. 4.4.2 Call Timeouts Unfortunately, in SIP little attention has been given to the prob- lem of a user agent disconnecting from the network without further no- tification.
Filter, you may select the https radio button in the Web Access setting. If you don’t care, you can leave the setting to http/https. If you want to exclude https access (for example, to save performance), select http. snom technology AG • 45...
Page 46
4 S N A T F S N O M I L T E R To restrict the login, you should set a username („admin“ is the default) and a password. You need to enter the password twice, so that typing mistakes do not block your NAT Filter.
filter can redirect the requests to the right proxy automatically. This approach is limited to a maximum of ten do- mains per filter; for additional domains you need to use the web server integration mentioned above. snom technology AG • 47...
4 S N A T F S N O M I L T E R The algorithm for searching the outbound proxy is simple. The filter first goes through to the list of outbound proxies and tries to match the hostname in the request-URI of the request to the provided Domain. If it does not find a match, it will take the outbound proxy in the general settings (if provided).
Filter, “Tr” means the packet has been sent as message repetition, “Td” means the packet was sent to a UA behind NAT, “Rx” means the packet was received normally, “Rr” means the packet was received as a message repetition. snom technology AG • 49...
4 S N A T F S N O M I L T E R The Source/Destination indicates the IP address where the packet was sent or received. The Header column contains the abstract. By clicking on the header link, you may see the complete packet. 4.10 Call History The call history should help you understand what’s going on on your system.
SDP. If the destination has not been locked, that address is shown in brackets and the list of learned addresses is shown after it. An address is locked when the NAT Filter received a packet on this port from the location indicated in the SDP. snom technology AG • 51...
4 S N A T F S N O M I L T E R 4.12 Currently Handled UA This table shows the currently handled UA with their SIP URI and their associated IP address. The third column shows the SIP request type that this binding is using.
Checklist for Installation When snom or one of their partners perform the installation for you, the following information is necessary: 5.1 Linux • Please provide secure shell login to the system that can be ac- cessed at least from the snom.com host (currently at IP address 217.115.141.99).
Page 54
4 S N A T F S N O M I L T E R tion tool. • Please tell us the login address (host and port), user name and password. We need administrative rights on that host. • Please tell us for which domains you plan to use the server. Please also tell us where you want to process the requests (which outbound proxy to use for NAT Filter).
Need help?
Do you have a question about the 4S NAT Filter and is the answer not in the manual?
Questions and answers