Skip to main content

Re-direction problems in IPCOP

More
18 years 3 months ago #15811 by facer
I had a idea looking at that.
I tired changing this line in the spuidGuard.conf
[code:1] redirect http://191.168.0.3:81/redirect.cgi [/code:1]
to
[code:1] redirect http://localhost:81/redirect.cgi [/code:1]
But it didn't make any difference what so ever. Still displays the IP address in the external proxy access denied page.
More
18 years 3 months ago #15816 by DaLight
Add the following code:
[code:1]acl HOST_IP dst 191.168.0.3
always_direct allow HOST_IP
[/code:1]
just before the line containing:
[code:1]never_direct allow all
[/code:1]
in your /var/ipcop/proxy/acl file, then restart the Proxy Service from the GUI (not using /usr/local/bin/restartsquid)
More
18 years 3 months ago #15832 by facer
This is my acl file

[code:1] acl
acl IPCop_http port 81
acl IPCop_https port 445
acl IPCop_ips dst __GREEN_IP__ __BLUE_IP__
acl IPCop_networks src __GREEN_NET__ __BLUE_NET__
acl CONNECT method CONNECT

##Access to squid:
#local machine, no restriction
http_access allow localhost

#GUI admin if local machine connects
http_access allow IPCop_ips IPCop_networks IPCop_http
http_access allow CONNECT IPCop_ips IPCop_networks IPCop_https

#Deny not web services
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

#Finally allow IPCop_networks clients
http_access allow IPCop_networks
http_access deny all

ttp_access deny all
[/code:1]

I can not find the line you are refering too. Is it just me bein blind?
More
18 years 3 months ago #15833 by DaLight
Sorry, my mistake!

Add the code after the last line in your /var/ipcop/proxy/acl file:
[code:1]acl HOST_IP dst 191.168.0.3
always_direct allow HOST_IP
[/code:1]
then restart the Proxy Service from the GUI (not using /usr/local/bin/restartsquid)
More
18 years 3 months ago #15835 by facer
That's worked!! :D :D :D
Thank you very much for your help Da light :D was beginning to give up on IPcop!
Your a absalute star! 8)
Thanks again :D
More
18 years 3 months ago #15839 by DaLight
Phew! That was a marathon. Glad it's working OK, facer.
The added code simply ensures that web requests which are explicitly directed at your IPCOP do not get forwarded to the external proxy server.
Time to create page: 0.137 seconds