Turning On Packet Forwarding; Configuring Services On The Real Servers - Red Hat LINUX VIRTUAL SERVER 5.1 - ADMINISTRATION Manual

Linux virtual server (lvs) for red hat enterprise linux 5.1
Table of Contents

Advertisement

configuration pages in the
to the login and the help pages in
this directory, create a
with
order
/etc/sysconfig/ha/web/secure/.htaccess

5. Turning on Packet Forwarding

In order for the LVS router to forward network packets properly to the real servers, each LVS
router node must have IP forwarding turned on in the kernel. Log in as root and change the line
which reads
net.ipv4.ip_forward = 0
net.ipv4.ip_forward = 1
The changes take effect when you reboot the system.
To check if IP forwarding is turned on, issue the following command as root:
/sbin/sysctl net.ipv4.ip_forward
If the above command returns a
turn it on manually using the following command:
/sbin/sysctl -w net.ipv4.ip_forward=1

6. Configuring Services on the Real Servers

If the real servers are Red Hat Enterprise Linux systems, set the appropriate server daemons to
activate at boot time. These daemons can include
Telnet services.
It may also be useful to access the real servers remotely, so the
installed and running.
/etc/sysconfig/ha/web/secure/
.htaccess
,
, and
lines identical to
allow
deny
in
/etc/sysctl.conf
, then IP forwarding is enabled. If it returns a
1
/etc/sysconfig/ha/web/
file in the
/etc/sysconfig/ha/web/
.
to the following:
for Web services or
httpd
daemon should also be
sshd
Web Server Port
directory but not
. To limit access to
directory
, then you can
0
for FTP or
xinetd
21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux virtual server

Table of Contents