LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-13-2015, 03:23 AM   #1
mkp
Member
 
Registered: Jul 2008
Posts: 57

Rep: Reputation: 15
Limit user to login from different ip adress in same time?


Hi,

Is it possible to block certain user to login in debian server from different ip adress in same time?

Thanks.

 
Old 08-13-2015, 05:35 AM   #2
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by mkp View Post
Hi,

Is it possible to block certain user to login in debian server from different ip adress in same time?

Thanks.

Yup. It is: http://www.cyberciti.biz/faq/iptable...-limits-howto/
 
Old 08-13-2015, 06:27 AM   #3
mkp
Member
 
Registered: Jul 2008
Posts: 57

Original Poster
Rep: Reputation: 15
Hm, maybe i didn't explain very well. I have local server with specific software. Users connect to this server by putty and they can work with theirs accounts from different pc's. But this software has license witch allow to connect only from 1 pc at time. I want to block certain account to login at same time from 2 difference ip adress. I read how to block user with limits.conf but this is useless for me.
 
Old 08-13-2015, 09:13 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by mkp View Post
But this software has license witch allow to connect only from 1 pc at time. I want to block certain account to login at same time from 2 difference ip adress.
So, it's a single-use only system?
If you want to block 'certain account' from 2 IPs, talk to them. Tell them it's a single-use system and they're holding up some one else's work with 2 sessions from 2 IPs.
 
Old 08-13-2015, 12:03 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,359
Blog Entries: 4

Rep: Reputation: 3822Reputation: 3822Reputation: 3822Reputation: 3822Reputation: 3822Reputation: 3822Reputation: 3822Reputation: 3822Reputation: 3822Reputation: 3822Reputation: 3822
It superficially seems to me that the right way to approach this would be through a PAM (Pluggable Authentication Modules) module, but I do not readily see one in the list. Perhaps a new one could be written.
 
Old 08-14-2015, 01:03 AM   #6
mkp
Member
 
Registered: Jul 2008
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Habitual View Post
So, it's a single-use only system?
If you want to block 'certain account' from 2 IPs, talk to them. Tell them it's a single-use system and they're holding up some one else's work with 2 sessions from 2 IPs.
They forget to logout from first pc and login from second pc with same account. I want to prevent that, but maybe this is imposible. It's easy with limits.conf, but it's not solution for me.

Last edited by mkp; 08-14-2015 at 01:04 AM.
 
Old 08-14-2015, 07:35 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Sad that the program/utility/whatever doesn't have an idle-check and logs them out automatically.
I think the issue could be solved by user "education".
 
Old 08-15-2015, 01:22 AM   #8
tux111
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Xubuntu
Posts: 81

Rep: Reputation: Disabled
Maybe you want to use something like this http://chris-blog.net/2015/08/users-...imultaneously/ as a cronjob and terminate sessions with multiple logins.
 
Old 08-16-2015, 02:45 PM   #9
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
You are aware that if they are logging in from 2 separate machines on a NAT that you will only see the external IP address, right??!?! If what you are doing is checking for the IP address, it wouldn't solve that problem,... only the problem of them logging in from two different locations.
 
  


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
SQUID - connection limit per user not per IP adress iksik Linux - Software 3 03-10-2010 09:52 AM
Limit multiple SSH login by the same user yanziqiang Linux - Security 10 12-22-2007 05:06 AM
Can I limit time a user can be logged in ? glenn69 Linux - General 2 01-15-2007 09:26 PM
Limit time for a user per day davholla Linux - General 11 08-22-2004 02:14 PM
Squid - Maximum time limit per user vkothiyal Linux - Software 0 05-29-2004 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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