LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-12-2016, 08:31 PM   #1
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Squid help - even blocking slackware.com


Hi Folks,

I'm trying to setup Squid along with Dansguardian for local network. Installing both these are relatively trivial but I've been banging my head with Squid for few hours now and getting nowhere. I am testing this on a local machine before deploying everything on a network server.

Here's the entire squid config file.

Code:
acl kuiperbelt src 192.168.2.0/24       # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
http_access allow localhost
http_access allow kuiperbelt
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access deny all
http_port 127.0.0.1:3127
cache_mem 256 MB
cache_dir ufs /var/cache/squid 256 16 256
access_log daemon:/var/log/squid/access.log squid
mime_table /etc/squid/mime.conf
pid_filename /var/run/squid/squid.pid
cache_log /var/log/squid/cache.log
coredump_dir /var/log/squid/cache/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 shakal
forwarded_for on
On the local machine, I have INPUT, OUTPUT and FORWARD chains set to allow. No NAT rules on the local machines except this one to redirect outgoing http request to port 8080 (where Dansguardian is listening)

Code:
iptables -t nat -A OUTPUT -o eth0 -p tcp --sport 1024:65535 --dport 80 -j REDIRECT --to-ports 8080
The issue I am facing is that I see Dansguardian log and squid log getting populated when I access websites but with this config and iptables rules but Squid blocks even www.slackware.com. I know Squid blocks it because I see the Squid access denied page, see attached screenshot.

I'd appreciate if someone can help me point out what's wrong here. This is my first time dealing with Squid.

Thanks,
Attached Thumbnails
Click image for larger version

Name:	snapshot-squid.png
Views:	28
Size:	50.2 KB
ID:	22716  
 
Old 08-13-2016, 02:26 AM   #2
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by tuxrules View Post
Hi Folks,

I'm trying to setup Squid along with Dansguardian for local network.

...

I'd appreciate if someone can help me point out what's wrong here. This is my first time dealing with Squid.
I found these instructions fairly helpful when I was setting up Squid+DG on Slackware and NetBSD.
 
  


Reply

Tags
dansguardian, filtering, iptables, linux, squid



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 10:34 AM
blocking in squid amartlk Linux - Newbie 1 10-15-2011 04:51 AM
[SOLVED] Squid site blocking r2d2#jedi Linux - Security 1 08-01-2008 06:56 AM
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
Squid IP BLOCKING secrets Linux - Networking 4 06-14-2007 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration