Operating System - Tru64 Unix
1752780 Members
6239 Online
108789 Solutions
New Discussion юеВ

Re: how to make user telnet from specific ipAddresses?

 
leyearn
Regular Advisor

how to make user telnet from specific ipAddresses?

how to make user telnet from specific ipAddresses?
from other IpAddresses are not allowed!

system Digital Unix 4.0D
2 REPLIES 2
Mark Poeschl_2
Honored Contributor

Re: how to make user telnet from specific ipAddresses?

You can use a shareware product like "TCP wrappers" to accomplish this. The functionality is not part of Tru64 itself in the older version you're using.
Ivan Ferreira
Honored Contributor

Re: how to make user telnet from specific ipAddresses?

You can create a script to check from where IP address is trying to logon the user. Then configure the script to be executed in the profile, if the IP address is not what you want, then run "exit".

For example:

# Configure the valid IP
VALID_IP=192.168.0.1

MYIP=`w |grep $USER | awk '{ print $3}'`
if [ "$MYIP" != "$VALID_IP" ]; then
echo "You are not allowed to logon from this IP adress"
exit
else
echo "Welcome $USER"
fi
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?