29
"loopback" weakhostsend=enabled
Obviously, first you will need to rename the specific adapters from the default of “Local Area
Network Connection 1
″
to either “net” or “loopback” respectively i.e.
For Linux®, SUSE® Enterprise Linux®, Hewlett Packard® HP/UX®, FreeBSD®, Oracle® Solaris®,
and Apple® Servers perform the following for:
Linux® 2.4/2.6 Systems:
Log in as root, and add this command to the bootup script:
iptables -t nat -A PREROUTING -d <farm_ip> -j DNAT --to-dest <server_ip>
For IP-based virtual hosting with multiple IPs, repeat the command for each farm IP on all the
servers. Don’t forget to add the proper farm IP to each virtual host configuration. With IPv6
addresses, add the IPv6 address of the FARM to “lo” adaptor. Also, be sure that the routing
table has an IPv6 entry for the network and a default gateway entry for the real interface of the
server. You can check by issuing the “route —inet6” command. Reference the IPv6 section of
this User Manual for additional information.
If your server requires that you have an actual IP address on an interface to bind to you can use
this method (requires arptables):
ip addr add <farm_ip> eth0 # add farm IP address on "eth0"
arptables -t filter -A IN -d <farm_ip> -j DROP # keep it from responding to ARP
SUSE® Enterprise Linux® 9:
You can use YAST to set up a Virtual Interface and add the farm IP.