4
Configuration
Page 32
CELLX box 17.1/002
4.6.2
The ip.cfg config file
This file contains the main part of the IP configuration of the CELLX Box.
Example 4.3
shows
an
ip.cfg
similar to the factory settings. Only the default gateway and the IP address of the
first Ethernet interface is set here. These settings are already done during the installation with
the Quickstart tool. The firewall rules are commented out. If the CELLX Box is used behind a
firewall in a local network the firewall on the CELLX Box is not needed.
Example 4.4
shows the configuration part of the
ip.cfg
used to configure a default gateway
with the IP address 192.168.1.1, and an additional route is set fro the network 10.1.2.0/16
using the gateway 172.20.17.125 over eth2. The IP address of the second IP interface is set
to 172.20.27.224 with the netmaks 255.255.0.0.
The section
[dnsmasq]
shown in
Example 4.5
shows an DHCP setup for eth1. All DHCP re-
quests will be answered and the CELLX Box assign an IP address form the range 192.168.1.10
until 192.168.1.90. The default gateway is the CELLX Box on the eth1 interface and the DNS
settings from the file
/etc/resolv.conf
will be assigned as name server to the hosts.
Example 4.3
ip.cfg with default gateway and IP address set
[System]
DefaultGW=192.168.1.1
[eth1]
IpAddress=192.168.1.2 netmask 255.255.0.0
[iptables]
; iptables -P INPUT DROP
; iptables -P FORWARD DROP
; iptables -P OUTPUT ACCEPT
; iptables -A INPUT -d 127.0.0.1 -j ACCEPT
; iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
; iptables -A INPUT -p icmp --icmp-type echo-reply -j ACCEPT
; iptables -A INPUT -p tcp -i eth1 --dport 4445 -j ACCEPT
Example 4.4
ip.cfg with the IP configuration of the second IP interface
[system]
DefaultGW=192.168.1.1
Route=-net 10.1.2.0 netmask 255.255.255.0 gw 172.20.27.125 dev eth2
[eth2]
IpAddress=172.20.27.224 netmask 255.255.255.0
Example 4.5
ip.cdf with DHCP setup
[dnsmasq]
bogus-priv
filterwin2k
user=root
interface=eth1
domain=teles
dhcp-range=192.168,1.10,192.168.1.90,12h
cache-size=150
resolv-file=/etc/resolv.conf
Содержание CellX 3G-4
Страница 1: ...CELLX Box Systems Manual Software version 17 1 ...
Страница 7: ...1 Overview ...
Страница 12: ...2 System security and hardware overview ...
Страница 19: ...3 CELLX Box installation ...
Страница 23: ...4 Configuration ...
Страница 43: ...5 Adapting the config files ...
Страница 57: ...6 Maintenance ...
Страница 63: ...6 Maintenance Page 63 CELLX box 17 1 002 11 Send the trace to customer service 1 2 3 ...