Section 7.5:Turning on Packet Forwarding
119
You can also allow specific hosts or subnets as in this example:
Order deny,allow
Deny from all
Allow from 192.168.1.100
Allow from 172.16.57
In the above 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 this file limits access to the configuration pages in
/etc/syscon-
fig/ha/web/secure/
directory but not to the login and the help pages
in
/etc/sysconfig/ha/web/
. To limit access to this directory, create
a
.htaccess
file in the
/etc/sysconfig/ha/web/
with order,
allow, and deny lines identical to
/etc/sysconfig/ha/web/se-
cure/.htaccess
.
7.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
in
/etc/sysctl.conf
to the following:
net.ipv4.ip_forward = 1
The changes will take effect when you reboot the system.
Tip
If this is the first time booting into Red Hat Enterprise Linux AS, you will
also need to manually turn on forwarding by issuing the following command:
echo 1 > cat /proc/sys/net/ipv4/ip_forward
To turn on IP forwarding manually, issue the following command as root:
cat /proc/sys/net/ipv4/ip_forward
If the above command returns a
1
, IP forwarding is enabled. If it returns a
0
, then you must issue the
echo
command listed above.
Summary of Contents for ENTERPRISE LINUX AS 2.1 -
Page 1: ...Red Hat Enterprise Linux AS 2 1 The Official Red Hat Enterprise Linux AS Installation Guide ...
Page 8: ...viii ...
Page 14: ...xiv Introduction ...
Page 15: ...Part I Installing Red Hat Enterprise Linux AS ...
Page 16: ......
Page 26: ...26 Chapter 1 Steps to Get You Started ...
Page 30: ...30 Chapter 2 System Requirements Table ...
Page 80: ...80 Chapter 3 Installing Red Hat Enterprise Linux AS ...
Page 94: ...94 Chapter 4 Installing Red Hat Enterprise Linux AS via Text Mode ...
Page 95: ...Part II Configuring Red Hat Enterprise Linux AS ...
Page 96: ......
Page 100: ...100 Chapter 5 Introduction ...
Page 114: ...114 Chapter 6 Linux Virtual Server Overview ...
Page 153: ...Part III Appendixes ...
Page 154: ......
Page 156: ...156 Appendix A Additional Resources for LVS Clustering ...
Page 160: ...160 Appendix B A Sample etc sysconfig ha lvs cf File ...
Page 162: ...162 Appendix C Removing Red Hat Linux ...
Page 168: ...168 Appendix D Getting Technical Support ...
Page 178: ...178 Appendix E Troubleshooting Your Installation of Red Hat Enterprise Linux AS ...