LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-13-2004, 12:11 AM   #1
jamiguel77
LQ Newbie
 
Registered: May 2004
Distribution: red hat
Posts: 24

Rep: Reputation: 15
squid and share itnernet...


i am sharing internet with putty i am use rh9, my question is:

how block the ip: 192.168.0.55 to only can check send/receive email's other interent service same as: mirc, www block.


thanks
 
Old 09-13-2004, 12:13 AM   #2
jamiguel77
LQ Newbie
 
Registered: May 2004
Distribution: red hat
Posts: 24

Original Poster
Rep: Reputation: 15
correction...

jejeje

i am sharing internet with putty i am use rh9, my question is:


replace by:

i am sharing internet with SQUID, i am use rh9, my question is:


thanks
 
Old 09-13-2004, 04:25 AM   #3
cidrolin
Member
 
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89

Rep: Reputation: 15
In /etc/squid.conf :

- first create an acl :
Code:
acl acl_name src 192.168.0.55/0
- then deny squid access to acl_name :
Code:
http_access deny acl_name
squid caches only http, ftp, https and ftps, so this won't affect in any way smtp and other protocols.

simple enough, huh ?
 
Old 09-13-2004, 10:41 AM   #4
jamiguel77
LQ Newbie
 
Registered: May 2004
Distribution: red hat
Posts: 24

Original Poster
Rep: Reputation: 15
not worked.....

[root@ServerGLN squid]# service squid restart
Parando squid: 2004/09/13 09:43:59| aclParseIpData: WARNING: Netmask masks away part of the specified IP in '192.168.0.69/255.255.255.0'
2004/09/13 09:43:59| squid.conf line 1706: acl sinWWW 192.168.0.10/0
2004/09/13 09:43:59| aclParseAclLine: Invalid ACL type '192.168.0.10/0'
2004/09/13 09:43:59| squid.conf line 1737: http_access deny sinWWW
2004/09/13 09:43:59| aclParseAccessLine: ACL name 'sinWWW' not found.
2004/09/13 09:43:59| squid.conf line 1737: http_access deny sinWWW
2004/09/13 09:43:59| aclParseAccessLine: Access line contains no ACL's, skipping
................ [ OK ]
Iniciando squid: . [ OK ]
[root@ServerGLN squid]#



my acl is: sinWWW i try block 192.168.0.10


i restart the squid service but the 192.168.0.10 can surff in the www...

thanks
 
Old 09-13-2004, 01:14 PM   #5
jamiguel77
LQ Newbie
 
Registered: May 2004
Distribution: red hat
Posts: 24

Original Poster
Rep: Reputation: 15
jejej i forget the word: src

i forget type the word src



in any case if i type:

acl acl_name src 192.168.0.10/0 not work
if i remove the /0 work...


other question if i want block some ips? 192.168.0.10 and 192.168.0.98


thanks
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
Using an NFS share as squid cache directory, possible? tylerdurden82 Linux - Networking 1 01-20-2005 06:42 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
Squid load testing software / Squid optimisation? gundelgauk Linux - Networking 2 08-31-2004 07:36 PM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM

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

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