>up either as my default route and everything works (except that one ISP
>filters packets with destination TCP port 80). The three problems I'd
like
>to solve are sending on both interfaces at the same time (teql0 does
that),
>receivng on both interfaces at the same time (see below) and routing
>packets destined for port 80 differently than packets destined for other
>ports (possibly using ipchains '-m' and routing tables keyed by the mark
>on the packet, although I haven't an example of this working yet).

If i understood you correctly:

1) add an extra table (table 50 below) which just routes by fwmark:

NOTE: all your other routes go to the main routing table

ip route add table 50 0/0 via goodISPgateway dev goodISPdev

ip ro ls table 50 to show the entry
ip ro ls will give you entries on the main table
and route -n should still work

2) create your ipchains entry on the input chain

ipchains -I input -p tcp -d 0/0 www -m 1

ipchains -L to list

3) Add the rule to redirect fw mark 1 to table 50
ip ru add fwmark 1 table 50

Since i havent tested this you might need to play with it a
little.

cheers,
jamal

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to