LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-16-2009, 01:50 PM   #1
Fantus
Member
 
Registered: Aug 2003
Location: California, USA
Distribution: Red Hat
Posts: 34

Rep: Reputation: 15
Squid not blocking ip addresses


On my network, certain computers are allowed online and others just get local access. I'm trying to figure out a way either in shorewall or squid to get them blocked. I edited squid:

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
acl luisg src 192.168.0.27
acl leah src 192.168.0.16
acl irene src 192.168.0.26
acl irma src 192.168.0.14
acl julie src 192.168.0.19
acl vanessa src 192.168.0.22
acl laura src 192.168.0.186
acl marisol src 192.168.0.23
acl thania src 192.168.0.20
acl bernice src 192.168.0.17
acl raquel src 192.168.0.229
acl jasmine src 192.168.0.25
acl rena src 192.168.0.24
acl vanessae src 192.168.0.184
acl luis src 192.168.0.185
acl javier src 192.168.0.29
acl isidro src 192.168.0.28
acl daniel src 192.168.0.182

http_access deny luisg
http_access allow leah
http_access allow irene
http_access deny irma
http_access deny julie
http_access allow vanessa
http_access deny laura
http_access allow marisol
http_access deny thania
http_access deny bernice
http_access deny raquel
http_access allow jasmine
http_access allow rena
http_access deny vanessae
http_access deny luis
http_access allow isidro
http_access deny daniel
http_access allow javier
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all


However, no one is being blocked. I tried gimicking with the shorewall blacklist file but it didnt seem to work either. Any ideas?
 
Old 07-16-2009, 05:47 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Are you sure their requests are coming through the squid proxy (i.e. and not being masqueraded through a NAT device instead)? What are you seeing in squid's access.log? Successful attempts from any of the clients that should be denied?
 
Old 07-17-2009, 03:47 PM   #3
Fantus
Member
 
Registered: Aug 2003
Location: California, USA
Distribution: Red Hat
Posts: 34

Original Poster
Rep: Reputation: 15
Everyone is moving just fine through squid. /var/log/squid/access.log is full of people doing what they're doing, and I've got sarg up to compile reports.
 
Old 07-19-2009, 01:13 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Can you post a log sample of someone who is supposed to be blocked? For example:
Code:
grep 192.168.0.27 /var/log/squid/access.log | tail
BTW, I see you're allowing localhost. Any chance users are accessing via a separate daemon which is then accessing via the loopback interface? This would show up in your Squid log as requests with source address 127.0.0.1.
 
  


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
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 10:34 AM
Blocking Specific IP Addresses kaplan71 Fedora 2 11-10-2006 09:30 AM
Blocking email addresses matt1982 Linux - Security 2 05-12-2006 12:17 AM
Blocking IP Addresses toejam Linux - Security 2 05-01-2004 12:14 AM
IPchains- Blocking web addresses sihere Linux - Networking 4 10-23-2002 06:59 AM

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

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