Linux / UNIX Tech Support Forum
This is a discussion on Limiting Irc connections within the Ubuntu / Debian forums, part of the Linux Distribution category; 1. Does any one have clue idea how can i see how many connections a ssh user is using in ...
Register free or login to your account to remove all advertisements.
|
|||||||
| Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
1. Does any one have clue idea how can i see how many connections a ssh user is using in the moment?
2. Does any one have some script that is limiting the irc connections per user, or any knowledge how to control them ? |
|
||||
|
Q1)
who -r or watch "lsof -i | grep ssh" Q2) you can limit no of connections using maxlogins option in /etc/security/limits.conf
__________________
Thanks, Surendra Kumar Anne Linux: Fast, friendly, flexible and .... free! Support Open source. http://www.linuxnix.com |
| The Following User Says Thank You to kumarat9pm For This Useful Post: | ||
ProfiMK (19th February 2010) | ||
|
|||
|
Quote:
Q2 maxlogins will restrict how many connections are going out on irc, or just from how many ip's can login on shell @ same time, or both? Last edited by ProfiMK; 19th February 2010 at 02:54 AM. |
|
||||
|
Code:
[root@test ~]# lsof -i | grep ssh sshd 2548 root 3u IPv6 5505 TCP *:ssh (LISTEN) sshd 16070 root 3u IPv6 281966 TCP test.example.co.in:ssh->abc.example.co.in:36533 (ESTABLISHED) the limits file which i mention is to where the connections are established.. not from where.. Can i have following details for understanding..? 1)if i have a client and server(irc provider).. where you want to restrict users? is it on server side or client side?
__________________
Thanks, Surendra Kumar Anne Linux: Fast, friendly, flexible and .... free! Support Open source. http://www.linuxnix.com |
|
|||
|
I want to limit the connections that shell user will use to irc server. For ex. eggdrops i restric by limiting the process number, but psybnc is taking only 1 process but from it, thay can make a lot of connections on irc. And that is what i want to limit the outgoing connections.
Last edited by ProfiMK; 20th February 2010 at 12:39 PM. |
|
|||
|
Quote:
|
|
||||
|
Try iptables which will restrict outgoing IRC connections.
__________________
Vivek Gite |
![]() |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Limiting a directory size | vamsi | CentOS / RHEL / Fedora | 5 | 12th February 2010 07:42 PM |
| Multiple ADSL internet connections one pc one lan | jritas | Networking, Firewalls and Security | 2 | 31st January 2010 10:47 PM |
| iscsi SAN connections | lsysamc | Ubuntu / Debian | 4 | 10th April 2009 09:17 PM |
| Limiting RAMFS usage | sathiya | Getting started tutorials | 1 | 28th March 2008 09:11 AM |
| Postgres idle connections | kasimani | Databases servers | 1 | 14th May 2007 05:58 PM |