LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-31-2009, 10:35 PM   #1
EmCee09
LQ Newbie
 
Registered: Jan 2009
Location: Melbourne, VIC, AU
Distribution: Ubuntu, Debian, Fedora, IPCop
Posts: 2

Rep: Reputation: 0
internal proxy server and web filter


Hi there,

Looking for the best solution for an internal proxy server and webfilter for home use. I was using IPCOP which was great, but it fell over far too regularly, which after some detailed reading appears to occur due to my red and green interfaces being on the same subnet and IPCOP just shutting down the red after a certain amount of traffic. Anyway, I want to continue to use my Billion Router as the gateway (192.168.1.254), and have the squid/dansguardian(?) sit on the inside (192.168.1.20?) and then my home PC's in the DHCP range of 192.168.1.100-192.168.1.199, and just set their Firefox proxy settings to point to 192.168.1.20 which will then either grab the page from its cache, or decide whether to go fetch from the internet. I know this is basic squid stuff but I'm just unable to find information about using squid without doing routing (ie: router IP 192.168.0.xxx external interface, and 192.168.1.xxx internal.) Also being able to cache any windows or ubuntu updates would be a bonus, to save five PC's going out and grabbing the same data five times, where it would be better being cached after the first dl.

Thanks!!

Mark

PS: have also tried smoothwall, another good product but didn't seem to like the WAN and LAN nic's being same subnet.

PPS: Preferred platform either Ubuntu or Debian, but if another distro is required, happy to learn it's subtleties.
Attached Thumbnails
Click image for larger version

Name:	Diagram1.jpeg
Views:	15
Size:	24.7 KB
ID:	66  

Last edited by EmCee09; 01-31-2009 at 10:51 PM. Reason: add diagram
 
Old 02-01-2009, 01:50 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Hi and welcome to LQ, for me I use Squid and SquidGuard for my home use, I currently run this on KirraMail (slackware 12.1 box), but you can do this on any distro that you are currently using.

The box I use only has one network card in it, so it doesn't do any routing, squid itself does this for you since it's the man in the middle so to speak, as long as the squid box knows the gateway address there shouldn't be a problem.

Be happy to post my squid.conf file if you need it to get started, it's only a basic one, but does the job well.
 
Old 02-01-2009, 07:12 AM   #3
EmCee09
LQ Newbie
 
Registered: Jan 2009
Location: Melbourne, VIC, AU
Distribution: Ubuntu, Debian, Fedora, IPCop
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for the response. With a bit of googling and helpful linux forums I've managed to get squid running nicely on Ubuntu Server 8.10 (an old P4 2ghz machine, 1.5gb ram and an 80gb hdd, and a gigabit nic). Where I am stuck now is getting squid to redirect to squidGuard, so yes if you could post your squid.conf for me to compare mine with, that would be much appreciated.

Mark
 
Old 02-02-2009, 07:52 AM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Here it is, hope this helps.

Code:
http_port 3128
visible_hostname proxy.myhost.com

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

acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8	# RFC1918 possible internal network
acl localnet src 172.16.0.0/12	# RFC1918 possible internal network
acl localnet src 192.168.0.0/16	# RFC1918 possible internal network
acl manager proto cache_object

http_access allow localhost
http_access allow localnet
http_access deny to_localhost
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all

htcp_access allow localnet
htcp_access deny all

icp_port 0
icp_access allow localnet
icp_access deny all

#cache_peer proxy.myisp.com parent 8080 8080
#cache_peer proxy.anotherproxy.com parent 8080 8080 no-query default

cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_mgr squid-admin@mydomain.com
cache_effective_user squid
cache_effective_group squid

pid_filename /var/run/squid.pid

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

forwarded_for off

# Sending to squidguard will block all sites listed in the squidguard database
redirect_program /usr/local/squidGuard/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf
 
  


Reply



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
LXer: Sun To Open Source Java System Web Server and Web Proxy Technologies LXer Syndicated Linux News 0 08-03-2008 07:50 PM
Looking for web filter for linux server? TongueTied Linux - Software 12 07-03-2008 03:42 PM
should convert my nt4 server to Linux and use it as a proxy filter to stop porn kep51 Linux - General 5 06-21-2006 03:17 PM
Squid as Web Filter + Web Server in other machine Balkce *BSD 3 12-17-2005 03:40 PM
Squid as Web Filter + Web Server in other machine Balkce Linux - Networking 2 12-15-2005 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:22 AM.

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