Re: dual/triple adsl router natting problem

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

 



>> I've tried various routing and filtering cominations
>> as described on different sites around the net and
>
>I've used the patches here: http://www.ssi.bg/~ja/
>and the HOWTO here: http://www.ssi.bg/~ja/nano.txt
>to do multiple gateway routing.

well, a simple approach I once read worked something like (given that you have 
ppp0 and ppp1) to distribute connections (not packets):

`route -n` goes like:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
212.185.254.105 0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
212.185.99.88   0.0.0.0         255.255.255.255 UH    0      0        0 ppp1
0.0.0.0         212.185.254.105 0.0.0.0         UG    0      0        0 ppp0
0.0.0.0         212.185.99.88   0.0.0.0         UG    0      0        0 ppp1

  -A PREROUTING -o ppp0 -p tcp -m state --state NEW -m nth --every 2 -j ROUTE
      --oif ppp1
  -A POSTROUTING -j MASQUERADE -o ppp0
  -A POSTROUTING -j MASQUERADE -o ppp1

i.e. that netfilter's nat was intelligent enough to get the idea of the 
ROUTE target.


Jan Engelhardt                                                               
--                                                                            
| Gesellschaft fuer Wissenschaftliche Datenverarbeitung Goettingen,
| Am Fassberg, 37077 Goettingen, www.gwdg.de


[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