At 10:46 PM 16/3/06, Luis Henrique Machado Jr. wrote:
Ok, but how xl0 know the route?
I need that all the traffic from my network in port 80,443 goto xl0
All the others connections go to xl1
# Cheap&Cheerful policy routing for xl0 when default route -> xl1
# Put the packet on xl0 and changes the next-hop
pass out quick on xl1 to xl0:10.0.0.1 from any to any port = 80
You have two DSL routers on xl0 10.0.0.1 and xl1 10.0.1.1,
xl1 is set as the default route amd a gw of 10.0.1.1,
the IPFilter rule shuffles outbound port 80 packets that would
normally head out xl1, and sends them out xl0 with a new next-hop
of 10.0.0.1.
I'm assuming NAT on the DSL routers, otherwise you'd have to
rewrite the source addr so that any return packets are via the
same DSL connection, though asymmetric paths are sometimes useful,
uRPF/filters permitting.