C-M-G
Series
Manual
© TDT GmbH
Chapter 4: System Confuguration
Seite 26 von 136
iptables -D OUTPUT -t nat -d 192.168.100.51 -dport 23966 -j DNAT --
to-destination 192.168.100.102:23966
logger DONE
If the target is not reachable, a DNAT rule is added, which redirects all requests to the IP address
192.168.100.102 and port 23966.
#Bad script
#!/bin/sh
export
PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/o
pt/TDT/bin
logger "adding Firewall-Rule for DNAT..."
iptables -A OUTPUT -t nat -d 192.168.100.51 -dport 23966 -j DNAT --
to-destination 192.168.100.102:23966
logger DONE
4.3.2 SMS-Handler
The SMS handler provides the ability to send control commands via SMS to the router. Therefore a
SIM-card has to be inserted in one of the simcard slots.
Note
In case a data connection is established the currently active simcard slot is beeing used for
SMS-Handler.
If no data connection is active the interal simcard slot (SIM2) will be used as default. (see
13.2.1 C-Router with radio modem
In addition single or multiple phone number can be defined from which the router can be controlled. SMS
messages from other numbers will be ignored.
Command
Description
Accept SMS from phone-
numbers
Allowed phone numbers with country code but without
leading zero can be defined here. Please seperate multiple
numbers by comma.
Example
4917xxxxxxxx,4916xxxxxxxx
SMS command-separator
For sending multiple commands in one SMS message a
control character is neccessary and can be defined here.
(Default: CR,LF)
Send SMS reply
This parameter defines if the router will send a
response/confirmation message by sms.
Note
For receive status requests via sms this
parameter must be set to
Yes
.
Activate SMS-Handler
Activates/deactivates the SMS-Handler Service