Installation guide

Chapter 10. Configuring the LVS Routers with Piranha Configuration Tool 125
Protocol
Choose between UDP and TCP in the drop-down menu. Web servers typically com-
municate via the TCP protocol, so this is selected in the example above.
Virtual IP Address
Enter the virtual server’s floating IP address in this text field.
Virtual IP Network Mask
Set the netmask for this virtual server with the drop-down menu.
Firewall Mark
Do not enter a firewall mark integer value in this field unless you are bundling multi-
port protocols or creating a multi-port virtual server for separate, but related protocols.
In this example, the above virtual server has a Firewall Mark of 80 because we
are bundling connections to HTTP on port 80 and to HTTPS on port 443 using the
firewall mark value of 80. When combined with persistence, this technique will ensure
users accessing both insecure and secure webpages are routed to the same real server,
preserving state.
Warning
Entering a firewall mark in this field allows IPVS to recognize that packets bearing
this firewall mark are treated the same, but you must perform further configuration
outside of the Piranha Configuration Tool to actually assign the firewall marks.
See Section 9.3 Multi-port Services and LVS Clustering for instructions on creating
multi-port services and Section 9.4 FTP In an LVS Cluster for creating a highly avail-
able FTP virtual server.
Device
Enter the name of the network device to which you want the floating IP address de-
fined the Virtual IP Address field to bind.
You should alias the public floating IP address to the Ethernet interface connected to
the public network. In this example, the public network is on the eth0 interface, so
eth0:1 should be entered as the device name.
Re-entry Time
Enter an integer value which defines the length of time, in seconds, before the active
LVS router attempts to bring a real server back into the cluster after a failure.
Service Timeout
Enter an integer value which defines the length of time, in seconds, before a real server
is considered dead and removed from the cluster.