Re: multi-isp connection NAT not working

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

 



On Wednesday 2005-September-28 11:51, Daniel Wittenberg wrote:
> I think this is a simple problem, but nothing I've read so far seems
> to help, maybe I'm missing something.

A serious typo?

> route add default via {ISP-1-gateway} table T1 dev eth0
> rule add from {ISP-1-ip} table T1
> rule add fwmark 1 table T1

Prepend "ip " to those.

> iptables -t mangle -A PREROUTING -i eth0 -j MARK --set-mark 1

ok

> route add default via {ISP-2-gateway} table T2 dev eth1
> rule add from {ISP-2-ip} table T1
> rule add fwmark 2 table T1

Again prepend "ip " and s/T1/T2/

> iptables -t mangle -A PREROUTING -i eth1 -j MARK --set-mark 2
>
> Any ideas?

I use and recommend Julian Anastasov's routes patch. Usage is explained 
in http://www.ssi.bg/~ja/nano.txt , the patches are linked from the 
parent directory. IWFM at 3 sites.
-- 
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header


[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