|
Home > Archive > Squid > May 2006 > squid on multiple IPs, One NIC
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
squid on multiple IPs, One NIC
|
|
|
| this message may be a little hard to understand as my english is not
very elaborate.
my server currently have multiple IP running on a single interface..
eth0
eth0:1
eth0:2
the problem with this kind of setup is that the client get always reply
by the first IP..
I searched for a squid config to fix this but didn't find any so I
choose to use iptables rules to have all proxies replying by theire own
IP.
with FC3/Debian I had only to run this for each of my interface and
everything was going fine
iptables -t mangle -A output -m owner --uid-owner 1000 -j mark
--set-mark 900
iptables -t nat -A POSTROUTING -m mark --mark 900 -j snat --to-source
<my IP>
but when I try this same iptables command on a server runnign FC4 it
give me the errors below. It seem that things are different between FC3
and FC4.
I now have this error under FC4:
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.3.0: Unknown arg `--to-source'
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.3.0: Couldn't load target `mark'
I loaded every possible modules related to netfilter and iptables, I
cannot find the way to fix the problem
I know this is not the proper place to ask for help but if someone know
how to fix that iptables problem, I would really appreciate.
However my first question is this one : I am sure there is a way to do
the same thing by using only squid configuration, does someone know ?
Thank You
|
|
|
|
|