LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2005, 09:12 PM   #1
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
squid proxy server


i have a suse 9.3 box running squid acting as the proxy server and gateway for my home network. i also have the susefirewall running and ipmasquerading/forwarding enabled. Is there a way to force a group of IPs to use the proxy server using the acl rules in squid.conf?

Basically I want a range of IPs, lets say 192.168.1.10 - 192.168.1.20 to be forced to use the squid proxy. If their web browsers arent setup to use the proxy server then I dont want them to view the web. This way the users cant go into their browser settings, disable the proxy settings, then view web sites that i dont want them to view.

All other IPs should be able to view the web without being forced to go through the proxy server. can this be done? if so how do i configure squid to set this up? Thanks.
 
Old 05-31-2005, 09:23 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
http://www.tldp.org/HOWTO/TransparentProxy.html
 
Old 05-31-2005, 09:24 PM   #3
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
hmm i found this: http://www.linuxhomenetworking.com/linux-adv/squid.htm im gonna give that a try. i think i can figure out how to force the squid connection using the susefirewall.
 
Old 05-31-2005, 09:25 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
yeah, it's very simple... let me know if you have any questions... good luck...
 
Old 06-01-2005, 12:59 PM   #5
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
in case anyone else ever tries to do this with a newer version of SuSe, this site tells you how to configure your SuSeFirewall to use the transparent proxy:
http://www.karakas-online.de/myLinux...-proxying.html
The only difference with SuSe 9.3 is instead of using:
FW_REDIRECT_TCP="192.168.0.0/24,0/0,tcp,80,3128"
I used:
FW_REDIRECT="192.168.0.0/24,0/0,tcp,80,3128"
I restarted my squid service and firewall and it worked great.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 12:25 PM
Need help to connect a squid proxy to connect to another squid proxy server bellerophon Linux - Newbie 1 02-07-2006 07:52 AM
Setup Squid as proxy-server ONLY hct224 Linux - Newbie 1 09-18-2005 01:57 PM
squid proxy server is timing out sconstable Linux - Networking 0 11-20-2003 07:45 PM
squid proxy server cmardhekar Linux - Newbie 0 09-29-2001 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:53 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