Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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?