hi, On Mon, Dec 17, 2001 at 06:26:07PM +0100, Michael Waldvogel wrote:
ip addressen die über ppp0 gehen sollen : 1-10 ip addressen die über ppp1 gehen sollen : 11-20
das koennte ueber iptables gehen (aus patch hilfe nth): 2) Unique rule for every packet. This is an easy and quick method to produce load-balancing for both inbound and outbound. example: iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7 \ --every 3 --packet 0 -j SNAT --to-source 10.0.0.5 iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7 \ --every 3 --packet 1 -j SNAT --to-source 10.0.0.6 iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7 \ --every 3 --packet 2 -j SNAT --to-source 10.0.0.7 This example evenly splits connections between the three SNAT addresses. By using the mangle table and iproute2, you can setup complex load-balanced routing. There's lot of other uses. Be creative! ich hab's zwar noch nicht gemacht, aber irgendwie muesste es gehen. ciao sascha -- Sascha Andres linux@programmers-world.com http://www.programmers-world.com