10.3.3 Changing the IP Address
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
F-Secure Internet Gatekeeper for Linux/Administrator's Guide
Internet Gatekeeper service
Eth0(192.168.1.1)
192.168.1.1:25
SMTP
Mail box
POP
192.168.1.1:110
Eth1(192.168.2.1)
192.168.2.1:25
FSIGK(SMTP)
FSIGK(POP)
192.168.2.1:110
LAN
(192.168.
2.xxx)
121
Need help?
Do you have a question about the INTERNET GATEKEEPER FOR LINUX 4.01 and is the answer not in the manual?