View Single Post
  #1 (permalink)  
Old 12-02-2008, 07:27 PM
xoroz xoroz is offline
Junior Member
User
 
Join Date: Dec 2008
OS: Debian
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
xoroz is on a distinguished road
Exclamation Squid proxy transparent

Hi everyone, I am new here and I need some help with the setup of my new Proxy.

<LAN> --- <e1|PROXY|e0>----<FIREWALL/ROUTER>---<INTERNET>
Well the LAN clients should have the Gateway pointing to the Proxy Server, and in the proxy server eth1 I have a NAT rule that forwards it to e0:9090

# set this system as a router for Rest of LAN
iptables --table nat --append POSTROUTING --out-interface e0 -j MASQUERADE
iptables --append FORWARD --in-interface e1 -j ACCEPT


The strange thing that is happening:
  1. Without using the proxy as GW, just setting the browser to point to the Proxy:80 (it works)
  2. Once I setup the proxy as GW, I can't go out to the WEB, I get the following errors:

ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: /
Invalid URL
On the logs of the access.log I see :
172.31.X.7 NONE/400 1872 GET /favicon.ico - NONE/- text/html
172.31.X.7 NONE/400 1894 GET /Vitrine/Home/Home.aspx - NONE/- text/html
172.31.X.7 NONE/400 1906 GET /shell-programming-scripting/ - NONE/- text/html

I believe somehow the hostname address are not arraiving to the proxy,
any ideas why or how to fix it???
Reply With Quote