nth patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everybody,

I have 2 connections adsl on my gateway (eth1, eth2) and one card for the
LAN (eth0).
netfilter-extension-HOWTO: "easy and quick method to produce load-balancing"
I would like to know if it's possible to balance the load of incoming
packets (eth0) to the two externals interfaces.
                                          _______
                                          |             |-eth1
(66.12.24.36)----------
------eth0 (192.168.0.254)|    FW   |
NET
                                          |    NAT |-eth2
(66.13.52.36)----------
                                          _______

And so use the command:
#iptables -t nat -A POSTROUTING -o eth1 -m nth --counter 7 --every
2 --packet 0 -j SNAT --to-source 66.12.24.36
#iptables -t nat -A POSTROUTING -i eth2 -m nth --counter 7 --every
2 --packet 1 -j SNAT --to-source 66.13.52.36

In the howto's example, each time the output card is eth0 ???

what do you think ???
Or do i have to use the target ROUTE or iproute2 & netfilter ???

Cordially yours
Fabrice




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux