Thank you for purchasing a NetModule Router. This document should give you an
introduction to the router and its features. The following chapters describe any aspects
of commissioning the device, installation procedure and provide helpful information
towards configuration and maintenance.
Plese further imformation such as sample SDK script or configuration samples also in
our wiki on http://wiki.netmodule.com.
8
Page 9
2. Conformity
This chapter provides general information for putting the router into operation.
2.1. Safety Instructions
NetModule routers must be used in compliance with any and all applicable national
and international laws and with any special restrictions regulating the utilization of the
communication module in prescribed applications and environments.
We would like to point out that only the original accessories, shipping with the router,
must be used in order to prevent possible injury to health and damage to appliances and
to ensure that all the relevant provisions have been complied with. Unauthorized modifications or utilization of unapproved accessories may void the warranty. The routers
must not be opened. However, it is possible to replace any pluggable SIM cards even
during operation.
All circuits connected to the interfaces of the router must comply with the requirements
of Safety Extra Low Voltage (SELV) circuits and have to be designed for indoor use only.
Interconnections must not leave the building nor penetrate the body shell of a vehicle.
Possible antenna circuits must be limited to over-voltage transient levels below 1500
Volts according to IEC 60950-1, TNV-1 circuit levels using safety approved components.
NB3700 routers shall only be used with a certified (CSA or equivalent) power supply
which must have a limited and SELV circuit output. They are basically designed for
indoor use. Do not expose the communication module to extreme ambient conditions
and protect the communication module against dust, moisture and high temperature.
We remind the user of the duty to observe the restrictions concerning the utilization of
radio devices at petrol stations, in chemical facilities or in the course of blasting works
in which explosives are used. Switch off the communication module when traveling by
plane.
You need to pay heightened attention when using the communication module close to
personal medical devices, such as cardiac pacemakers or hearing aids. NetModule routers
may also cause interference in the nearer distance of TV sets, radio receivers and personal
computers.
Avoid any installation of the antenna during a lightning. Always keep a distance of more
than 40 cm from the antenna in order to reduce exposure to electromagnetic fields below
the legal limits. This distance applies to
to antennas with higher gain.
Any Ethernet cabling must be shielded, the Ethernet section of this manual provides
λ
- and
4
λ
-antennas. Larger distances may apply
2
9
Page 10
NB3700 User Manual 3.8
more information.
Devices with WLAN interface may be operated only with applicable Regulatory Domain
configured.
Cellular antennas attached to the router must have an antenna gain of equal or less than
2.5 dBi. If an extension cable is used to attach the antenna, the antenna gain may be
higher by the amount of cable attenuation.
We highly recommended creating a copy of a working system configuration. It can
be downloaded using the Web Manager and easily applied to a newer software release
afterwards as we generally guarantee backward compatibility.
2.2. Declaration of Conformity
NetModule hereby declares that under our own responsibility that the
routers comply with the relevant standards following the provisions of
the Council Directive 1999/5/EC. The signed version of the Declara-tions of Conformity can be found on the NetModule web page.
2.3. Waste Disposal
In accordance with the requirements of the Council Directive
2002/96/EC regarding Waste Electrical and Electronic Equipment
(WEEE), you are urged to ensure that this product will be segregated
from other waste at end-of-life and delivered to the WEEE collection
system in your country for proper recycling.
2.4. National Restrictions
This product may be generally used in all EU countries (and other countries following
the EU directive 1999/5/EC) without any limitation except for the countries mentioned
below. Please refer to our WLAN Regulatory Database for getting further national radio
interface regulations and requirements for a particular country.
10
Page 11
NB3700 User Manual 3.8
2.5. Open Source Software
We inform you that NetModule products may contain in part open-source software.
We are distributing such open-source software to you under the terms of GNU General
Public License (GPL)1, GNU Lesser General Public License (LGPL)2or other opensource licenses3. These licenses allow you to run, copy, distribute, study, change and
improve any software covered by GPL, Lesser GPL, or other open-source licenses without any restrictions from us or our end user license agreement on what you may do
with that software. Unless required by applicable law or agreed to in writing, software
distributed under open-source licenses is distributed on an "AS IS" basis, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
To obtain the corresponding open source codes covered by these licenses, please contact
our technical support at [email protected].
Acknowledgements
This product includes:
• PHP, freely available from http://www.php.net
• Software developed by the OpenSSL Project for use in the OpenSSL Toolkit
• Software written Jean-loup Gailly and Mark Adler
• MD5 Message-Digest Algorithm by RSA Data Security, Inc.
• An implementation of the AES encryption algorithm based on code released by
Dr Brian Gladman
• Multiple-precision arithmetic code originally written by David Ireland
• Software from The FreeBSD Project (www.freebsd.org)
1
Please find the GPL text under http://www.gnu.org/licenses/gpl-2.0.txt
2
Please find the LGPL text under http://www.gnu.org/licenses/lgpl.txt.
3
Please find the license texts of OSI licenses (ISC License, MIT License, PHP License v3.0, zlib License)
under http://opensource.org/licenses
11
Page 12
3. Specifications
3.1. Features
There are several different models of NB3700 available:
ModelUMTSLTEWLAN
NB3700-R (Wireline)
NB3700-W (WLAN)l
NB3700-U (UMTS)l
NB3700-UW (UMTS & WLAN)ll
NB3700-2UW (UMTS & WLAN)2xl
NB3700-L (LTE)ll
NB3700-LW (LTE & WLAN)lll
NB3700-2LW (LTE & WLAN)2x2xl
Table 3.1.: NB3700 Models
Note: All UMTS models include support for EDGE/GPRS. All LTE models include
support for UMTS/EDGE/GPRS. The UMTS/LTE models can be equipped with a
supplementary VOICE (-V) or GNSS (-G) option. We also offer models for CDMA
450MHz (-Ca).
All models have following basic functionality in common:
• Galvanically isolated power supply
• 5 Ethernet ports (M12)
• 1 USB 2.0 host port
• 2 digital inputs
• 2 digital outputs
• 2 SIM card slots
Due to its modular approach, the NB3700 router and its hardware components can be
arbitrarily assembled according to its indented usage or application. Please contact us
in case of special project requirements.
12
Page 13
NB3700 User Manual 3.8
3.2. Operating Elements
The following table describes the NB3700 status indicators. The color of the LED
represents the signal quality for wireless links.
l red means low
l yellow means moderate
l green means good or excellent
LabelColorStateFunction
StatuslblinkingThe device is busy due to startup, software or configu-
ration update.
lonThe device is ready. The captions of the top bank apply.
lonThe device is ready. The captions of the bottom bank
apply.
Mob1lllonMobile connection 1 is up.
lblinkingMobile connection 1 is being established.
moffMobile connection 1 is down.
Mob2lllonMobile connection 2 is up.
lblinkingMobile connection 2 is being established.
moffMobile connection 2 is down.
VPNlonVPN connection is up.
moffVPN connection is down.
WLANlllonWLAN connection is up.
lblinkingWLAN connection is being established.
moffWLAN connection is down.
GNSSlonGNSS is turned on and a valid NMEA stream is avail-
able.
lblinkingGNSS is searching for satellites.
moffGNSS is turned off or no valid NMEA stream is avail-
able.
VoicelonA voice call is currently active.
moffNo voice call is active.
13
Page 14
NB3700 User Manual 3.8
LabelColorStateFunction
DO1lonNormally open output port 1 is closed.
moffNormally open output port 1 is open.
DO2lonNormally closed output port 2 is closed.
moffNormally closed output port 2 is open.
DI1lonInput port 1 is set.
moffInput port 1 is not set.
DI2lonInput port 2 is set.
moffInput port 2 is not set.
Table 3.2.: NB3700 Status Indicators
14
Page 15
NB3700 User Manual 3.8
3.3. Interfaces
3.3.1. Overview
LabelPanelFunction
SIM 1FrontSIM 1, it can be assigned dynamically to any modem by
configuration.
SIM 2FrontSIM 2, it can be assigned dynamically to any modem by
configuration.
USBFrontUSB 2.0 host port, can be used as USB device server or for
software/configuration updates.
Ethernet 1-4FrontEthernet switch ports, can be used as LAN or WAN inter-
face.
Ethernet 5FrontAdditional Ethernet switch port (represents an RS232 port
for NB3700-4ES)
FrontEarth protection connector, connected to the ground of the
power supply VGND. If used, connect a yellow-green marked
cable with at least 6mm2copper area. Avoid corrosion and
protect the screws against loosening.
Earthing is mandatory for the variant Pb (50 VDC to
136 VDC power supply).
PowerFrontPower supply (galvanically isolated)
Digital I/OFrontGalvanically isolated digital I/O M12 connector
Mob 1FrontTNC female connector for mobile antenna 1
WLAN 1FrontTNC female connector for first WLAN antenna (main)
GPSFrontTNC female connector for GPS antenna
Mob 2FrontTNC female connector for mobile antenna 2
WLAN 2FrontTNC female connector for second WLAN antenna (diver-
sity)
ResetFrontReset button, press at least 3 seconds for reboot and at least
5 second for a factory reset. The start of the factory reset is
confirmed by all LEDs lighting up for a second. The button
can be released then again.
Table 3.3.: NB3700 Interfaces
15
Page 16
NB3700 User Manual 3.8
3.3.2. USB 2.0 Host Port
The USB 2.0 host port has the following specification:
FeatureSpecification
SpeedLow, Full & Hi-Speed
Currentmax. 500mA
Table 3.4.: USB 2.0 Host Port Specification
3.3.3. M12 Ethernet Connectors
Specification
The five Ethernet ports have the following specification:
FeatureSpecification
Isolation1500 Vrms
Speed10/100 Mbps
ModeHalf- & Full-Duplex
CrossoverAutomatic MDI/MDI-X
Table 3.5.: Ethernet Port Specification
Pin Assignment on M12, 4 poles, D-coded female
PinSignalPinning
1Tx+
2Rx+
3Tx−
4Rx−
Table 3.6.: Pin Assignments of Ethernet Connectors
16
Page 17
NB3700 User Manual 3.8
3.3.4. Power Supply
Variant Pa (12 VDC to 60 VDC)
The power input has the following specifications:
FeatureSpecification
Power supply nominal voltages24 VDC, 36 VDC and 48 VDC
(according to EN 50155)
Voltage range12 VDC to 60 VDC (−15% / +5%)
Max. power consumption15 W
Galvanic isolationyes, 1500 VDC
(according to EN 50155 & EN 60950)
Power Interruption Class S2Sustains interruptions up to 10 ms, there
are no batteries included
Connector typeM12, 4 poles, A-coded male
Table 3.7.: Power Input Specifications Variant Pa
Variant Pb (50 VDC to 136 VDC)
The power input has the following specifications:
FeatureSpecification
Power supply nominal voltages72 VDC, 96 VDC and 110 VDC
(according to EN 50155)
Voltage range50 VDC to 136 VDC (±10%)
Max. power consumption15 W
Galvanic isolationyes, 1500 Vrms
(according to EN 50155 & EN 60950)
Power Interruption Class S2Sustains interruptions up to 10 ms, there
are no batteries included
Connector typeM12, 4 poles, A-coded male
Table 3.8.: Power Input Specifications Variant Pb
17
Page 18
NB3700 User Manual 3.8
Pin Assignment M12, 4 poles, A-coded male
PinSignalPinning
1V+ (12−60 VDC or 50−136 VDC)
2Not connected
3VGND
4Not connected
Table 3.9.: Pin Assignments of Power Connector
3.3.5. Digital Inputs and Outputs
Isolated Outputs
The isolated digital output ports have the following specification:
FeatureSpecification
Number of output ports2
Limiting continuous current1 A
Maximum switching voltage60 VDC, 42 VAC ( Vrms)
Maximum switching capacity60 W
Table 3.10.: Isolated Digital Outputs Specification
Isolated Inputs
The isolated digital input ports have the following specification:
FeatureSpecification
Number of inputs2
maximum input voltage40 VDC
Minimum voltage for level 1
(set)7.2 VDC
Maximum voltage for level 0
(not set)5.0 VDC
Table 3.11.: Isolated Digital Inputs Specification
18
Page 19
NB3700 User Manual 3.8
Note: A negative input voltage is not recognized.
Pin Assignment M12 8-pole A-coded female
PinSignalPinning
1DI1+
2DI1−
3DI2+
4DI2−
5DO1: Dry contact relay normally open
6DO1: Dry contact relay normally open
7DO2: Dry contact relay normally closed
8DO2: Dry contact relay normally closed
Table 3.12.: Pin Assignments of Digital Inputs and Outputs
3.3.6. RS-232 Port
The RS-232 port (if present)has the following specification:
FeatureSpecification
Protocol3-wire RS-232: GND, TXD, RXD
Baud rate300, 1 200, 2 400, 4 800, 9 600, 19 200,
38 400, 57 600, 115 200
Data bits7 bit, 8 bit
Paritynone, odd, even
Stop bits1, 2
Software flow controlNone, XON/XOFF
Hardware flow controlNone
Table 3.13.: RS-232 Port Specification
Pin Assignment M12, 4 poles, D-coded female
PinSignalPinning
1GND
19
Page 20
NB3700 User Manual 3.8
PinSignalPinning
2RxD
3not connected
4TxD
Table 3.14.: Pin Assignments of RS-232 Port
20
Page 21
4. Installation
4.1. Environmental Conditions
The following precautions must be taken before installing a NB3700 router:
• Avoid direct solar radiation
• Protect the device from humidity, steam and aggressive fluids
• Guarantee sufficient circulation of air around the device
• The device is for indoor use only
ParameterRating
Input Voltage (Variant Pa)12 VDC to 60 VDC (−15% / +5%)
Input Voltage (Variant Pb)50 VDC to 136 VDC (±10%)
Operating Temperature Range−25◦C to +70◦C
Humidity0 to 95% (non-condensing)
Altitude (Variant Pa)up to 4000m
Altitude (Variant Pb)up to 2000m
Over-Voltage CategoryI
Pollution Degree2
Ingress Protection RatingIP40 (with SIM and USB covers mounted)
Table 4.1.: Operating Conditions
Important: When using the Pb variant with an input voltage greather than
60 VDC, the router MUST be connected to an earth protection.
4.2. Installation of the Router
NB3700 is designed for mounting it on a worktop or wall. Please consider the safety
instructions and the environmental conditions in chapter 2.
21
Page 22
NB3700 User Manual 3.8
4.3. Installation of the SIM Card
SIM cards can be inserted by sliding it into one of the designated holes on the front
panel. Insert any SIM card with the sloped corner towards the device and the contacts
towards to bottom side. By using a small paper clip (or similar) you will need to press
it a bit until it snaps into place. For removing the SIM, you will need to push it again
in the same manner. The SIM card will then rebounce and can be pulled out.
SIMs can be assigned flexibly to any modem in the system. It is also possible to switch
a SIM to a different modem during operation, for instance if you want to use another
provider upon a certain condition. However, a SIM switch usually takes about 10-20
seconds which can be bypassed (e.g. at bootup) if SIMs are installed reasonably. Using
only a single SIM with one modem, it should be preferably placed into the SIM 1 holder.
For systems which should operate two modems with two SIMs in parallel, we recommend
to assign Mobile 1 to SIM 1 and Mobile 2 to SIM 2.
Further information about SIM configuration can be found in chapter 5.3.3.
4.4. Installation of the WLAN Antennas
Any WLAN antennas must be mounted to the connectors WLAN1 and WLAN2. The
number of attached antennas can be configured in the software. If only one antenna is
used, it must be attached to WLAN1. However, for better diversity and thus better
throughput and coverage, we highly recommend using two antennas.
4.5. Installation of the Local Area Network
Up to two 10/100 Mbps Ethernet devices can be directly connected to the router, further devices can be attached via an addtional Ethernet switch. Please ensure that the
connector has been plugged in properly and remains in a fixed state, you might otherwise experience sporadical link loss during operation. The Link/Act LED will lit up as
soon as the device has synced. If not, it might be necessary to configure a different link
setting as described in chapter 5.3.2.
4.6. Installation of the Power Supply
The router can be powered with an external source supplying between 12 VDC and 48 VDC
or 50 VDC and 136 VDC respectively. It is to be used with a certified (CE or equivalent)
power supply, which must have a limited and SELV circuit output. The router is now
ready for getting engaged.
22
Page 23
5. Configuration
The following chapters give information about setting up the router and configuring its
features as provided with system software 3.8.
5.1. First Steps
NetModule routers can be easily set up by using the HTTP-based configuration interface,
called the Web Manager. It is supported by the latest web browsers (e.g. Microsoft
Internet Explorer 11, Mozilla Firefox 28.0, Safari 7 and many others). Please ensure to
have JavaScript turned on.
Any submitted configuration via the Web Manager will be applied immediately to the
system when pressing the Apply button. When configuring subsystems which require
multiple steps (for instance WLAN) you can use the Continue button to store any
settings temporarily and apply them at a later time. Please note, that those settings
will be neglected at logout unless applied.
You may also upload configuration files via SNMP, SSH, HTTP or USB in case you
intend to deploy a larger numbers of routers. Advanced users may also use the Command
Line Interface (CLI) and set configuration parameters directly.
The IP address of Ethernet1 is 192.168.1.1 and the Dynamic Host Configuration Protocol (DHCP) is activated on the interface by default. The following steps need to be
taken to establish your first Web Manager session:
1. Connect the Ethernet port of your computer to the Ethernet1 port of the router
using a standard CAT5 cable with RJ45 (or M12) connectors.
2. If not yet activated, enable DHCP on your computer’s Ethernet interface so that
an IP address can be obtained automatically from the router. This usually takes a
short amount of time until your PC has received the corresponding parameters (IP
address, subnet mask, default gateway, name server). You may track the progress
by having a look to your network control panel and check whether your PC has
correctly retrieved an IP address of the range 192.168.1.100 to 192.168.1.199.
3. Launch your favorite web browser and point it to the IP address of the router (the
URL is http://192.168.1.1).
4. Please follow the instructions of the Web Manager for configuring the router. Most
of the menus are self-explanatory, further details are given in the following chapters.
23
Page 24
NB3700 User Manual 3.8
5.1.1. Initial Access
In factory state you will be prompted for a new administrator password. Please choose
a password which is both, easy to remember but also robust against dictionary attacks
(such as one that contains numbers, letters and punctuation characters). The password
shall have a minimum length of 6 characters. It shall contain a minimum of 2 numbers
and 2 letters.
Figure 5.1.: Initial Login
Please note that the admin password will be also applied for the root user which can be
used to access the device via the serial console, telnet, SSH or to enter the bootloader.
You may also configure additional users which will only be granted to access the summary
page or retrieve status information but not to set any configuration parameters.
A set of services (USB Autorun, CLI-PHP) are by default activated in factory state
and will be disabled as soon as the admin password has been set. They can be enabled
again afterwards in the relevant sections. Other services (SSH, Telnet, Console) can be
accessed in factory state by providing an empty or no password.
24
Page 25
NB3700 User Manual 3.8
5.1.2. Recovery
Following actions might be taken in case the router has been misconfigured and cannot
be reached anymore:
1. Factory Reset: You can initiate a reset back to factory settings via the Web Manager, by running the command factory-reset or by pressing the reset button.
The latter would require a slim needle or paper clip which must be inserted into
the holeto the left of the LEDs. The button must be hold pressed for up to
5 seconds until all LEDs flash up.
2. Serial Console Login: It is also possible to log into the system via the serial port.
This would require a terminal emulator (such as PuTTY or HyperTerminal) and an
RS232 connection (115200 8N1) attached to the serial port of your local computer.
You will also see the kernel messages at bootup there.
3. Recovery Image: In severe cases we can provide a recovery image on demand which
can be loaded into RAM via TFTP and executed. It offers a minimal system image
for running a software update or doing other modifications. You will be provided
with two files, recovery-image and recovery-dtb, which must be placed in the root
directory of a TFTP server (connected via LAN1 and address 192.168.1.254). The
recovery image can be launched from the boot-loader using a serial connection. You
will have to stop the boot process by pressing s and enter the bootloader. You
can then issue run recovery to load the image and start the system which can be
accessed via HTTP/SSH/Telnet and its IP address 192.168.1.1 afterwards. This
procedure can be also initiated by holding the factory reset button longer than 15
seconds.
25
Page 26
NB3700 User Manual 3.8
5.2. HOME
This page provides a status overview of enabled features and connections.
Figure 5.2.: Home
Summary
This page offers a short summary about the administrative and operational status of
the router’s interfaces.
WAN
This page offers details about any enabled Wide Area Network (WAN) links (such as
the IP addresses, network information, signal strength, etc.) The information about the
amount of downloaded/uploaded data is stored in non-volatile memory, thus survive a
reboot of the system.
The counters can be reset by pressing the Reset button.
WWAN
This page shows information about modems and their network status.
26
Page 27
NB3700 User Manual 3.8
WLAN
The WLAN page offers details about the enabled WLAN interfaces when operating in
access-point mode. This includes the SSID, IP and MAC address and the currently used
frequency and transmit power of the interface as well as the list of associated stations.
GNSS
This page displays the position status values, such as latitude/longitude, the satellites
in view and more details about the used satellites.
Ethernet
This page shows information about the Ethernet interfaces and packet statistics information.
LAN
This page shows information about the LAN interfaces plus the neighborhood information.
DHCP
This page offers details about any activated DHCP service, including a list of issued
DHCP leases.
OpenVPN
This page provides information about the OpenVPN tunnel status.
IPSec
This page provides information about the IPsec tunnel status.
PPTP
This page provides information about the PPTP tunnel status.
GRE
This page provides information about the GRE tunnel status.
MobileIP
This page provides information about Mobile IP connections.
Firewall
This page offers information about any firewall rules and their matching statistics. It
can be used to debug the firewall.
QoS
This page provides information about the used QoS queues.
27
Page 28
NB3700 User Manual 3.8
DynDNS
This page provides information about Dynamic DNS.
System Status
The system status page displays various details of your NB3700 router, including system
details, information about mounted modules and software release information.
SDK
This section will list all webpages generated by SDK scripts.
28
Page 29
NB3700 User Manual 3.8
5.3. INTERFACES
5.3.1. WAN
Link Management
Depending on your hardware model, WAN links can be made up of either Wireless
Wide Area Network (WWAN), Wireless LAN (WLAN), Ethernet or PPP over Ethernet
(PPPoE) connections. Please note that each WAN link has to be configured and enabled
in order to appear on this page.
Figure 5.3.: WAN Links
29
Page 30
NB3700 User Manual 3.8
In general, a link will be only dialed or declared as up if the following prerequisites are
met:
ConditionWWAN WLAN ETHPPPoE
Modem is registeredX
Registered with valid service typeX
Valid SIM stateX
Sufficient signal strengthXX
Client is associatedX
Client is authenticatedX
Valid DHCP address retrievedXXXX
Link is up and holds addressXXXX
Ping check succeededXXXX
The menu can be used further to prioritize your WAN links. The highest priority link
which has been established successfully will become the so-called hotlink which holds
the default route for outgoing packets.
In case a link goes down, the system will automatically switch over to the next link in
the priority list. You can configure each link to be either established when the switch
occurs or permanently in order to minimize link downtime.
ParameterWAN Link Priorities
1st priorityThe primary link which will be used whenever possible.
2nd priorityThe first fallback link, it can be enabled permanently or
being dialed as soon as Link 1 goes down.
3rd priorityThe second fallback link, it can be enabled permanently or
being dialed as soon as Link 2 goes down.
4th priorityThe third fallback link, it can be enabled permanently or
being dialed as soon as Link 3 goes down.
Links are being triggered periodically and put to sleep in case it was not possible to
establish them within a certain amount of time. Hence it might happen that permanent
links will be dialed in background and replace links with lower priority again as soon as
they got established. In case of interfering links sharing the same resources (for instance
in dual-SIM operation) you may define a switch-back interval after which an active
hotlink is forced to go down in order to let the higher-prio link getting dialed again.
30
Page 31
NB3700 User Manual 3.8
We recommend to use the permanent operation mode for WAN links in general. However, in case of time-limited mobile tariffs for instance, the switchover mode might be
applicable. By using the distributed mode, it is possible to distribute outgoing traffic
over multiple WAN links based on their weight ratio.
For mobile links, it is further possible to pass through the WAN address towards a local
host (also called Drop-In or IP Pass-through). In particular, the first DHCP client will
receive the public IP address. More or less, the system acts like a modem in such case
which can be helpful in case of firewall issues. Once established, the Web Manager can
be reached over port 8080 using the WAN address but still over the LAN1 interface
using port 80.
ParameterWAN Link Operation Modes
disabledLink is disabled
permanentLink is being established permanently
on switchoverLink is being established on switchover, it will be dialled if
previous links failed
distributedLink is member of a load distribution group
ParameterWAN Link Settings
Operation modeThe operation mode of the link
WeightThe weight ratio of a distributed link
Switch-backSpecifies the switch-back condition of a switchover link and
the time after an active hotlink will be teared down
IP Pass-throughSpecifies whether the IP address of the WAN link should
be passed-through to the first DHCP client of the specified
LAN interface
31
Page 32
NB3700 User Manual 3.8
WAN Settings
This page can be used to configure WAN specific settings like the Maximum Segment Size
(MSS). The MSS corresponds to the largest amount of data (in bytes) that the router
can handle in a single, unfragmented TCP segment. In order to avoid any negative side
effects the number of bytes in the data segment and the headers must not add up to
more than the number of bytes in the Maximum Transmission Unit (MTU). The MTU
can be configured per each interface and corresponds to the largest packet size that can
be transmitted.
Figure 5.4.: WAN Settings
ParameterTCP MSS Settings
MSS adjustmentEnable or disable MSS adjustment on WAN interfaces.
Maximum segment sizeMaximum number of bytes in a TCP data segment.
32
Page 33
NB3700 User Manual 3.8
Supervision
Network outage detection on a per-link basis can be performed by sending pings on each
link to some authoritative hosts. A link will be declared as down in case all trials have
failed and only as up if at least one host can be reached.
Figure 5.5.: Link Supervision
ParameterSupervision Settings
LinkThe WAN link to be monitored (can be ANY)
ModeSpecifies whether the link shall only be monitored if being
up (e.g. for using a VPN tunnel) or if connectivity shall be
also validated at connection establishment (default)
Primary hostThe primary host to be monitored
Secondary hostThe secondary host to be monitored (optional)
Ping timeoutThe amount of time in milliseconds a response for a single
ping can take, consider to increase this value in case of slow
and tardy links (such as 2G connections)
33
Page 34
NB3700 User Manual 3.8
ParameterSupervision Settings
Ping intervalThe interval in seconds at which pings are transmitted on
each interface
Retry intervalThe interval in seconds at which pings are re-transmitted in
case a first ping failed
Max.number of failed
trials
The maximum number of failed ping trials until the link will
be declared as down
Emergency actionThe emergency action which should be taken after a max-
imum downtime has been reached. Using reboot would
perform a reboot of the system, restart link services
will restart all link-related applications including a reset of
the modem.
34
Page 35
NB3700 User Manual 3.8
5.3.2. Ethernet
NB3700 routers ship with an Ethernet switch (ETH1-ETH5) which can be linked via
M12 connectors.
ETH1 usually forms the LAN1 interface which should be used for LAN purposes. Other
interfaces can be used to connect other LAN segments or for configuring a WAN link.
The LAN10 interface will be available as soon as a pre-configured USB Ethernet device
has been plugged in.
Ethernet Port Assignment
Figure 5.6.: Ethernet Ports
This menu can be used to individually assign each Ethernet port to a LAN interface, just
in case you want to have different subnets per port or use one port as WAN interface. You
may assign multiple ports to the same interface. Please note that on systems without
an Ethernet switch, the ports will be bridged by software then and operated by running
the Spanning Tree Protocol (STP).
35
Page 36
Ethernet Link Settings
NB3700 User Manual 3.8
Figure 5.7.: Ethernet Link Settings
Link negotiation can be set for each Ethernet port individually. Most devices support
auto-negotiation which will configure the link speed automatically to comply with other
devices in the network. In case of negotiation problems, you may assign the modes
manually but it has to be ensured that all devices in the network utilize the same
settings then.
36
Page 37
NB3700 User Manual 3.8
VLAN Management
NetModule routers support Virtual LAN according to IEEE 802.1Q which can be used
to create virtual interfaces on top of an Ethernet interface. The VLAN protocol inserts
an additional header to Ethernet frames carrying a VLAN Identifier (VLAN ID) which
is used for distributing the packets to the associated virtual interface. Any untagged
packets, as well as packets with an unassigned ID, will be distributed to the native
interface.
Figure 5.8.: VLAN Management
In order to form a distinctive subnet, the network interface of a remote LAN host must be
configured with the same VLAN ID as defined on the router. Further, 802.1P introduces
a priority field which influences packet scheduling in the TCP/IP stack.
The following priority levels (from lowest to highest) exist:
ParameterVLAN Priority Levels
0Background
1Best Effort
37
Page 38
NB3700 User Manual 3.8
ParameterVLAN Priority Levels
2Excellent Effort
3Critical Applications
4Video (< 100 ms latency and jitter)
5Voice (< 10 ms latency and jitter)
6Internetwork Control
7Network Control
38
Page 39
NB3700 User Manual 3.8
IP Settings
This page can be used to configure IP addressing for your LAN/WAN Ethernet interfaces. In addition to the primary IP address/subnet mask you may define an additional
IP address alias on the interface.
Please keep in mind that the DNS servers can be set globally in the DNS server configuration menu. But as soon as a link comes up it will use the interface-specific nameservers (e.g. the ones being retrieved over DHCP) and update the resolver configuration
accordingly.
Figure 5.9.: LAN IP Configuration
ParameterLAN IP Settings
ModeDefines whether this interface is being used as LAN or WAN
interface
When running in LAN mode, the interface may be configured with the following settings:
39
Page 40
NB3700 User Manual 3.8
ParameterLAN IP Settings
IP addressThe IP interface address
Subnet maskThe subnet mask for this interface
Alias IP addressThe alias IP interface address
Alias subnet maskThe alias subnet mask for this interface
When running in WAN mode, the interface may be configured with the following settings:
ParameterWAN IP Settings
WAN modeThe WAN operation mode, defines whether the interface
should run as DHCP client, statically configured or over
PPPoE.
MTUThe Maximum Transmission Unit for the interface, if pro-
vided it will specify the largest size of a packet transmitted
on the interface.
When running as DHCP client, no further configuration is required because all IP-related
settings (address, subnet, gateway, DNS server) will be retrieved from a DHCP server
in the network. You may also define static values but caution has to be taken to assign
an unique IP address as it would otherwise raise IP conflicts in the network.
PPPoE is commonly used when communicating with another WAN access device (like
a DSL modem). The following settings can be applied:
ParameterPPPoE Configuration
User namePPPoE user name for authenticating at the access device
PasswordPPPoE password for authenticating at the access device
Service nameSpecifies the service name set of the access concentrator and
can be left blank unless you have multiple services on the
same physical network and need to specify the one you want
to connect to.
Accessconcentrator
name
The name of the concentrator (the PPPoE client will connect to any access concentrator if left blank)
40
Page 41
5.3.3. Mobile
SIMs
NB3700 User Manual 3.8
Figure 5.10.: SIMs
The SIM page gives an overview about the available SIM cards, their assigned modems
and the current state. Once a SIM card has been inserted, assigned to a modem and
successfully unlocked, the card should remain in state ready and the network registration
status should have turned to registered. If not, please double-check your PIN.
Please keep in mind that registering to a network usually takes some time and depends
on signal strength and possible radio interferences. You may hit the Update button
at any time in order to restart PIN unlocking and trigger another network registration
attempt.
Under some circumstances (e.g. in case the modem flaps between base stations) it
might be necessary to set a specific service type or assign a fixed operator. The list
of operators around can be obtained by initiating a network scan (may take up to 60
seconds). Further details can be retrieved by querying the modem directly, a set of
suitable commands can be provided on request.
41
Page 42
NB3700 User Manual 3.8
Configuration
A SIM card is generally assigned to a default modem but might be switched, for instance
if you set up two WWAN interfaces with one modem but different SIM cards.
Close attention has to be paid when other services (such as SMS or Voice) are operating
on that modem, as a SIM switch will naturally affect their operation.
The following settings can be applied:
ParameterWWAN SIM Configuration
Default modemThe default modem assigned to this SIM card
Service typeThe service type to be used by default with this SIM card.
Remember that the link manager might change this in case
of different settings. The default is to use automatic, in
areas with interfering base stations you can force a specific
type (e.g. 3G-only) in order to prevent any flapping between
the stations around.
PIN protectionDepending on the used card, it can be necessary to unlock
the SIM with a PIN code. Please check the account details
associated with your purchased SIM and figure out whether
it is protected with a PIN.
PIN codeThe PIN code for unlocking the SIM card
SMS gatewayThe service center number for sending short messages. It is
generally retrieved automatically from your SIM card but
you may define a fix number here.
Network
This page provides information about the current network status, signal strength and
the Local Area Identifier (LAI) to which the modem has been registered. An LAI is
a globally unique number that identifies the country, network provider and Local Area
Code (LAC, group of base stations) of any given location area. It can be used to force
the modem to register to a particular mobile cell in case of competing stations.
You may further initiate a mobile network scan for getting networks in range and assign
an LAI manually.
Query
This page allows you to send Hayes AT commands to the modem. Besides the 3GPPconforming AT command-set further modem-specific commands can be applicable which
we can provide on demand. Some modems also support running Unstructured Supple-
42
Page 43
NB3700 User Manual 3.8
mentary Service Data (USSD) requests, e.g. for querying the available balance of a
prepaid account.
43
Page 44
NB3700 User Manual 3.8
WWAN Interfaces
This page can be used to manage your WWAN interfaces. The resulting link will pop
up automatically as WAN link once an interface has been added. Please refer to chapter 5.3.1 for how to manage them.
The Mobile LED will be blinking during the connection establishment process and goes
on as soon as the connection is up. Refer to section 5.8.7 or consult the system log files
for troubleshooting the problem in case the connection did not come up.
Figure 5.11.: WWAN Interfaces
The following mobile settings are required:
ParameterWWAN Mobile Parameters
ModemThe modem to be used for this WWAN interface
SIMThe SIM card to be used for this WWAN interface
Service typeThe required service type
Please note that these settings supersede the general SIM based settings as soon as the
44
Page 45
NB3700 User Manual 3.8
link is being dialed.
Generally, the connection settings are derived automatically as soon as the modem has
registered and the network provider has been found in our database. Otherwise, it will
be required to configure the following settings manually:
ParameterWWAN Connection Parameters
Phone numberThe phone number to be dialed, for 3G+ connections this
commonly refers to be *99***1#. For circuit-switched 2G
connections you can enter the fixed phone number to be
dialed in international format (e.g. +41xx).
Access point nameThe access point name (APN) being used
AuthenticationThe authentication scheme being used, if required this can
be PAP or/and CHAP
UsernameThe user-name used for authentication
PasswordThe password used for authentication
Furtheron, you may configure the following advanced settings:
ParameterWAN Advanced Parameters
Required signal strengthSets a minimum required signal strength before the connec-
tion is dialed
Home network onlyDetermines whether the connection should only be dialed
when registered to a home network
Negotiate DNSSpecifies whether the DNS negotiation should be performed
and the retrieved name-servers should be applied to the system
Call to ISDNHas to be enabled in case of 2G connections talking to an
ISDN modem
Header compressionEnables or disables 3GPP header compression which may
improve TCP/IP performance over slow serial links. Has to
be supported by your provider.
Data compressionEnables or disables 3GPP data compression which shrinks
the size of packets to improve throughput. Has to be supported by your provider.
Client addressSpecifies a fixed client IP address if assigned by the provider
MTUThe Maximum Transmission Unit for this interface
45
Page 46
NB3700 User Manual 3.8
5.3.4. WLAN
WLAN Management
In case your router is shipping with a WLAN (or Wi-Fi) module you can operate it
either as client or access point. As a client it can create an additional WAN link
which for instance can be used as backup link. As access point, it can form another LAN
interface which can be either bridged to an Ethernet-based LAN interface or create a
self-contained IP interface which can be used for routing and to provide services (such
as DHCP/DNS/NTP) in the same way like an Ethernet LAN interface does.
Figure 5.12.: WLAN Management
If the administrative status is set to disabled, the module will be powered off in order
to reduce the overall power consumption. Regarding antennas, we generally recommend
using two antennas for better coverage and throughput. A second antenna is definitely
mandatory if you want to achieve higher throughput rates as in 802.11n.
A WLAN client will automatically became a WAN link and can be managed as described in chapter 5.3.1.
46
Page 47
NB3700 User Manual 3.8
Running as access point, you can further configure the following settings:
ParameterWLAN Management
Operation typeSpecifies the desired IEEE 802.11 operation mode
Radio bandSelects the radio band to be used for connections, depending
on your module it could be 2.4 or 5 GHz
ChannelSpecifies the channel to be used
Available operation modes are:
StandardFrequencies BandwidthNet Data RateRange Indoor/Outdoor
802.11a5 GHz20 MHz54 Mbit/s35m / 120m
802.11b2.4 GHz20 MHz11 Mbit/s35m / 140m
802.11g2.4 GHz20 MHz54 Mbit/s38m / 140m
802.11n2.4/5 GHz20/40 MHz150 Mbit/s70m / 250m
Table 5.17.: IEEE 802.11 Network Standards
Prior to setting up an access point, it is always a good idea to run a network scan for
getting a list of neighboring WLAN networks and then choose the less interfering channel.
Please note that two adequate channels are required for getting good throughputs with
802.11n and a bandwidth of 40 MHz.
47
Page 48
NB3700 User Manual 3.8
WLAN Configuration
Running in client mode, it is possible to connect to one ore more remote access-points.
The system will switch to the next network in the list in case one goes down and
return to the highest-prioritized network as soon as it comes back. You can perform
a WLAN network scan and pick the settings from the discovered information directly.
The authentication credentials have to be obtained by the operator of the remote access
point.
Running in access-point mode you can create up to 4 SSIDs with each running their own
network configuration. The networks can be individually bridged to a LAN interface or
operate as dedicated interface in routing-mode.
Figure 5.13.: WLAN Configuration
48
Page 49
NB3700 User Manual 3.8
This section can be used to configure security-related settings.
based authentication, WPA-RADIUS can be used to authenticate against a remote RADIUS server which can be
configured in chapter 5.8.2 and WPA-EAP-TLS performs
authentication using keys/certificates which can be configured in chapter 5.8.8.
wpa-radiusEAP-PEAP/MSCHAPv2 with RADIUS authentication
wpa-tlsEAP-TLS with certificates
Being a shared medium, we strongly advise to secure your WLAN connection using
passwords or even keys/certificates. Using WEP is nowadays discouraged.
49
Page 50
NB3700 User Manual 3.8
WLAN IP Settings
This section lets you configure the TCP/IP settings of your WLAN network. A client
interface can be run over DHCP or with a statically configured address and default
gateway.
Figure 5.14.: WLAN IP Configuration
The access point networks can be bridged to any LAN interface for letting WLAN clients
and Ethernet hosts operate in the same subnet. However, for multiple SSIDs we strongly
recommend to set up separated interfaces in routing-mode in order to avoid unwanted
access and traffic between the interfaces. The corresponding DHCP server for each
network can be configured in afterwards as described in chapter 5.7.2.
ParameterWLAN IP Settings
Network modeChoose whether the interface shall be operated bridged or
in routing-mode
Bridge interfaceIf bridged, the LAN interface to which the WLAN network
should be bridged
50
Page 51
NB3700 User Manual 3.8
ParameterWLAN IP Settings
IP address / netmaskIn routing-mode, the IP address and netmask for this
WLAN network
51
Page 52
NB3700 User Manual 3.8
5.3.5. USB
NetModule routers ship with a standard USB host port which can be used to connect a
storage, network or serial USB device. Please contact our support in order to get a list
of supported devices.
Figure 5.15.: USB Administration
USB Administration
ParameterUSB Administration
Administrative statusSpecifies whether devices shall be recognized
Enable hotplugSpecifies whether device shall be recognized if plugged in
during runtime or only at bootup
Enable USB/IP device
Specifies if devices shall be exported over IP
server
52
Page 53
NB3700 User Manual 3.8
If the USB/IP device server has been enabled you can discover the mounted USB devices
and attach them to the USB/IP server. Enabled devices can now be exported to a remote
host. You will need an additional driver on the client for which we provide Windows or
Linux drivers. Further installation instructions can be provided on demand.
Please note that some USB devices behave latency-sensitive which may raise problems
when operating over a slow IP connection. Some devices may generally not work with
the USB/IP driver. Please contact our support in case of compatibility issues.
USB Devices
This page show the currently connected devices and it can be used to enable a specific
device based on its Vendor and Product ID. Only enabled devices will be recognized by
the system and raise additional ports and interfaces.
Figure 5.16.: USB Device Management
ParameterUSB Devices
Vendor IDThe USB Vendor ID of the device
Product IDThe USB Product ID of the device
53
Page 54
NB3700 User Manual 3.8
ParameterUSB Devices
ModuleThe USB module and type of driver to be applied for this
device
Any ID must be specified in hexadecimal notation, wildcards are supported (e.g. AB[0-1][2-3]
or AB*) A USB network device will be referenced as LAN10.
USB Autorun
This feature can be used to automatically launch a shell script or perform a software/config update as soon as an USB storage stick has been plugged in. For authentication, a
file called autorun.key must exist in the root directory of a FAT16/32 formatted stick.
It can be downloaded from that page and holds the SHA256 hash key of the admin
password. The file can hold multiple hashes which will be processed line-by-line during authentication which can be used for setting up more systems with different admin
passwords.
For new devices with an empty password the hash key
can be used.
The hash keys can be generated by running the command echo -n "<admin-password>"
| sha256sum on a Linux system or an Internet hash key generator (search for "sha-256
hash calculator").
Once authentication has succeeded, the system scans for other files in the root directory
which can perform the following actions:
1. For running a script: autorun.sh
2. For a configuration update: cfg-<SERIALNO>.zip (e.g. cfg-00112B000815.zip),
or if not available cfg.zip
3. For a software update: sw-update.img
54
Page 55
NB3700 User Manual 3.8
5.3.6. Serial Port
This page can be used to manage your serial ports. A serial port can be used by:
ParameterSerial Port Usage
noneThe serial port is not used
login consoleThe serial port is used to open a console which can be ac-
cessed with a serial terminal client from the other side. It
will provide helpful bootup and kernel messages and spawns
a login shell, so that users can login to the system.
device serverThe serial port will be exposed over a TCP/IP port and can
be used to implement a Serial/IP gateway.
SDKThe serial port will be reserved for SDK scripts.
Figure 5.17.: Serial Port Administration
An RS232 serial port is optional on NB3700.
55
Page 56
NB3700 User Manual 3.8
Running a device server, the following settings can be applied:
Figure 5.18.: Serial Port Settings
ParameterSerial Settings
Physical protocolSelects the desired physical protocol on the serial port
Baud rateSpecifies the baud rate run on the serial port
Data bitsSpecifies the number of data bits contained in each frame
ParitySpecifies the parity used for every frame that is transmitted
or received
Stop bitsSpecifies the number of stop bits used to indicate the end
of a frame
Software flow controlDefines the software flow control for the serial port, XOFF
will send a stop, XON a start character to the other end to
control the rate of any incoming data
56
Page 57
NB3700 User Manual 3.8
ParameterSerial Settings
Hardware flow controlYou may enable RTS/CTS hardware flow control, so that
the RTS and CTS lines are used to control the flow of data
Protocol on TCP/IPYou may choose the IP protocols Telnet or TCP raw for the
device server
PortThe TCP port for the device server
TimeoutThe timeout until a client is declared as disconnected
ParameterServer Settings
Protocol on IP portSelects the desired IP protocol (TCP or Telnet)
PortSpecifies the TCP port on which the server will be available
TimeoutThe time in seconds before the port will be disconnected if
there is no activity on it. A zero value disables this function.
Allow remote controlAllow remote control (ala RFC 2217) of the serial port
Show bannerShow a banner when clients connect
Stop bitsSpecifies the number of stop bits used to indicate the end
of a frame
Allow clients fromSpecifies which clients are allowed to connect to the server
Please note that the device server does not provide authentication or encryption and
clients will be able connect from everywhere. Please consider to restrict access to a
limited network/host or block packets by using the firewall.
57
Page 58
NB3700 User Manual 3.8
5.3.7. Digital I/O
The Digital I/O page displays the current status of the I/O ports and can be used to
turn output ports on or off.
Figure 5.19.: Digital I/O Ports
You can apply the following settings:
ParameterDigital I/O Settings
DO1 after rebootInitial status of DO1 after system has booted
DO2 after rebootInitial status of DO2 after system has booted
Besides on and off you may keep the default status as the hardware has initialized it
after power-up.
The digital inputs and outputs can also be monitored and controlled by SDK scripts.
58
Page 59
NB3700 User Manual 3.8
5.3.8. GNSS
Administration
The GNSS page lets you enable or disable the GNSS modules present in the system and
can be used to configure the daemon that can be used to share access to receivers without
contention or loss of data and to respond to queries with a format that is substantially
easier to parse than the NMEA 0183 emitted directly by the GNSS device.
We are currently running the Berlios GPS daemon (version 3.15), supporting the new
JSON format. Please navigate to http://gpsd.berlios.de for getting more information about how to connect any clients to the daemon remotely. The position values can
also be queried by the CLI and used in SDK scripts.
ParameterGNNS Module Configuration
Administrative statusEnable or disable the GNSS module
Operation modeThe mode of operation, either standalone or assisted (for
A-GPS)
Antenna typeThe type of the connected GPS antenna, either passive or
actively 3 volt powered
AccuracyThe desired accuracy in meters
Fix frame intervalThe amount of time to wait between fix attempts
ParameterGNNS Server Configuration
Server portThe TCP port on which the daemon is listening for incoming
connections
Allow clients fromSpecifies where clients can connect from, can be either
everywhere or from a specific network
Clients start modeSpecifies how data transferal is accomplished when a client
connects. You can specify on request which typically requires an R to be sent. Data will be sent instantly in case of
raw mode which will provide NMEA frames or super-raw
which includes the original data of the GPS receiver. If the
client supports the JSON format (i.e. newer libgps is used)
the json mode can be specified.
Please consider to restrict access to the server port, either by a specifying a dedicated
client network or by using a firewall rule.
59
Page 60
NB3700 User Manual 3.8
Position
This pages provides further information about the satellites in view and values derived
from them:
ParameterGNSS Information
LatitudeThe geographic coordinate specifying the north-south posi-
tion
LongitudeThe geographic coordinate specifying the east-west position
AltitudeThe height above sea level of the current location
Satellites in viewThe number of satellites in view as stated in GPGSV frames
SpeedThe horizontal and vertical speed in meter per second as
stated in GPRMC frames
Satellites usedThe number of satellites used for calculating the position as
stated in GPGGA frames
Dilution of precisionThe dilution of precision as stated in GPGSA frames
Furtheron, each satellite also comes with the following details:
ParameterGNSS Satellite Information
PRNThe PRN code of the satelitte (also referred as satellite ID)
as stated in GPGSA frames
ElevationThe elevation (up-down angle between the dish pointing di-
rection) in degrees as stated in GPGSV frames
AzimuthThe azimuth (rotation around the vertical axis) in degrees
as stated in GPGSV frames
SNRThe SNR (Signal to Noise Ratio), often referred as signal
strength
Please note that the values are shown as calculated by the daemon, their accuracy might
be suggestive.
Supervision
ParameterGNNS Supervision
Administrative statusEnable or disable GNSS supervision
Max. downtimeThe period of time without valid NMEA information after
which an emergency action will be taken
60
Page 61
NB3700 User Manual 3.8
ParameterGNNS Supervision
Emergency actionThe corresponding emergency action. You can either let
just restart the server which also re-initializes GPS on the
module or also reset the module in severe cases. Please note
that this might also have effect any running WWAN/SMS
services.
61
Page 62
NB3700 User Manual 3.8
5.4. ROUTING
5.4.1. Static Routes
This menu shows all routing entries of the system. They are typically formed by an
address/netmask couple (represented in IPv4 dotted decimal notation) which specify
the destination of a packet. The packets can be directed to either a gateway or an
interface or both. If interface is set to ANY, the system will choose the route interface
automatically, depending on the best matching network configured for an interface.
Figure 5.20.: Static Routing
In general, host routes precede network routes and network routes precede default routes.
Additionally, a metric can be used to determine the priority of a route, a packet will go
in the direction with the lowest metric in case a destination matches multiple routes.
Netmasks can be specified in CIDR notation (i.e. /24 expands to 255.255.255.0).
ParameterStatic Route Configuration
DestinationThe destination address of a packet
62
Page 63
NB3700 User Manual 3.8
ParameterStatic Route Configuration
NetmaskThe subnet mask which forms, in combination with the des-
tination, the network to be addressed. A single host can be
specified by a netmask of 255.255.255.255, a default route
corresponds to 0.0.0.0.
GatewayThe next hop which operates as gateway for this network
(can be omitted on peer-to-peer links)
InterfaceThe network interface on which a packet will be transmitted
in order to reach the gateway or network behind it
MetricThe routing metric of the interface (default 0), higher met-
rics have the effect of making a route less favorable
AThe route is considered active, it might be inactive if the
interface for this route is not yet up.
PThe route is persistent, which means it is a configured route,
otherwise it corresponds to an interface route.
HThe route is a host route, typically the netmask is set to
255.255.255.255.
NThe route is a network route, consisting of an address and
netmask which forms the subnet to be addressed.
DThe route is a default route, address and netmask are set
to 0.0.0.0, thus matching any packet.
Table 5.33.: Static Route Flags
63
Page 64
NB3700 User Manual 3.8
5.4.2. Extended Routing
Extended routes can be used to perform policy-based routing, they generally precede
static routes.
Figure 5.21.: Extended Routing
In contrast to statis routes, extended routes can be made up, not only of a destination
address/netmask, but also a source address/netmask, incoming interface and the type
of service (TOS) of packets.
ParameterExtended Route Configuration
Source addressThe source address of a packet
Source netmaskThe source address of a packet
Destination addressThe destination address of a packet
Destination netmaskThe destination address of a packet
Incoming interfaceThe interface on which the packet enters the system
64
Page 65
NB3700 User Manual 3.8
ParameterExtended Route Configuration
Type of serviceThe TOS value within the header of the packet
Route toSpecifies the target interface or gateway to where the packet
should get routed to
65
Page 66
NB3700 User Manual 3.8
5.4.3. Multipath Routes
Multipath routes will perform weighted IP-session distribution for particular subnets
across multiple interfaces.
Figure 5.22.: Multipath Routes
At least two interfaces have to be defined to establish multipath routing. Additional
interfaces can be added by pressing the plus sign.
ParameterAdd Multipath Routes
Targetnetwork/netmask
Defines the target network for which multipath routing shall
be applied
InterfaceSelects the interface for one path
WeightWeight of the interface in relation to the others
NextHopOverrides the default gateway of this interface
66
Page 67
NB3700 User Manual 3.8
5.4.4. Mobile IP
Mobile IP (MIP) can be used to enable seamless switching between different kinds of
WAN links (e.g. WWAN/WLAN). The mobile node hereby remains reachable via the
same IP address (home address) at any time, independently of the WAN link being
used. Effectively, any WAN link switch causes very small outages during switchover
while keeping all IP connections alive.
Moreover, NetModule routers also support NAT-Traversal for mobile nodes running
behind a firewall (performing NAT), which makes mobile nodes even there accessible
from a central office via their home address, and thus, bypassing any complicated VPN
setups.
The home agent accomplishes this by establishing a tunnel (similar to a VPN tunnel)
between itself and the mobile node. WAN link switching works by telling the home
agent that the WAN IP address (called the care-of address in MIP terms) of the
mobile node has changed. The home agent will then encapsulate packets destined toa mobile node’s home address into a tunnel packet containing the current care-of
address of the mobile node as its destination address.
To prevent problems with firewalls and private IP addressing, the MIP implementation
always employs reverse tunneling, which means that all traffic sent by a mobile node is
relayed via the tunnel to the home agent instead of directly being conveyed to the final
destination. This fact also empowers MIP to be used as a lightweight VPN replacement
(without payload secrecy).
The MIP implementation supports RFCs 3344, 5177, 3024 and 3519. For applications
requiring vast numbers of mobile nodes, interoperability with the Cisco 2900 Series homeagent implementation has been verified. However, since NetModule routers implement
a mobile node as well as a home agent, a MIP network with up to 10 mobile nodes
can be implemented without requiring expensive third party routers.
67
Page 68
NB3700 User Manual 3.8
If MIP is run as a mobile node, the following settings can be configured:
ParameterMobile IP Configuration
Primary home agent address
Secondary home agent
address
Home addressThe permanent home address of the mobile node which can
SPIThe Security Parameter Index (SPI) identifying the security
Authentication typeThe used authentication algorithm.This can be prefix-
Shared secretThe shared secret used for authentication of the mobile
The address of the primary home agent
The address of the secondary home agent. The mobile node
will try to register with this home agent, if the primary homeagent is not reachable.
be used to reach the mobile router at any time
context for the mobile IP tunnel between the mobile node
and the home agent.This is used to distinguish mobile
nodes from each other. Therefore each mobile node needs
to be assigned a unique SPI. This is a 32-bit hexadecimal
value.
suffix-md5 (default for MIP) or hmac-md5.
node at the home agent. This can be either a 128-bit hexadecimal value or a random length ASCII string.
Life timeThe lifetime of security associations in seconds
UDP encapsulationSpecifies whether UDP encapsulation shall be used or not.
To allow NAT traversal, UDP encapsulation must be enabled.
Mobile network addressOptionally specifies a subnet which should be routed to the
mobile node. This information is forwarded via Network
Mobility (NEMO) extensions to the home agent. The homeagent can then automatically add IP routes to the subnet
via the mobile node. Note that this feature is not supported by all third party home agent implementations.
Mobile network maskThe network mask for the optional routed network
68
Page 69
NB3700 User Manual 3.8
If MIP is run as a home agent, you will have to set up a home address and network
mask for the home agent first. Then you will need to add the configuration for all mobile
nodes which is made up of the following settings:
Figure 5.23.: Mobile IP
ParameterMobile IP Node Configuration
SPIThe Security Parameter Index (SPI) identifying the secu-
rity context for the tunnel between the mobile node and
the home agent. This is used to distinguish mobile nodes
from each other. Therefore each mobile node needs to be
assigned a unique SPI. This is a 32-bit hexadecimal value.
Authentication typeThe used authentication algorithm.This can be prefix-
suffix-md5 (default for mobile IP) or hmac-md5.
Shared secretThe shared secret used for authentication of the mobile
node at the home agent. This can be either a 128-bit hexadecimal value or a random length ASCII string.
69
Page 70
NB3700 User Manual 3.8
5.4.5. Quality Of Service
NetModule routers are able to prioritize and shape certain kinds of IP traffic. This is
currently limited on egress, which means that only outgoing traffic can be stipulated.
The current QoS solution is using Stochastic Fairness Queueing (SFQ) classes in combination with Hierarchy Token Bucket (HTB) qdiscs. Its principle of operation can be
summarized as ceiling the max. throughput per link and shaping traffic by reflecting
the specified queue priorities. In general, the lowest priority of a queue gets most out of
the available bandwidth.
In case of demands for other class or qdisc algorithms please contact our support team
in order to evaluate the best approach for your application.
QoS Administration
The administration page can be used to enable and disable QoS.
QoS Classification
The classification section can be used to define the WAN interfaces on which QoS should
be active.
ParameterQoS Interface Parameters
InterfaceThe WAN interface on which QoS should be active
Bandwidth congestionThe bandwidth congestion method. In case of auto the
system will try to apply limits in a best-effort way. However,
it is suggested to set fixed bandwidth limits as they also offer
a way of tuning the QoS behaviour.
Downstream bandwidthThe available bandwidth for incoming traffic
Upstream bandwidthThe available bandwidth for outgoing traffic
When defining limits, you should consider bandwidth limits which are at least possible as
most shaping and queues algorithms will not work correctly if the specified limits cannot
be achieved. In particular, any WWAN interfaces operating in a mobile enviroment are
suffering variable bandwidths, thus rather lower values should be used.
In case an interface has been activated, the system will automatically create the following
queues:
ParameterQoS Default Queues
highA high priority queue which may hold any latency-critical
services (such as VoIP)
defaultA default queue which will handle all other services
70
Page 71
NB3700 User Manual 3.8
ParameterQoS Default Queues
lowA low priority queue which may hold less-critical services
for which shaping is intended
Each queue can be configured as follows:
ParameterQoS Queue Parameters
NameThe name of the QoS queue
PriorityA numerical priority for the queue, lower values indicate
higher priorities
BandwidthThe maximum possible bandwidth for this queue
You can now configure and assign any services to each queue. The following parameters
apply:
ParameterQoS Service Parameters
Interface
The QoS interface of the queue
QueueThe QoS queue to which this service shall be assigned
SourceSpecifies a network address and netmask used to match the
source address of packets
DestinationSpecifies a network address and netmask used to match the
destination (target) address of packets
ProtocolSpecifies the protocol for packets to be matched
Type of ServiceSpecifies the TOS/DiffServ for packets to be matched
71
Page 72
NB3700 User Manual 3.8
5.4.6. Multicast
NetModule routers ship with an IGMP proxy which is able to maintain multicast groups
on a particular interface and distribute incoming multicast packets towards the downstream interfaces on which hosts have joined the groups.
ParameterMulticast Routing Settings
Administrative statusSpecifies whether multicast routing is active
Incoming interfaceThe upstream interface on which multicast groups are joined
and on which multicast packets come in
Distribute toSpecifies the downstream interfaces to which multicast pack-
ets will be forwarded
72
Page 73
NB3700 User Manual 3.8
5.5. FIREWALL
5.5.1. Administration
NetModule routers use Linux’s netfilter/iptables firewall framework (see http://www.
netfilter.org for more information) which supports stateful inspection, that is, grant-
ing the same permissions for inherited connections within an IP session (e.g. FTP which
builds up a control and data connection).
The administration page can be used to enable and disable firewalling. When turning it
on, a shortcut can be used to generate a predefined set of rules which allow administration
(over HTTP, HTTPS, SSH or TELNET) by default but block any other packets coming
from the WAN interface.
5.5.2. Adress/Port Groups
This menu can be used to form address or port groups which can be later used for
firewall rules in order to reduce the number of rules. If address or port groups have been
referenced, packets will match if one of the configured entities apply to the packet.
Figure 5.24.: Firewall Groups
73
Page 74
NB3700 User Manual 3.8
5.5.3. Rules
In general, the firewall is set up of a range of rules which control each packet’s permission to pass the router. Please note that the rules are processed by order, that means
traversing the list from top to bottom until a matching rule is found. Packets which are
not matching any of the rules configured will be ALLOWED.
Figure 5.25.: Firewall Rules
ParameterFirewall Rule Configuration
DescriptionA meaningful description about the purpose of this rule
ModeSpecifies whether the packets of this rule should be allowed
or denied
SourceThe source address of matching packets, can be any or speci-
fied by address/network. Selecting on source MAC addreses
is possible as well.
74
Page 75
NB3700 User Manual 3.8
ParameterFirewall Rule Configuration
DestinationThe destination address of matching packets, can be any,
local (addressed to the system itself) or specified by address/network
Incoming interfaceThe interface on which matching packets are received
ProtocolThe used IP protocol of matching packets (UDP, TCP or
ICMP)
Destination port(s)The destination port of matching packets, which can be
specified by a single port or a range of ports (only UDP/TCP).
The statistics page can be used to figure out if rules have matched any packets and
provides a convenient way to debug your firewall setup.
75
Page 76
NB3700 User Manual 3.8
5.5.4. NAPT
This page can be used to configure Network Address and Port Translation (NAPT) for
packets traversing the system. NAPT hereby modifies IP addresses or/and TCP/UDP
ports in matching IP packets. By tracking those connections, it will also automatically
adjust the returning packets of an IP session.
Figure 5.26.: NAPT Administration
The administration page lets you specify the interfaces on which outgoing NAT (also
called Masquerading) will be performed. NAT will hereby use the address of the selected
interface and choose a random source port for outgoing connections and thus enables
communication between hosts from a private local area network towards hosts on the
public network.
NAPT Inbound Rules
Inbound rules can be used to modify the target section of IP packets and, for instance,
forward a service or port to an internal host. By doing so, you can expose that service
and make it available from the Internet. You may also establish 1:1 NAT mapping for
a single host using additional outbound rules.
76
Page 77
NB3700 User Manual 3.8
Figure 5.27.: Inbound NAPT
77
Page 78
NB3700 User Manual 3.8
Please note that the specified rules are processed by order, that means, traversing the
list from top to bottom until a matching rule is found. If there is no matching rule
found, the packet will pass as is.
ParameterInbound NAPT Rules
DescriptionA meaningful description of this rule
Incoming interfaceThe interface from which matching packets are received
Target addressThe destination address of matching packets (optional)
ProtocolThe used protocol of matching packets
PortsThe used UDP/TCP port of matching packets
Redirect toThe address to which matching packets shall be redirected
Redirect portThe port to which matching packets will be redirected
NAPT Outbound Rules
Outbound rules will modify the source section of IP packets and can be used to establish
1:1 NAT mappings but also to redirect packets to a specific service.
ParameterOutbound NAPT Rules
DescriptionA meaningful description of this rule
Incoming interfaceThe outgoing interface on which matching packets are leav-
ing the router
Source addressThe source address of matching packets (optional)
ProtocolThe used protocol of matching packets
PortsThe used UDP/TCP port of matching packets
Rewrite source addressThe address to which the source address of matching packets
shall be rewritten
Rewrite source portThe port to which the source port of matching packets shall
be rewritten
78
Page 79
5.6. VPN
5.6.1. OpenVPN
OpenVPN Administration
NB3700 User Manual 3.8
Figure 5.28.: OpenVPN Administration
Tunnel Configuration
NetModule routers support one single server tunnel and up to four client tunnels. You
can specify tunnel parameters either in standard configuration or upload an expert mode
file which has been created in advance. Refer to chapter 5.6.1 to learn more about how
to manage clients and generate the files.
ParameterOpenVPN Configuration
Operation modeSpecifies whether client or server mode should be used for
this tunnel, it further specifies if tunnel shall be configured
in a standard way or if an expert mode file shall be used.
79
Page 80
NB3700 User Manual 3.8
Figure 5.29.: OpenVPN Configuration
80
Page 81
NB3700 User Manual 3.8
If the tunnel is operated in client mode, the following settings can be applied:
ParameterOpenVPN Client Configuration
Peer selectionSpecifies how the remote peer shall be selected, besides a
single server you may configure multiple servers which can,
in case of failures, either be selected sequently (i.e. failover)
or randomly (i.e. load balancing)
ServerThe address or hostname of the remote server
PortThe port of the remote server (1194 by default)
The following settings can be used to configure a tunnel:
ParameterOpenVPN Configuration
TypeThe device type for this tunnel which can be either TUN
(typically used for routed connections) or TAP (required for
bridged networks)
ProtocolThe tunnel protocol to be used for the transport connection
Network modeDefines how the packets should be forwarded, which can be
either routed or bridged from/to a particular LAN interface.
If required, you can also specify the maximum transfer unit
for the tunnel interface.
MTUThe Maximum Transmission Unit of the tunnel interface
CipherThe required cipher mechanism used for encryption
DigestThe digest algorithm used for authenticating
Authentication can be done in the following ways:
ParameterOpenVPN Authentication
certificate-basedCertificates and keys for authenticating the tunnel. Please
take care that the proper keys/certificates have been either
uploaded or generated (see 5.8.8).
credential-basedUsername and password are used for authentication.
bothVerifying the tunnel uses certificates and credentials.
noneTunnel is not authenticated (discouraged)
The following further options can be applied:
81
Page 82
NB3700 User Manual 3.8
ParameterOpenVPN Options
use compressionEnable or disable LZO packet compression
use keepaliveCan be used to send a periodic keepalive packet in order to
keep the tunnel up despite of inactivity
redirect gatewayBy redirecting the gateway, all packets will be directed to
the VPN tunnel. Please ensure that essential services (such
as DNS or NTP servers) can be reached at the network
behind the tunnel. In doubt, create an extra static route
pointing to the correct interface.
allow duplicatesAllow multiple clients with the same common name to con-
currently connect.
verify certsCheck peer certificate against local CRL.
OpenVPN Expert Configuration (Client)
The expert configuration mode offers a straightforward way to configure a tunnel by
simply uploading a zip package containing the required configuration and optionally
key/certificate files. A client tunnel usually consists of the following files:
ParameterClient Expert Files
client.confOpenVPN configuration file (see http://www.openvpn.net
for available options)
ca.crtRoot certificate authority file
client.crtCertificate file
client.keyPrivate key file
client.p12PKCS#12 file
ta.keyTLS authentication key file
Please note that you may specify arbitrary file names, however, the configuration file
suffix must be .conf and all files referred in the configuration file must correspond to
relative path names.
OpenVPN Expert Configuration (Server)
A server tunnel typically requires the following files:
Keep in mind that a certificate becomes valid once its validity time has been reached,
thus an accurate system has to be set prior to creating certificates and establishing a
tunnel connection. Please ensure that all NTP servers are reachable. Using host names
also requires a working DNS server.
Client Management
Once you have successfully set up an OpenVPN server tunnel, you can manage and
enable clients connecting to your service. Currently connected clients can be seen on
this page, including the connect time and IP address. You may kick connected clients
by disabling them.
Figure 5.30.: OpenVPN Client Management
In the Networking section you can specify a fixed tunnel endpoint address for each client.
83
Page 84
NB3700 User Manual 3.8
Please note that, if you intend to use a fixed address for a particular client, you would
have to apply fixed addresses to the other ones as well.
You may specify the network behind the clients as well as the routes to be pushed to each
client. This can be useful for routing purposes, e.g. in case you want to redirect traffic
for particular networks towards the server. Routing between the clients is generally not
allowed but you can enable it if desired.
Finally, you can generate and download all expert mode files for enabled clients which
can be used to easily populate each client.
Operating in server mode with certificates, it is possible to block a specific client by
revoking a possibly stolen client certificate (see 5.8.8);
84
Page 85
NB3700 User Manual 3.8
5.6.2. IPsec
IPsec is a protocol suite for securing IP communications by authenticating and encrypting each packet of a communication session and thus establishing a secure virtual private
network.
IPsec includes various cryptographic protocols and ciphers for key exchange and data
encryption and can be seen as one of the strongest VPN technologies in terms of security.
It uses the following mechanisms:
MechanismDescription
AHAuthentication Headers (AH) provide connectionless in-
tegrity and data origin authentication for IP datagrams and
ensure protection against replay attacks.
ESPEncapsulating Security Payloads (ESP) provide confiden-
tiality, data-origin authentication, connectionless integrity,
an anti-replay service and limited traffic-flow confidentiality.
SASecurity Associations (SA) provide a secure channel and a
bundle of algorithms that provide the parameters necessary
to operate the AH and/or ESP operations. The Internet
Security Association Key Management Protocol (ISAKMP)
provides a framework for authenticated key exchange.
Negotating keys for encryption and authentication is generally done by the Internet Key
Exchange protocol (IKE) which consists of two phases:
PhaseDescription
IKE phase 1IKE authenticates the peer during this phase for setting up
an ISAKMP secure association. This can be carried out by
either using main or aggressive mode. The main mode approach utilizes the Diffie-Hellman key exchange and authentication is always encrypted with the negotiated key.The
aggressive mode just uses hashes of the pre-shared key and
therefore represents a less-secure mechanism which should
generally be avoided as it is prone to dictionary attacks.
IKE phase 2IKE finally negotiates IPSec SA parameters and keys and
sets up matching IPSec SAs in the peers which is required
for AH/ESP later on.
85
Page 86
NB3700 User Manual 3.8
Figure 5.31.: IPsec Administration
86
Page 87
NB3700 User Manual 3.8
Administration
This page can be used to enable/disable IPsec, you may also specify whether NATTraversal should be used.
NAT-Traversal is mainly used for connections which traverse a path where a router
modifies the IP address/port of packets. It encapsulates packets in UDP and therefore
requires a slight overhead which has to be taken into account when running over smallsized MTU interfaces.
Please note that running NAT-Traversal makes IKE using UDP port 4500 rather than
500 which has to be taken into account when setting up firewall rules.
Configuration
Figure 5.32.: IPsec Configuration
General
For setting up the tunnel you will have to configure the following parameters first:
87
Page 88
NB3700 User Manual 3.8
ParameterIPsec General Settings
Remote peerIP address or host name of the remote IPsec peer. You may
specify 0.0.0.0 to act as a responder for roadwarrior clients.
DPD StatusSpecifies whether Dead Peer Detection (see RFC 3706) shall
be used. DPD will detect any broken IPSec connections, in
particular the ISAKMP tunnel, and refresh the corresponding SAs (Security Associations) and SPIs (Security Payload
Identifier) for a faster re-establishment of the tunnel.
Detection cycle)The delay (in seconds) between DPD keepalives that are
sent for this connection (default 30 seconds)
Failure thresholdThe number of unanswered DPD requests until the IPsec
peer is considered dead (the router will then try to reestablish a dead connection automatically)
IKE Authentication
NetModule routers support IKE authentication through pre-shared keys (PSK) or certificates within a public key infrastructure. Extended Authentication (XAUTH) leverages
RADIUS-like authentication and can be used to apply user level access control over
IPSec.
Using PSK requires the following settings:
ParameterIPsec IKE Authentication Settings
PSKThe pre-shared key used to authenticate at the peer
Local ID TypeThe type of identification for the local ID which can be a
FQDN, username@FQDN or IP address
Local IDThe local ID value
Local ID TypeThe type of identification for the remote ID
Remote IDThe remote ID value
When using certificates you would need to specify the operation mode. When run as PKI
client (initiator) you can create a Certificate Signing Request (CSR) in the certificates
section which needs to be submitted at your Certificate Authority and imported to
the router afterwards. In PKI server mode (concentrator), the router represents the
Certificate Authority and issues the certificates for remote peers. They are revokable.
Using XAUTH the following settings can be made:
88
Page 89
NB3700 User Manual 3.8
ParameterIPsec XAUTH Settings
User nameThe name of the XAUTH user
User passwordThe password of the XAUTH user
Group nameThe group ID
Group passwordThe group secret
IKE Proposal
This section can be used to configure the phase 1 settings:
ParameterIPsec IKE Proposal Settings
Negotiation modeChoose the desired negotiation mode.Preferably, main
mode should be used but aggressive mode might be applicable when dealing with dynamic endpoint addresses.
Encryption algorithmThe desired IKE encryption method (we recommend
AES256)
Authenticationalgorithm
IKEDiffie-Hellman
Group
SA life timeThe lifetime of Security Associations
Perfect Forward SecrecySpecifies whether Perfect Forward Secrecy (PFS) should be
IPsec Proposal
This section can be used to configure the phase 2 settings:
ParameterIPsec Proposal Settings
Encapsulation modeThe desired encapsulation mode (Tunnel or Transport)
IPsec protocolThe desired IPsec protocol (AH or ESP)
Encryption algorithmThe desired IKE encryption method (we recommend
The desired IKE authentication method (we prefer SHA1
over MD5)
The IKE Diffie-Hellman Group
used. This feature increases security as PFS avoids penetration of the key-exchange protocol and prevents compromisation of previous keys.
AES256)
89
Page 90
NB3700 User Manual 3.8
ParameterIPsec Proposal Settings
Authenticationalgorithm
The desired IKE authentication method (we prefer SHA1
over MD5)
SA life timeThe lifetime of Security Associations
Networks
When creating Security Associations, IPsec will keep track of routed networks within
the tunnel. Packets will be only transmitted when a valid SA with matching source and
destination network is present. Therefore, you may need to specify the networks right
and left of the endpoints by applying the following settings:
ParameterIPsec Network Settings
Local network addressThe address of your local area network
Local network maskThe netmask of your local area network
Peer network addressThe address of the remote network behind the peer
Peer network maskThe netmask of the remote network behind the peer
NAT addressOptionally, you can apply NAT (masquerading) for packets
coming from a different local network. The NAT address
must reside in the network previously specified as local network.
90
Page 91
NB3700 User Manual 3.8
5.6.3. PPTP
The Point-to-Point Tunneling Protocol (PPTP) is a method for implementing virtual
private networks between two hosts. PPTP is easy to configure and widely deployed
amongst Microsoft Dial-up networking servers. However, due to its weak encryption
algorithms, it is nowadays considered insecure but it still provides a straightforward way
for establishing tunnels.
Figure 5.33.: PPTP Administration
When setting up a PPTP tunnel, you would need to choose between server or client. A
client tunnel requires the following parameters to be set:
ParameterPPTP Client Settings
Server addressThe address of the remote server
UsernameThe user-name used for authentication
PasswordThe password used for authentication
Setting up a server requires the following settings:
91
Page 92
NB3700 User Manual 3.8
Figure 5.34.: PPTP Tunnel Configuration
92
Page 93
NB3700 User Manual 3.8
ParameterPPTP Server Settings
Listen addressSpecifies on which IP address should be listened for incom-
ing client connections
Server addressThe server address within the tunnel
Client address rangeSpecifies a range of IP addresses assigned to each client
PPTP Client Management
PPTP clients for a server tunnel need to be configured here. They are made up of username and password. A fixed IP address can be assigned to them which can be used to
point any routes to a dedicated tunnel.
Figure 5.35.: PPTP Client Management
93
Page 94
NB3700 User Manual 3.8
5.6.4. GRE
The Generic Routing Encapsulation (GRE) is a tunneling protocol that can encapsulate
a wide variety of network layer protocols inside virtual point-to-point links over IP. GRE
is defined in RFC 1701, 1702 and 2784. It does not provide encryption nor authorization
but can be used on an address-basis on top of other VPN techniques (such as IPsec) for
tunneling purposes.
The following parameters are required for setting up a tunnel:
ParameterGRE Configuration
Peer addressThe IP address of the remote peer
Local tunnel addressThe local IP address of the tunnel
Local tunnel netmaskThe local subnet mask of the tunnel
Remote networkThe remote network address of the tunnel
Remote netmaskThe remote subnet mask of the tunnel
In general, the local tunnel address/netmask should not conflict with any other interface
addresses. The remote network/netmask will result in an additional route entry in order
to control which packets should be encapsulated and transferred over the tunnel.
94
Page 95
NB3700 User Manual 3.8
5.6.5. Dial-In
On this page you can configure the Dial-In server in order to establish a data connection
over GSM calls. Thus, one would generally apply a required service type of 2G-only, so
that the modem registers to GSM only. Naturally, a concurrent use of outgoing WWAN
interfaces and Dial-In connection is not possible.
Figure 5.36.: Dial-in Server Settings
The following settings can be set:
ParameterDial-in Server Configuration
Administrative statusSpecifies whether incoming calls shall be answered or not
ModemSpecifies the modem on which calls can come in
Address range startStart of the IP address range assigned to incoming clients
Address range sizeNumber of addresses for client IP address range
Besides the admin account you can configure further users in the user accounts section
95
Page 96
NB3700 User Manual 3.8
which shall be allowed to dial-in.
Please note that Dial-In connections are generally discouraged. As they are implemented
as GSM voice calls, they suffer from unreliability and poor bandwidth.
96
Page 97
NB3700 User Manual 3.8
5.7. SERVICES
5.7.1. SDK
NetModule routers are shipping with a Software Development Kit (SDK) which offers
a simple and fast way to implement customer-specific functions and applications. It
consists of:
1. An SDK host which defines the runtime environment (a so-called sandbox), that
is, controlling access to system resources (such as memory, storage and CPU) and,
by doing so, catering for the right scalability
2. An interpreter language called arena, a light-weight scripting language optimized
for embedded systems, which uses a syntax similar to ANSI-C but adds support
for exceptions, automatic memory management and runtime polymorphism on top
of that
3. A NetModule-specific Application Programming Interface (API), which ships with
a comprehensive set of functions for accessing hardware interfaces (e.g. digital IO
ports, GPS, external storage media, serial ports) but also for retrieving system
status parameters, sending E-Mail or SMS messages or simply just to configure
the router
Anyone, reasonably experienced in the C language, will find an environment that is easy
to dig in. However, feel free to contact us via [email protected]and we
will happily support you in finding a programming solution to your specific problem.
The Language
The arena scripting language offers a broad range of POSIX functions (like printf
or open) and provides, together with tailor-made API functions, a simple platform for
implementing any sort of applications to interconnect your favourite device or service
with the router.
Here comes a short example:
97
Page 98
NB3700 User Manual 3.8
/* We ar e go i ng t o ea ves d rop on th e fi r st s eri a l p o rt
* and turn on li g hts via a digi t al I /O o utp u t port ,
* o t her wis e we 'd h a ve to send a shor t m e ssa g e .
*/
f o r ( a t tem p ts = 0 ; at temp ts < 3 ; at t emp t s ++) {
if ( nb _ se r ia l _re ad (" s e ria l 0 " ) == " Kno c k K nock ! " ) {
nb _ se r ia l _w r ite ( " s eri a l0 " , " Who 's t here ? " );
if ( nb _ se r ia l _r e ad (" s e ria l 0 " ) == " San t a " ) {
pri n tf (" Hu r ray !\ n" );
nb _ dio _se t ( " o ut1 ", 1) ;
}
}
}
nb _ sms _se n d (" +1 234 5 678 9 " , " N o pr e sen t s t his year : ( " )
A set of example scripts can be downloaded directly from the router, you can find a list of
them in the appendix. The manual which can be obtained from the NetModule support
web page gives a detailed introduction of the language, including a description of all
available functions.
SDK API Functions
The current range of API functions can be used to implement the following features:
1. Send/Retrieve SMS
2. Send E-mail
3. Read/Write from/to serial device
4. Control digital input/output ports
5. Run TCP/UDP servers
6. Run IP/TCP/UDP clients
7. Access files of mounted media (e.g. an USB stick)
8. Retrieve status information from the system
9. Get or set configuration parameters
10. Write to syslog
11. Transfer files over HTTP/FTP
12. Perform config/software updates
13. Control the LEDs
14. Get system events, restart services or reboot system
15. Scan for networks in range
98
Page 99
NB3700 User Manual 3.8
16. Create your own web pages
17. Voice control functions
18. SNMP functions
19. CAN socket functions
20. Various network-related functions
21. Other system-related functions
The SDK API manual (which can be downloaded from the router) provides an overview
but also explains all functions in detail.
Please note that some functions require the corresponding services (e.g. E-Mail, SMS)
to be properly configured prior to utilizing them in the SDK.
Let’s now pay some attention to the very powerful API function nb_status. It can
be used to query the router’s status values in the same manner as they can be shown
with the CLI. It returns a structure of variables for a specific section (a list of available
sections can be obtained by running cli status -h).
By using the dump function you can figure out the content of the returned structure:
/* d u mp c urr e nt loc ati o n */
dump ( nb _ sta tus ( " l ocat ion " ) );
The script will then generate lines like maybe these:
In combination with the nb_config_set function, it is possible to start a re-configuration
of any parts of the system upon status changes. You may query possible sections and
parameters again with the CLI: