squid on multiple IPs, One NIC
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Squid > squid on multiple IPs, One NIC




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    squid on multiple IPs, One NIC  
gaud


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-16-06 12:12 AM

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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:39 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register