LinuxQuestions.org
Help answer threads with 0 replies.
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 11-28-2003, 03:25 AM   #1
pune_abhishek
LQ Newbie
 
Registered: Nov 2003
Location: india
Posts: 8

Rep: Reputation: 0
Secure Proxy Configuration(squid) for a LAN to access Internet


Hi
I got one linux9 server with two interface (eth0 and eth1). we also have one LAN(192.168.10.*) and one Internet connection through ISP(static ip: 203.197.96.195), i want to give Internet access to my machine which is on LAN.

for this i have installed squid on linux9 server and on my client machine i have given gatway as ip of linux9(eth0) with a simple modification in squid.conf file
##############
acl mylan access 192.168.10.0-192.168.10.20/255.255.255.0
allow http_access mylan
##############
above line may be differ a little bit. now my lan is accessing internet ..
but is it a secure way.
please provide me a good configuration for squid

thank in advance (abhishek)
 
Old 11-28-2003, 05:49 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Hi there,

I believe the syntax is a little off. I run squid myself and the syntax should be like this:

acl mylan src 192.168.10.0/255.255.255.0
http_access allow mylan
http_access deny all

This should allow everyone in your lan to connect to your proxy server while refusing connection attempts everywhere else. The only way that I can think of to verify the refused connections are to have a friend make an attempt to connect to your proxy.

-twantrd
 
Old 11-28-2003, 10:56 PM   #3
pune_abhishek
LQ Newbie
 
Registered: Nov 2003
Location: india
Posts: 8

Original Poster
Rep: Reputation: 0
hi twantrd,
thanks for your reply, you are absolutly right.

now my question is, there is too many configuration, in squid.conf file, so i am not able to analyse with option is security breach?

also when we allow http_access to mylan, is there any possibilties that outside world , can get data from mylan computers?
 
Old 11-29-2003, 12:29 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Hi,

These lines:

http_access allow mylan
http_access deny all

Will allow ONLY lan connection attempts to your proxy. Allow has precedence over deny therefore the allow rule will first be applied then the deny rule. Therefore outside world would not be able to connect to your proxy server at all. Also, I believe somewhere in the squid.conf there is an option for open proxy. I'm not at home at the moment so I don't know at the top of head which exact config line it is. However, you should check to see that the open proxy rule is set to off/disabled or whatever. You do not want to run an open proxy, that's for sure!

-twantrd
 
Old 11-29-2003, 11:40 PM   #5
pune_abhishek
LQ Newbie
 
Registered: Nov 2003
Location: india
Posts: 8

Original Poster
Rep: Reputation: 0
hi

Can i use squid proxy as well as firewall(iptables). if yes, than it should make my LAN more secure.
but as you said that your configuration of squid proxy is not allowing outside world, than why it is mandatory to use squid as well as firewall?

thanks for your reply(abhishek )
 
Old 11-30-2003, 01:33 PM   #6
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Hi pune,

Yes, you can use firewall with squid. You can run anything and have the firewall running as well. The reasons why you should run firewall is to block out ports to make your system more secure. The squid configuration as I have described only allows internal nodes to access the proxy but outside cannot. However, that doesn't mean that your system is secure. Think of your system like a house. Just because you have the front door locked doesn't mean there's no more entry points

-twantrd
 
  


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
ip addressess configuration in squid proxy server raju_dhakar2002 Linux - Networking 0 05-09-2005 12:52 AM
Lan Squid Proxy+Increase Memory pin_bk Linux - Networking 3 10-14-2004 11:42 AM
Squid Web Proxy Configuration ather_36 Linux - General 2 10-03-2004 10:25 PM
linux squid and iptables for secure lan for internet access. pune_abhishek Linux - Networking 4 11-30-2003 07:20 PM


All times are GMT -5. The time now is 01:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration