LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-11-2011, 12:30 PM   #1
palatnikov
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 1
problem with TCP Wrappers


hi guys! i new in linux world and i want to deny any access to some site. i add to end of hosts.deny file a line with
ALL: SOMESITE.COM
and this just does not work - i have any access to this site. what is my problem ??? i did restart to my PC a couple of time and i still have the problem :-(
I use the last UBUNTU.
THANK YOU!
 
Old 01-11-2011, 01:31 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I don't use TCP wrappers, but AFAIK they are meant for connections to your host (not from it). Furthermore, the daemon you're controlling access to will need to have been linked against libwrap (unless you're sticking a super-server in front of it, of course). So basically, it sounds like you're using the wrong tool for the job. You'll probably want to be looking at something like a proxy server ACL instead. For example, to do something like this in Squid it would go like:
Code:
acl denied_site dstdomain .example.com
http_access deny denied_site

Last edited by win32sux; 01-11-2011 at 01:44 PM.
 
Old 01-12-2011, 03:14 AM   #3
palatnikov
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 1
thanks a lot!
i will learn about ACL in LINUX - i hope this will help me
 
1 members found this post helpful.
Old 01-12-2011, 10:47 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by palatnikov View Post
thanks a lot!
i will learn about ACL in LINUX - i hope this will help me
You're welcome. Keep in mind these aren't Linux ACLs. They are specific to Squid.
 
  


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
tcp wrappers nishith Linux - Security 4 11-11-2008 04:45 AM
Tcp wrappers sysconfig Linux - Security 4 09-08-2006 08:20 AM
TCP Wrappers ? juanb Linux - Newbie 1 01-31-2004 01:35 PM
tcp wrappers --with-tcp-wrappers ForumKid Linux - Security 2 01-04-2002 04:01 PM
TCP Wrappers ltrain Linux - Security 6 05-31-2001 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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