LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-16-2006, 02:53 PM   #1
j0hnd0e
Member
 
Registered: Nov 2005
Distribution: slackware64, debian
Posts: 34

Rep: Reputation: 15
proxy server using squid


Hi,

Sorry if question like this was asked before.

Well I have Linux Server on Debian (running web, mysql, samba, ssh, squid).
Linux server is runing and with network interfaces:
eth1 --> internet
eth0 --> local network (switch)

I have 3 Linux clients (Kubuntu), 2 Windows XP clients. All clients are connected to switch, and then switch is connected to eth0 on Linux Server.

Every client should automaticaly use Squid proxy, log all opened pages, and with squidGuard all unwanted pages should be filtered. When a users log into Windows (connecting using samba) squid would automatically use this uid for squid proxy. For Linux should be the same.
For some unknow reason, no client uses Squid, and squid and squidGuard have no functions at all I need to forward somehow all port that goes thru squid, so that I can have logs with which user, from which ip had open some sites.

But I think there is something wrong with iptables, I do not know what, and how to set it properly.

When I set in client resolv.conf nameserver from ISP, I could do for example ping www.google.com
but when I set 192.168.0.1 as nameserver in resolv.conf I could only ping ip adresse, not the domains, that means something with dns server is wrong. But in any case users can surf thru internet, which is due to security not really smart.

So please, could someone feed me up with some very good link to do following, mentioned above, or some instructions in reply.

Thank you very much

John
 
Old 10-19-2006, 12:05 AM   #2
nesargha
Member
 
Registered: May 2006
Distribution: rhel 4, red hat 9, fedora core 2
Posts: 51

Rep: Reputation: 15
Smile

hi,

1) set squid as transparent proxy in the server, you can google out how to set squid as transparent proxy, u can also go through the link below

http://www.cyberciti.biz/tips/linux-...uid-howto.html

this thread below might also help
---------------------------------
http://www.linuxquestions.org/questi...d.php?t=452689

2) then set the all the traffic coming on to your eth1(connected to local n/w) to the server ip using iptables.

3) in your clients machines(xp) set the "default gateway" in the tcp/ip properties to the server ip address where squid is setup ie. 192.168.0.1 and for the primary DNS and alternate DNS set the same which you have given in the server.

just go through the above and google out/search LQ as much as possible to get a foolproof solution that’s suits you.

nesargha

"Men occasionally stumble over the truth, but most of them pick themselves up
and hurry off as if nothing had happened". - Winston Churchill
 
  


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 11:25 AM
Squid Proxy server help win2Linux Linux - Server 3 09-03-2006 09:53 AM
Need help to connect a squid proxy to connect to another squid proxy server bellerophon Linux - Newbie 1 02-07-2006 06:52 AM
squid proxy server msound Linux - Networking 4 06-01-2005 11:59 AM
squid proxy server cmardhekar Linux - Newbie 0 09-29-2001 05:34 AM

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

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