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 06-17-2009, 03:29 PM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Deny login a la access.conf but check local details as well


Hi,

I'm looking at implementing a mechanism like that provided by pam_access / access.conf to only allow certain group members to login to services on a box. As there are many different types of boxes, databases, ldap servers etc... I'm after a way to deploy as consistent a config to all boxes and let the configuration control the behaviour based on additional data, e.g. the local IP address (grouped with netgroups or such) as well as the remote one. This way I could theoretically deploy one single file, or at least very few files, compared to potentially a unique file per box, which is just an arse to manage.

Anyone know of something that might help this sort of solution, or have a better way to look at it?
 
Old 06-18-2009, 08:37 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
This sounds like the dominion of SElinux. I don't know for sure, because I always disable it on new installs, but it seems like whenever I've left it enabled, any services that I wanted to use were blocked by it. I assume there are ways to select what is blocked or not.
--- rod.
 
Old 06-18-2009, 10:22 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I don't think SELinux would be relevant, but it's certainly not something that could be retro-enabled after deployment. I don't expect such a thing to exist, I just like things being neat and tidy across my estate.
 
Old 06-20-2009, 11:25 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie
I'm looking at implementing a mechanism like that provided by pam_access / access.conf to only allow certain group members to login to services on a box. As there are many different types of boxes, databases, ldap servers etc... I'm after a way to deploy as consistent a config to all boxes and let the configuration control the behaviour based on additional data, e.g. the local IP address (grouped with netgroups or such) as well as the remote one.
Just brainstorming: I'm not sure pam_access alone will be able to solve this problem.

Consider an access.conf like:
Code:
+ : @db_group : 10.50.50.0/24
+ : @foo_group : 10.50.51.0/24
- : ALL : ALL
The rules take netgroup and client IP address into consideration. If they would additionally take host IP and/or daemon name, you could easily create one file and roll it out to dozens of servers.

Would this be a candidate for tcp wrappers?

Alternatively, could you combine pam_access's capabilities with some other IP access control at the host level?

Either option would allow you to deploy a single access control file. (But the latter option would require some per-server tweaking as well.)
 
Old 06-22-2009, 05:01 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
The more and more i've been thinking about this, the more it seems that I'm actually just looking to push the problem to the servers rather than face up to centrally managing them. Putting one file on all machines exposes the requirements to log into other machines, and as there would be just as many individual exceptions in one file as there would be number of seperate files anyway, I don't think I'd actually be better off anyway.

Thanks for the thoughts, really appreciated, but I think I've talked myself down now.

Cheers.
 
  


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
configure and check details of hba cards ?? compman Linux - Server 4 03-01-2012 11:10 AM
apache2.conf - Deny from ... lothario Linux - Server 2 09-15-2008 09:07 PM
vsftp.conf slackware -- local user login Pozican Linux - Software 3 05-08-2005 10:03 AM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM
Squid.conf - how to do customized and stardard access deny message x2000koh Linux - Networking 3 09-04-2002 09:53 PM

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

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