Chapter 8. Initial LVS Configuration
Order deny,allow
Deny from all
Allow from 192.168.1.100
Allow from 172.16.57
In this example, only Web browsers from the machine with the IP address of 192.168.1.100
and machines on the 172.16.57/24 network can access the Piranha Configuration Tool.
Caution
Editing the Piranha Configuration Tool
tion pages in the
the help pages in
file in the
.htaccess
lines identical to
8.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
following:
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
can turn it on manually using the following command:
/sbin/sysctl -w net.ipv4.ip_forward=1
8.6. Configuring Services on the Real Servers
If the real servers in the cluster are Red Hat Enterprise Linux systems, set the appropri-
ate server daemons to activate at boot time. These daemons can include
services or
xinetd
/etc/sysconfig/ha/web/secure/
/etc/sysconfig/ha/web/
/etc/sysconfig/ha/web/
/etc/sysconfig/ha/web/secure/.htaccess
net.ipv4.ip_forward = 0
, then IP forwarding is enabled. If it returns a
1
for FTP or Telnet services.
file limits access to the configura-
.htaccess
directory but not to the login and
. To limit access to this directory, create a
directory with order, allow, and deny
in
/etc/sysctl.conf
.
, then you
0
for Web
httpd
101
to the
Need help?
Do you have a question about the CLUSTER SUITE - CONFIGURING AND MANAGING A CLUSTER 2006 and is the answer not in the manual?
Questions and answers