squid on multiple IPs, One NIC

This is a discussion on squid on multiple IPs, One NIC within the Squid Users forums, part of the Web Server and Related Forums category; this message may be a little hard to understand as my english is not very elaborate. my server currently have ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-15-2006
gaud
 
Posts: n/a
Default 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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:36 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0