Server :: Squid Doesn't Redirect To Squidguard
Dec 17, 2009
I use CentOS 5.4, Squid version 2.6 , squidGuard version 1.2. Squid works properly, squidGuard also works properli. I want to redirect all requirests from [URL] to [URL]. It seems that squidguard works:
Code:
[root@main ~]# echo "http://www.sex.com 127.0.0.1/ - - GET" | squidguard -c /etc/squid/squidguard.conf
http://www.infoborder.com 127.0.0.1/- - -
[root@main ~]#
But if I want to access site [URL] with a browser which is connected to squid, my browser get me the site [URL]
View 3 Replies
ADVERTISEMENT
May 28, 2010
All i'd like to split my squidGuard.conf into 3 differents config files. The idea is that, I want 1 config file for src definition (my users), 1 config file for dest definition and 1 file for acl definition. And all of these files will be include in squidGuard.conf.
View 1 Replies
View Related
Feb 2, 2010
I have installed squid 2.7 and squidguard from OpenSuse repositories,and I use "redirect_program /usr/sbin/squidGuard -c /etc/squidguard.conf -d" in /etc/squid/squid.conf,but seems that the squidguard is not started after restart squid,
however,when I initialize the blacklist by "squidguard -C all",the cursor keeps blinking for quite a long time,what should I do
View 6 Replies
View Related
Jul 5, 2010
I am using squid server. I want to redirect one perticular url request to other squid proxy server .
View 1 Replies
View Related
Jun 25, 2010
how to redirect all client http request to https request in squid
View 1 Replies
View Related
May 26, 2010
small office network with Linux CentOS 5.4 internet server. I use Squid 2.6.STABLE21. I have static IP.If I masquerade my small office net FTP works, but if I disable masquerade then FTP doesn't work through Squid.I was trying to stop iptables but the problem was the same.
View 9 Replies
View Related
Dec 21, 2010
is there any built-in option in squid to redirect a website URL to another URL?
View 2 Replies
View Related
Mar 31, 2010
I have recently just got another internet connection at home via cable as well as my exisiting DSL connection. I was wanting all my web browsing that I did via squid to be redirected down the cable connection. The box has a single nic at the moment and the default route sends it via the dsl connection for the mail server that is also running on the box.I was hoping that anything that hit squid would go down the cable connection that is plugged into a router and thus I can route to 172.16.2.251 and everything will go out via cable.
I was reading about iproute2 and marking the packets and is wondering whether this is the way to go?
View 3 Replies
View Related
Jun 10, 2010
i have installed squid 2.6 on my centos. i have writen a shell script to ping a network and write to a file. write '1' if network up and '0' if network down. After that,a perl script will read the file and do the redirection.Perl will redirect to a fix URL [URL] if the network down and do nothing when it up. i have put my perl script in squid.conf at url_rewrite_program /my_file_path.
below is my shell script for pinging:
Quote:
#!/bin/bash
while [ 1 ]
do
HOST=143.148.137.134
[code]....
My problem is client browser are not redirect to www.google.com even the network is down. It should go to the fix URL when the user click any URL in network down situation.it just appear cannot resolve host.
View 1 Replies
View Related
Apr 28, 2010
I've been having a hard time googling and trying to get ALL network connection to be redirected to squid proxy. I couldn't find a proper configuration for ufw or iptables. The ideas are:
1. redirection rule should NOT depend on a specific network inteface, but should work with any connection type, ex.: ppp0 or eth0... 2. firewall rules can be for firehol, iptables, or ufw (the same as iptables, just tell me where to place them). Preferably ufw or gufw. 3. should not interfere on cups web interface and lighttpd server.
BTW: it's not a ubuntu server install
View 6 Replies
View Related
Jan 10, 2011
Hi,
In squid i have blocked some sites like facebook and ......I want to know is there any way when user type in his browser like www.facebook.com instead it show something like following it automatically redirect to www.google.com
Error
The requested URL could not be retrieved
The following error was encountered:
Access Denied.
Basically I want to redirect the http request so the user should not see the page not found error but www.google.com page may open automatically.
thanks
garden
View 2 Replies
View Related
Jan 13, 2010
We host a web server in which we are hoping to implement some form of traffic redirection based on source IP address, and I am wondering whether the squid proxy built on iptables would be capable of managing this task? Essentially we are trying to redirect traffic from specific set of source IP ranges to a "Your IP has been restricted" type of page at a different IP/FQDN.
View 2 Replies
View Related
Mar 21, 2011
I have a setup of squid3 with ntlm authen and I use squidGuard 1.5 to filter my web traffic. My squid3 is authenticating users properly and parsing all rules. The problem is with squidguard which doesn't seem to filter out users. below is my squidguard config.
Code:
dbhome /usr/local/squidGuard/db
logdir /usr/local/squidGuard/log
[code]....
View 3 Replies
View Related
May 23, 2010
My squid server works fine in fedora 11 system . Is there any web like interface for admins to create,change,modify users of squid and to view their logs.
View 1 Replies
View Related
Jan 17, 2011
I would like to ask some help and tutorial for setting up and how to configure squid proxy server in my (Home PC Server). I am a newbie in Linux Centos. I already installed in my system the CentOS 5.5 . Now, I want to configure it as my internet server, all of my 4 system running in Windows including the laptop I want to connect through my CentOS pc with username authentication. I assign all IP address by static. see tthe attachement in my set up. [url] I just want to know what I need to change and add in my squid config file. And how can I configure properly my CentOS with 2 LAN card as internet server.
View 1 Replies
View Related
Jun 11, 2010
I have an old FC2 box running Squid version 2.5. It has been running since 2003 so I am in the process of replacing it. I have a new machine with FC11, iptables, and Squid 3.0 installed.
On the old machine I use iptables to intercept Port 80 traffic and send it to Squid. By default I block all internet access and allow only sites that are in an Allowed_Sites.txt file. Within Squid I also have statements to allow certain users to bypass Squid based on their IP address.
I have set up the same thing on the new box. I have iptables intercepting the Port 80 traffic and sending it to Squid. That is working because if I remove the redirect statement from iptables all internet access is blocked.
The problem I am having is that Squid is not blocking any websites. It acts like the ACL is set to http_access allow all. I have worked on this for several hours and am stumped.
These are my Squid rules:
acl allowed_sites url_regex "/etc/squid/Allowed_Sites.txt"
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl SSL_ports port 443
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow Bypass_Users
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl our_networks src 192.168.1.0/24
http_access allow allowed_sites
http_access allow our_networks
http_access deny all
icp_access deny all
htcp_access deny all
http_port 192.168.1.254:3128 transparent
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|?) 0 0% 0
refresh_pattern . 0 20% 4320
visible_hostname FC11.proxybox
icp_port 3130
coredump_dir /var/spool/squid
View 2 Replies
View Related
Aug 21, 2010
I've two internet based server ( xx.xx.xx.xx and yy.yy.yy.yy ) The Y server is running VNC server and is responsible for answering to VNC sessions. But I need to hide the IP of Y server so I want X server to be as VNC Proxy and redirect all VNC sessions to Y server.
I guess the best way is to use iptables but actually I can't get it working so
View 4 Replies
View Related
Apr 6, 2010
I have been beating my head for the last few weeks on this problem, (although I have been taking the wrong approach, it seems).
I need a gateway to direct web traffic to three separate servers/domains. I have been trying to do this with both a dns server and , (seperatly), apache server to forward requests. The dns server was a no go, and <i can only get apache to redirect http and ftp.
After Googling this ALOT, I believe that what I need is a gateway server to redirect my traffic to the 3 different servers. I have been reading about using using nat and iptables for this and was wondering if anyone had any advice/suggestions on this. The other thought I had was to use something like pfSense to create the gateway, but I am still reading the documentation, and I am unsure if this approach will work.
View 1 Replies
View Related
Feb 19, 2010
The issue is that my CentOS workstation is in a vlan from where the Intranet's DNS servers are unreachable. For browsing the web there is an ISA proxy server, which I presume resolves DNS for my firefox. However, wget, host, ping and aria2c fail to get any sort of DNS resolution since they're being run from command line.I have exported HTTP_PROXY value, which provides me internet access on console, but,only when I connect using IP address. It fails on name resolution.
My question is:May I redirect the DNS queries to my home PC which would be running a DNS server on a non standard port?I was thinking of putting nameserver 127.0.0.1 in /etc/resolv.conf and then put iptables rule to redirect 127.0.0.1:53 UDP to a.public.ip.address:3535 UDP..I don't know if I am shooting blanks or what, I am not very much aware of this kind of setup.My main need is to provide DNS resolution to console apps.I want to utilize my company's idle bandwidth for bulk downloads, so, using proxy, SSH tunneling through my Home PC is out of question.
View 8 Replies
View Related
Jan 12, 2011
I setup squid with transparent proxy and its working, however, when I reboot the server, the proxy server doesnt work unless I run the following.
Code: # squid server IP
SQUID_SERVER="192.168.1.1"
# Interface connected to Internet
INTERNET="eth0"
# Interface connected to LAN
LAN_IN="eth1"
# Squid port
SQUID_PORT="3128"
[Code]...
View 6 Replies
View Related
Sep 29, 2009
My current setup is:
old server:
www.mydomain.com main site
www.mydomain.com/subdirectories related sites from same server, different directories
I am adding an additional server that I would like to initially only use for the main site, something like this:
new server
www.mydomain.com main site
www.mydomain.com/subdirectories would be pointed back to the old server instead
What's the best way to redirect the traffic for the sites found in sub-directories on the old server?
View 2 Replies
View Related
Mar 27, 2011
I'm trying to install squidGuard-1.4, I have a minimal install. I have installed squid-3.2.0.5 without any problems, but squidGuard is driving me crazy
I can run the ./configure with no problems but when I run make, or make install I keep getting this error:
Code:
make: *** [y.tab.c] Error 141
And that is is all, no more verbosity or anything else.
Error suggests that YACC is missing but bison is present, also db4 (tried with db44 and db3, same story).
Just in case you can see anything I cannot I've attached the config.log
View 2 Replies
View Related
Aug 14, 2009
I'm using Apache 2 on a Linux server and I was wondering if it was possible to redirect certain IP ranges to another page. I know it's possible to block an IP, but is there a way to block all IP's and only allow a certain IP range to connect, such as 5.87.xxx.xxx? I own this server, so if I need to use another OS, webserver, change configuration files, etc., that's fine.
View 2 Replies
View Related
Jul 6, 2009
How can apache do this:
When access http://domain1/index.php , apache redirect to [url]?
But when access [url]?something, not redicect?
only use .htaccess.
View 8 Replies
View Related
Mar 8, 2010
I haven't found any updated instructions for adding squidguard to the new squid3 server. I tried following the old instructions for doing this, making changes to the text to point to the new squid3 locations, but this didn't work.
View 2 Replies
View Related
Mar 16, 2010
not blocking sites
Code:
dbhome /var/lib/squidguard/db
logdir /var/log/squid
dest block {
domainlist block/domains
[Code]....
under db I created a directory block where I created a domain file and a urls file dosen't seem to be working
View 6 Replies
View Related
May 5, 2011
I am using squid as a proxy server in my cent os 5 machine. I have downloaded and install squidGuard-1.4 using ./configure which it successfully do.THe problem is when I use make command it give me an error beacuse may it it is not compatible with BerkeleyDB. For
Code:
[root@localhost squidGuard-1.4]# make
making all in squidGuard-1.4
make[1]: Entering directory `/home/squidGuard-1.4/src'
[code]....
I am sure that it is due to patch missing .For that purpose I have download the patch "squidGuard-1.4-patch-20091015" and then extraxt it (untar) it. THe patch shows only these two files
Code:
[root@localhost squidGuard-1.4-patch-20091015]# ls
Readme.Patch-20091015 sgLog.c
I does not know how to apply the patch with currect squidGuard ?
View 9 Replies
View Related
May 19, 2011
I am using cent os 5. I want to ask two thing. By default Squid configuration file is place in /etc/squid/squid.conf and if we have downloaded the source code file of squid then it will be installed in /usr/local/squid/etc
when we install squidGuard it automatically installed under /usr/local/squidGuard and then we can see squidGuard.conf file.
The thing which I want to ask that is there any way to change the path of squidGuard to /etc/squid/squidGuard or it is batter to leave the default settings to install it ?
View 1 Replies
View Related
Apr 21, 2011
Is it possible to do a 301 redirect for all file not found on a whole server?
or at least a specific 404 document for the whole server instead of setting it up for each domain/user.
I am using CENTOS 5.6 x86_64
View 1 Replies
View Related
Jul 20, 2011
where to look for setting up my web server A so that if I have to bring it down for maintenance, all web traffic will go to my backup server B. I thought about changing DNS entry but that will take time to update.
View 2 Replies
View Related