Routing by port.

=?iso-8859-1?Q?Horacio_J=2E_Pe=F1a?= (horape@compendium.com.ar)
Tue, 24 Nov 1998 17:45:43 -0300


¡Hola!

I've a router with two connections to the internet. I wanna to send all
the web traffic via an interface and all the other traffic via the other.
(i'm masquerading)

I'm using ipchains to set the "Max Throughput" bit in all the packets
targeted to tcp port 80.

ipchains -A input -p tcp -d 0.0.0.0/0 80 -t 0x01 0x80

Then i try to catch the packets that have the "Max T" bit set with
ip rules.

ip ru from 192.168.0.14 tos 0x08 table 4

But this doesn't work. (ip ro table 4 is working well. I've a similar
rule checking only for some other ip and it works.)

Some advice?

TIA,
HoraPe

---
Horacio J. Peña
horape@compendium.com.ar
bofh@puntoar.net.ar

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/