RE: Routing HTTP Through Another Link

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

 



Hello, Marek!

> iptables -t mangle -A PREROUTING -i LAN_INTERFACE -m multiport --dport
> 80,443 -j ROUTE --oif WWW_ONLY_LINK
> iptables -t nat -A POSTROUTING -o WWW_ONLY_LINK -j MASQUERADE

I tried that, adding "-p tcp" on the first command, because iptables complained about it.

It didn't work, making my navigation completely stop. I don't get instant errors from the browser, but it tries to connect endlessly.

I've tried tuning a few rules and changing orders with the existing rules for the main link, but the result is the same. I'm kinda clueless about what to do next, so if you have any more tips I'd really appreciate.

By the way, the web interface doesn't allow me to specify the --oif option, just --gw so I have set it to the gateway of the alternative link. I thought the basic routing table should take care of the rest.

PS: I've just realized our conversation has gone off the list, so I'm putting it back on it again.

_________________________________________________________________
Você sabia que com o Hotmail você tem espaço ilimitado para guardar seus e-mails? Começe a usar já!
http://www.microsoft.com/brasil/windows/windowslive/products/hotmail.aspx--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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