LinuxQuestions.org
Help answer threads with 0 replies.
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-27-2006, 10:32 AM   #1
cachemonet
Member
 
Registered: Jan 2006
Distribution: Various versions of Red Hat Fedora Core and Ubuntu
Posts: 40

Rep: Reputation: 15
Restrict login by login from single IP


Without getting into the finer details, here is what I need. I have a need to restrict telnet access ( I know the drill but it does not apply here)for a login by username from a single IP address. In other words I know multiple accounts are going to access a box. This box will see the incoming IP as 1.2.3.4. All of the accounts are valid accounts. They may be accessing the box from other ip’s. and they will continue to have a need to do so. Some people will still need to access the box from 1.2.3.4 as well as from other host systems. IPCHAIN rules do not apply here due to the nature of the application. What I basically need is something along the lines of /etc/host.deny with some if then else logic that says an account is ok to login only if it is not from a single IP (while others may still be accessing from it from 1.2.3.4) I know it is asking a lot and may not be possible without heavy customization. TIA
 
Old 01-27-2006, 10:47 AM   #2
cachemonet
Member
 
Registered: Jan 2006
Distribution: Various versions of Red Hat Fedora Core and Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
I may have answered my own question but I am not certain how to go about it. What if I had a login script for the users account that checked what the remote IP address is. If the remote address is 1.2.3.4. it displays a nice message and kindly logs them off. Obviously I would have to have access restrictions but, that may work (but I am a bad scripter)
 
  


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
Single login David@330 Linux - Newbie 1 05-25-2005 12:19 PM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
Restrict wine app to single virtual desktop ? td_miles Fedora 3 08-06-2004 05:48 PM
Getting multiple consoles on single login Mork Linux - General 7 06-02-2004 02:21 AM
Need to restrict login times for vsftp thebrit123 Linux - Software 0 06-09-2003 09:27 AM

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

All times are GMT -5. The time now is 06:25 PM.

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