- Posts: 31
- Thank you received: 0
Re-direction problems in IPCOP
18 years 3 months ago #15811
by facer
Replied by facer on topic Re: Re-direction problems in IPCOP
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.
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.
18 years 3 months ago #15816
by DaLight
Replied by DaLight on topic Re: Re-direction problems in IPCOP
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)
[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)
18 years 3 months ago #15832
by facer
Replied by facer on topic Re: Re-direction problems in IPCOP
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?
[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?
18 years 3 months ago #15833
by DaLight
Replied by DaLight on topic Re: Re-direction problems in IPCOP
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)
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)
18 years 3 months ago #15835
by facer
Replied by facer on topic Re: Re-direction problems in IPCOP
That's worked!!
Thank you very much for your help Da light was beginning to give up on IPcop!
Your a absalute star!
Thanks again
Thank you very much for your help Da light was beginning to give up on IPcop!
Your a absalute star!
Thanks again
18 years 3 months ago #15839
by DaLight
Replied by DaLight on topic Re: Re-direction problems in IPCOP
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.
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