Jump to content

Recommended Posts

Posted (edited)

Hi,

 

Ive setup squid proxy in a Ubuntu virtual machine and websites are accessible.

 

The problem we have is that the squid proxy isnt passing on the ip address of the client machine.

 

This causes issues with filtering as the LEA gives us two IP address ranges. One for the pupil filter and the other for staff.

 

Is it possible to forward the clients IP address rather than the proxy server address? I've read about x-forwarded but cant get my head round it.

 

The other issue is that the virtual host, virtual adapter, and virtual machine are all on the staff range but the filter still seems to be set on the pupil filter on the other range. Is there another ip address that you can think of? Firefox inside the Virtual uses the staff filter which is the weird thing.

 

Thanks

Edited by dany2010
Posted

That's great that you got it working; now comes the fun part of tweaking it!

 

As far as version 3.0 is concerned, it is Squid's default behavior to pass on the internal client's address onto the cache peer (upstream proxy) unless it is explicitly disabled. Does your LEA give you one proxy only and traffic filtered differently based on originating address?

 

Wait a sec, you're running Dans Guardian right? If so, Dan's gets the request first, passes it to Squid, and Squid in turn passes it to the LEA proxy. Unless Dan's is also setup for x-forwarding then the LEA is only seeing the IP address of your proxy as the origination for the request.

 

Try dropping these lines in your Dans config file.

 

forwardedfor = on
usexforwardedfor = on

 

You may have to read up on it a bit more since I don't use DG, but if you are this is most likely the cause of your x-forwarding issue.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...