is there anyscript to limit ip..

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting is there anyscript to limit ip..
# 1  
Old 01-12-2002
Tools is there anyscript to limit ip..

Hello All.

is there anyscript or way to limit hosts/ips for users?


# 2  
Old 01-12-2002
Are you asking how to limit the number of times a user can logon to a particular box?

If so, I believe that there is. I will have to lookup what file you need to create. Probably a file in /etc to configure it.

On HPUX, there is a file called /etc/sw-limit-login that can allow you to regulate users logins.

Of course, your version of UNIX may be different. Hope that gives you some info.
# 3  
Old 01-12-2002
Tools Onther

No ,

i want every user on my machine only have one ip host what we assing for him. and block him from access other hosts/ips .

for example : if we assing ip for Star,

that mean star cant use more than this ip what we give him, even if he try to hack anthor one.

hope u got me!

Last edited by star; 01-14-2002 at 11:52 AM..
# 4  
Old 01-15-2002
I am not really familiar with FreeBSD but most Unix systems have the concept of host.allow and hosts.deny which allow and deny hosts by IP or name respectively. You may want to check into this.
# 5  
Old 01-16-2002
Tools hey

thanks, but host.allow deny that use for out accessSmilie i want block inside users access

# 6  
Old 01-16-2002
OK, I'm trying to get this straight:
You have a user on your machine that is cracking accounts on other machines. You would like to limit where this user can go?

Frankly, I would eject this user right away! She is a liability to you and your organization. The first way I could think of, would be to use groups to allow execution of any client binary you want him away from (telnet, rlogin, ssh, etc...) by only that group. Add other users to that group, but disclude him from that group, so he can't even use them. Don't forget to remove access for compilers, ftp (inbound), perl, and even certain shells. (For example, some shells can communicate via a psuedo-device "/dev/tcp/host/port" that may allow some access....).

Best advice, rm -r /home/userdir... get rid of the punk.
# 7  
Old 01-17-2002
Tools nope.

now if we say u user on my machine and we assing for u for example ip :

and the machine have full calss c for

time u login to run eggdrop for example u can edit only eggdrop.conf and put on it for example ip the eggdrop gonna work fine with you

here is my problem i dont want users use more than what we assing for them hope u got me know!

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Maxuproc and limit

// AIX 6.1 & Power 7 server I have maxuproc set to 16384. lsattr -El sys0 -a maxuproc maxuproc 16384 Maximum number of PROCESSES allowed per user True What is the maximum number of maxuproc we can go for? If I increase maxuproc to the higher number, what would be ramifications? I... (1 Reply)
Discussion started by: Daniel Gate
1 Replies

2. Solaris


Hi, I can able to view the limit of ARG_MAX ENV variable using the command: getconf ARG_MAX can we modify the value of ARG_MAX somewhere or is that common value depending upon the version of kernel ? (1 Reply)
Discussion started by: penqueen
1 Replies

3. Solaris

Limit: stacksize: Can't remove limit

Hi all, I'm using to Solaris machine. When I run a simple script this messenger come out:"limit: stacksize: Can't remove limit". Any one know the way to resolve this problem without reboot the machine? Thanks in advance. (3 Replies)
Discussion started by: Diabolist9
3 Replies

4. Shell Programming and Scripting

Any limit on files

I am doing an ftp of around 1010 files and I am using mput for this. For some reason its only transferring 10 or 20 files and the rest are not getting transferred. There is some socket error in the log. is there an issue if we have more than 50 or so files for mput. here is the o/p in the log... (2 Replies)
Discussion started by: dsravan
2 Replies

5. Shell Programming and Scripting

How to limit output

hello, i'm trying to figure out a way to limit the output from an SQL query that is counting the number of occurances of a value in a field and the problem is when i run this query against a huge file with many unique values the output is pretty huge. Is there a way i can specifically LIMIT the... (2 Replies)
Discussion started by: bobk544
2 Replies

6. AIX

Limit logins to 1

Trying to limit 1 login per account... Setup: We have 2 auth logins, one to the AIX (telnet)then into a distribution mgmt software, the users do not have a shell to log into on the AIX itself, so placing a script such as: active=`who | awk '{printf",%s,\n",$1}' | grep ,$LOGNAME, | wc -l` ... (0 Replies)
Discussion started by: pheusion
0 Replies

7. SCO

limit telnet

Hello Every One. :D Can any 1 tell how to configure unix so that only specified IP's can connect to that machine using telnet. :rolleyes: I guess there is also sum stratgy to limit it by time. such as from 9 a.m to 5 p.m. :eek: This is imp 4 me. plz help Thanks Shaikh Naveed Islamabad.... (5 Replies)
Discussion started by: shaikh.naveed
5 Replies

8. UNIX for Dummies Questions & Answers

Directory limit

I'm setting up a file server for users. Does anyone know how I can limit each users directory to 500MB? -------------- Runing Solaris 8 (3 Replies)
Discussion started by: merlin
3 Replies

9. UNIX for Dummies Questions & Answers

Limit command

I have installed vnc on my computer but do not want every one to be able to incite a vncserver how can I limit users of the vncserver command to only a specifc group? (1 Reply)
Discussion started by: macdonto
1 Replies

10. UNIX for Advanced & Expert Users

group limit

hi, i have in my /etc/group an unix group full. i need to add new user in this group. users need to have the same gid and the same name... is it possible ? can i create a concatenation with an other group or something else ? thx (1 Reply)
Discussion started by: farzolito
1 Replies
Login or Register to Ask a Question