Operating System - Linux
1829014 Members
2569 Online
109986 Solutions
New Discussion

Re: Restrict outgoing telnet but allow incoming telent on same box

 
Jason_97
Occasional Contributor

Restrict outgoing telnet but allow incoming telent on same box

How do I allow users to telnet into one specific server for which they are authorized but prevent them from being able to telnet from that box to other servers ? Also, will SSH or NIS+ help?

Thanks a lot.
2 REPLIES 2
Jonathan Sharp_1
New Member

Re: Restrict outgoing telnet but allow incoming telent on same box

Move the telnet binary to somewhere else (to your home directory per say. But if you're trying to do any sort of control, look at chrooting a user's shell and remove the telnet binary from the chroot. See http://ibiblio.org/pub/Linux/docs/howto/Chroot-BIND-HOWTO (while this is chrooting bind, it should get you started in the right direction)
Stuart Browne
Honored Contributor

Re: Restrict outgoing telnet but allow incoming telent on same box

The other option is a network/firewall option, deying anything not bound for the local interfaces with a destination port of 23 (telnet).
One long-haired git at your service...