On Monday 01 August 2005 18:58, Patrick Kaell wrote:
Yves Glodt wrote:
Hi,
We have a firewall at work that runs sarge. It also makes the
connection to the internet, it has a dsl and a cable connection.
We want to balance the traffic over these 2 connections, port
based. E.g. http and ftp over ppp0 (dsl) and all the rest over the
cable connection.
What would be the best way to achieve this?
1. Using iptables, you mark the IP packets based on the port or other
criteria in the mangle table.
2. Using iproute2, you create 2 routing tables: one for dsl, the
other for cable
3. Using iproute2, you create rules which select the right routing
table based on the "mark" in the marked packet. This is called
"policy routing"
I can create an example configuration for you if you are interested.
That would be great :-)
Thanks for your explanations!
Best regards,
Yves
Greetings, Patrick
--
Linux 2.6.12 #1 Sat Jul 9 23:28:04 CEST 2005 i686
19:18:48 up 16 min, 0 users, load average: 1.84, 1.09, 0.65