1
通过VM iproute多个ADSL负载均衡器
很长一段时间(2年?),我一直在运行具有非常基本的出站负载平衡功能的虚拟机(Ubuntu 12.04服务器),通过不同的ADSL路由器发送不同的出站连接。 通过使用没有NAT伪装的iproute进行简单配置,NAT由出站ADSL路由器本身管理,允许连接绕过负载平衡路由器VM直接直接路由回发送方。路由器VM上也没有防火墙规则(iptables)。 echo 1 > /proc/sys/net/ipv4/ip_forward # flush initially ip route flush cache # remove whatever is there for the default to begin with ip route delete default # default load balancing rule ip route add default scope global \ nexthop via ${ROUTER2} dev ${INTERFACE} weight 6 \ nexthop …