Debian Configuration :: Can't Get Squid To Block Webpages?
Mar 23, 2010
I am having problems while testing out squid proxy server. I just can't get it block anything. So, I'm running Debian lenny on my Virtualbox and Squid on it. I'm having windows 7 on virtualbox too and they can ping each other and the webserver on debian (apache2) is working fine. The problem is i can't get squid to block webpages. I have the correct settings on windows proxy settings, but i'm not so sure about squid. I want to block lets say www . xxx. com for example. So I add to the main configuration file:
I just installed Debian with the latest testing iso, and I'm having problems connecting to the web via browser. I can ping hostnames (i.e. google.com, debian.org, etc.) from the terminal and it resolves just fine, but if I try to load a page from Iceweasel or Epiphany it says the page won't load because it can't resolve the hostname. Can someone tell me what I'm missing?the detail that I'm running amd64. I've checked iptables and found no entries, and for good measure I flushed it to be certain. I also checked resolv.conf but that looked normal, just a nameserver entry pointing to my home router. I'm new to Debian, but have used Linux for years, and I'm genuinely stumped. I'm sure the solution will smack me in the head for its simplicity, but nonetheless I need at least a shove in the right direction.
Is there a way to cache everything in squid except for the video files and mp3s?I had a problem before when I turned caching on and it made the performance very poor because it was trying to cache large video files.Right now, I have a problem on the server where even if iptraf lists ingoing+outgoing at 5000 kbits/sec viewing video works fine, but it takes a while for normal webpages to load and I can't figure out where the bottleneck is.
I'm having trouble to configure my debian (2.6.26-2-686) with some routing tuning. In fact, I have a VPN provider. I want my Squid Proxy use this VPN provider and I have to use policy routing because my ISP forbid IP spoofing.
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.
The problem I have is so simple yet difficult for me to resolve. My Postfix MTA allow fake mails from me@example.com to me@example.com. How can I block them?
For example, if I do "telnet smtp.mail.yahoo.it 25", as I write the MAIL FROM command I get the alert "Authentication required". How can I achieve that?
in my office i have to block all messenger like yahoo messenger, windows live messenger, i have to block websites like www.yahoo.com, some more web sites. i need guidance through which i can accomplish this task through ip tables or through squid server. i can use squid but i had heard that squid blocks pop and smtp also. squid creates some problem in receiving and sending email. i am using red hat linux 4 box and installed squid having two ethernet card 1 is connected to adsl line and 2 is connected to switch. all clients will have proxy address of this linux box. guys need ur help ASAP.
I am using Squid as a proxy server red hat Linux.I want to block some specific web sites like facebook,..... under squid .Please guide me that how can i do it and under which header should i write the script ?
but it give me error as like: - (This is the output of # squid -k parse) aclParseAclLine: Invalid ACL type 'arp' FATAL: Bungled squid.conf line 1234: acl block arp 00:13:45:d3: 24:e4 squid Cache (Version 2.5.STABLE6) : Terminated abnormally
I'm using ubuntu 9.04, I want to design webpages in PHP for that I installed apache 2 on my machine. I'm using my mobile to connect to the internet when ever the mobile is connected and the wired connection established the server running properly. But when the wired connection disconnected my browser page didn't show the localhost home. How can I configure the apache on my machine.
In Iran there is a famous "access denied page" that redirects you to a strange page with a lot of HTML errors and lol, telling you RTFM about ridiculous Internet laws.I want to filter the contents of the page, because the page IP, URL, ... are all unknown.I don't know much about squid configuration scripts.I can read but cannot write
how to disable the gmail chat? My means to say that when we login to gmail , after that the chat will open, I want to disable that chat. am using Redhat 9 and squid stable 2.5 version. I have tried the things mentioned below, but chat is still working.
I've been all around the net and can't find a "simple" answer how to block our LAN users from downloading torrents. Is it really that difficult?
Here's our setup:
1. The Server's Configs:
2. sudo gedit /etc/squid/squid.conf
3. sudo gedit /etc/rc.local (to start Firewall rules on bootup)
4. Server NOT a DHCP Server
5. No other iptables rules are configured, just the above ones.
Before in a 1 NIC setup, I blocked Workstations MAC addresses in the Router + Squid Proxy Server (Not Transparent), it worked, but some Online Java Apps didn't work and users can't send/receive email so I abandoned the method.
Now, I installed transparent Squid Proxy with 2 NIC cards, it works, but workstations can still download torrents! I know Squid doesn't block ports, right? So the answer must lie in Iptables Firewall? I basically use Squid just to deny access to Facebook, Friendster, or other "unproductive sites".
Quote:
How to block torrent downloading by using a Firewall? Or is there another "simple" way?
I've heard that it's better just to allow regular ports (80, 22, 465, etc...) then block all the rest, this way, you can prevent unnecessary ports.
I'm not an Iptables/Firewall expert so can you pls. explain it a bit more detailed if that's the case.
I'm also aware of just telling our users NOT to download torrents, but I just want to prohibit it entirely.
I know I will be the most "uncool" employee in our office.
i had googled a lot n come to know that i need to block dnslookups for these urls httpcs.msg.yahoo.com and webcs.msg.yahoo.com and these should return 127.0.0.1. i havent have DNS configured so tried by making an entry in etc hosts filebut unforunately it didnt worked
I have recently configured squid proxy server in rhel5 so now I am able to blocking some websites ok, but still I have one problem how can I block gtalk by using squid proxy, one more thing I blocked gmail so now client xp systems are not logging into gmail but still they using gtalk to chatting the things to others. So ultimately I need to block gtalk also by using squid proxy.
I have a problem with sites or domain blocking by squid proxy server in rehl 5. I have trying lots of time but i'm not succed.pls help me how to block sites or domain in rhel 5.
My Problem is: I want to stop gmail access without blocking https. Yes in my squid proxy normal [URL].. is not accessible. But gmail recently started https service by which user can still get access to gmail. I DONT WANT TO STOP https CAUSE ITS BEING USING BY OTHER PROGRAMS.
i am using centos 5.4, running squid for proxy, i want to block email sending and receiving of proxy users to secure my data. how is it possible that the proxy user can only brows websites but he can not receive or open and send or save as draft to mail box.
i have been looking up ways to block websites in linux but most all of the free ones only block the sites the software makers want to (or you can't block just the sites you enter without blocking the sites that it wants to)i need to know how to block only websites i enter with squid using webmin
I use Debian 6. I noticed that when ever I try to open certain websites, the pages doesn't load at all. This happens when I try to open [URL] and certain other web pages. Browsers like chrome, epiphany, iceweasel, opera all had the same issue. The download speed is pretty normal. note that disabling ipv6 inside the browser configuration didn't help fight this issue.