[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


TC and Iptables - Load balancing 3 providers outbound.

Posted on 2006-10-29
Medium Priority
Last Modified: 2008-01-09
I am looking for a script that can load balance traffic outbound with tc and iptables between three different connections.
I am using nat on the internal interface eth3, and I need to send and balance out to three other connections eth0-2. I would appreciate any help anyone can give me.

Question by:jon37325
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 14

Accepted Solution

pablouruguay earned 1000 total points
ID: 17841201

Author Comment

ID: 17843320
The only problem is that route and random are not supported anymore in the 2.6 kernel.

Assisted Solution

Paracelsius earned 1000 total points
ID: 17912955
Hi jon37325

instead of -j ROUTE you can MARK the packets an user policy based routing using ip:

iptables -t mangle -A PREROUTING -i eth1 -p tcp --sport 1000 -j MARK --set-mark 5

ip route add default via table linkB
ip rule add fwmark 5 table linkB



Author Comment

ID: 17915641
so what would the entire script look like? please give an example.

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question