|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Dividing traffic with u32 iptables filter
I would like to divide traffic between two squid servers. I have been thinking about using iptables u32 filter, to check last bit of ip address which is comming to gateway. Then I would like to direct even IP adresses to one squid host, and odd to the other. Is it reasonable ? Thank you for any input, and please forgive me for my English. ---------- Post updated at 10:17 PM ---------- Previous update was at 08:34 PM ---------- I believe that solution will be Code:
iptables -m u32 --u32 "12&0x01=1" iptables -m u32 --u32 "12&0x01=0" Based on: Netfilter Extensions HOWTO: New netfilter matches |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
That will work to divide traffic, but you have no guarantee about load leveling which is the whole idea behind this. So, you have a statistically valid sample of previous hits?
You may find that 30% of your traffic is from one site, I do not know, I made that number up. But it would really skew you server load. For example, large companies behind firewalls may present as one single IP, and if your service is really useful to abc.com then maybe lots of users from there will connect. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Your point of view seems to be correct. This matter is open for discussion. We hope that traffic will normalize to achieve equal distribution.
But this solution have to be tested on real traffic. Any alternatives to this idea will be appreciated. Thank you for your time. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Traffic shaping with iptables | coolatt | IP Networking | 0 | 10-13-2010 06:31 AM |
| Block incoming traffic FTP from internet using iptables | edeamat | Shell Programming and Scripting | 0 | 09-10-2009 03:46 AM |
| SMTP traffic filter on FreeBSD 7.0 gateway | matagou | UNIX and Linux Applications | 1 | 02-17-2009 05:50 AM |
| Iptables/TC: how to make masqueraded traffic go through an openVPN tun0? | theVOID | IP Networking | 2 | 08-27-2008 11:46 PM |
| measuring traffic with iptables | mdfk | IP Networking | 0 | 02-11-2004 05:43 PM |
|
|