Changes

Jump to: navigation, search

OPS335 Web Server Lab

74 bytes added, 16:49, 7 February 2012
Load balancing using iptables
iptables -t nat -I PREROUTING -p tcp --dport 80 -m state --state NEW -m statistic --mode nth --every 2 --packet 1 -j DNAT --to-destination 192.168.70.4:8080
iptables -t nat -I PREROUTING -p tcp --dport 80 -m state --state NEW -m statistic --mode nth --every 2 --packet 0 -j DNAT --to-destination 192.168.70.3:8080
*Again ask another student to test that load balancing is indeed working.
==Completing the Lab==
1
edit

Navigation menu