Toff
04.03.03, 11:16
Hi!
ich möchte gerne Squid als transparenten Proxy unter Redhat 8.0 nutzen. Der Proxy funktioniert wunderbar, wenn ich ihn von Hand in die Proxyeinstellungen der Clients eintrage.
Als iptables Regel habe ich folgendes gesetz:
$IPT -t nat -A PREROUTING -p tcp --destination-port 80 \
-j REDIRECT --to-ports 3128
Das sollte eigentlich alles was über Port 80 reinkommt auf den Squidport umleiten.
Wenn ich jedoch das Firewall Script mit dieser Regel aktiviere und an einem Client z.B. http://www.google.de aufrufe, bekomme ich folgende Fehlermeldung:
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: /
The following error was encountered:
* Invalid URL
Some aspect of the requested URL is incorrect. Possible problems:
* Missing or incorrect access protocol (should be `http://'' or similar)
* Missing hostname
* Illegal double-escape in the URL-Path
* Illegal character in hostname; underscores are not allowed
Your cache administrator is root.
Generated Tue, 04 Mar 2003 10:02:53 GMT by Knecht (Squid/2.4.STABLE7)
Ich weiss nicht genau was da schiefläuft, unter Suse 8.0 konnte ich das selbe Script ohne Schwierigkeiten nutzen?
Hier ist auch noch kurz ein Austzug aus der squid.conf. Der Zugang zum Proxy für die Rechner aus dem lokalen Netz sollte eigentlich frei sein:
acl local_net src 192.168.0.1-192.168.0.200/255.255.255.0
http_access allow local_net
Kann mir jemand einen Tip geben?
Danke
Toff
ich möchte gerne Squid als transparenten Proxy unter Redhat 8.0 nutzen. Der Proxy funktioniert wunderbar, wenn ich ihn von Hand in die Proxyeinstellungen der Clients eintrage.
Als iptables Regel habe ich folgendes gesetz:
$IPT -t nat -A PREROUTING -p tcp --destination-port 80 \
-j REDIRECT --to-ports 3128
Das sollte eigentlich alles was über Port 80 reinkommt auf den Squidport umleiten.
Wenn ich jedoch das Firewall Script mit dieser Regel aktiviere und an einem Client z.B. http://www.google.de aufrufe, bekomme ich folgende Fehlermeldung:
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: /
The following error was encountered:
* Invalid URL
Some aspect of the requested URL is incorrect. Possible problems:
* Missing or incorrect access protocol (should be `http://'' or similar)
* Missing hostname
* Illegal double-escape in the URL-Path
* Illegal character in hostname; underscores are not allowed
Your cache administrator is root.
Generated Tue, 04 Mar 2003 10:02:53 GMT by Knecht (Squid/2.4.STABLE7)
Ich weiss nicht genau was da schiefläuft, unter Suse 8.0 konnte ich das selbe Script ohne Schwierigkeiten nutzen?
Hier ist auch noch kurz ein Austzug aus der squid.conf. Der Zugang zum Proxy für die Rechner aus dem lokalen Netz sollte eigentlich frei sein:
acl local_net src 192.168.0.1-192.168.0.200/255.255.255.0
http_access allow local_net
Kann mir jemand einen Tip geben?
Danke
Toff