F-Secure Internet Gatekeeper for Linux/Administrator’s Guide
121
10.3.3
Changing the IP Address
Internet Gatekeeper service
FSIGK(SMTP)
SMTP
POP
Mail box
192.168.1.1:25
192.168.2.1:25
192.168.1.1:110
FSIGK(POP)
192.168.2.1:110
LAN
(192.168.
2.xxx)
Eth0(192.168.1.1)
Eth1(192.168.2.1)
Internet
If F-Secure Internet Gatekeeper for Linux and a mail server use a different interface (IP address), it is
possible to use the product and a mail server in the same computer with the same port number. In the
following example, the mail server listens to eth0 (192.168.1.1) and Internet Gatekeeper listens to
eth1 (192.168.2.1).
If you only have one physical interface, you can generate a virtual interface with the IP Alias function.
For example, the following command generates the virtual interface “eth0:1(192.168.1.2)”:
#
ifconfig eth0:1 192.168.1.2 netmask 255.255.255.0
Copy
/etc/sysconfig/network-scripts/ifcfg-eth0
to
ifcfg-eth0:1
and rewrite the
file to
DEVICE="eth0:1"
. Set the
IPADDR, NETMASK, NETWORK,
and
BROADCAST
variables in
the file.
Mail server settings
Set the listening interface of the mail server to
eth0(192.168.1.1)
.
•
Using sendmail:
1 Make the following change in
/etc/sendmail.cf
or
/etc/mail/sendmail.cf
.
O
DaemonPortOptions=Port=smtp,Addr=192.168.1.1
2 Restart
sendmail.
#
/etc/rc.d/init.d/sendmail restart