Visit Our UNIX and Linux User Community


Restricting Telnet to IPs


 
Thread Tools Search this Thread
Special Forums Cybersecurity Restricting Telnet to IPs
# 1  
Old 07-02-2002
Restricting Telnet to IPs

Dear Experts,

Is there a way to restrict telnet to specific IPs

Thanks
# 2  
Old 07-02-2002
Pls post in one forum at a time. Pls dont post duplicate posts.

https://www.unix.com/unix-for-dummies-questions-and-answers/6912-restricting-telnet-ips.html
# 3  
Old 07-02-2002
Sorry Mr Killerserv...That was my first posting..I was not knowing
# 4  
Old 07-05-2002
blocking telnet

You can block outgoing telnet to a specific host from your machine by blocking data that's going out of your machine to that external host' port 23. If you are using Linux and iptables, you can use this

iptables -A OUTPUT -d <ip-of-blocked-host> --dport 23 -j DENY

If you are using Solaris, then you can do the blocking with ip filter.

-Sanjay
# 5  
Old 07-05-2002
blocking telnet

You can block outgoing telnet to a specific host from your machine by blocking data that's going out of your machine to that external host' port 23. If you are using Linux and iptables, you can use this

iptables -A OUTPUT -d <ip-of-blocked-host> --dport 23 -j DENY

If you are using Solaris, then you can do the blocking with ip filter.

-Sanjay

Smilie
# 6  
Old 07-30-2002
Hammer & Screwdriver

If you feel telnet service no need. Let's shutdown it for safe...

Let's use SSH...Bester and Safer than Telnet
# 7  
Old 08-07-2002
they'res always the old and tired hosts.deny file, just add the following to it:
telnet: partialhost.domain.com, somedomain.com, somedude.com

but, you want to restric to where everyone *BUT* someone can get into telnet, then you should use the following rule in hosts.allow:
telnet: hostname.com
and then set hosts.deny to:
telnet: ALL

by the way, they are in the /etc directory.
cerberusofhate

Previous Thread | Next Thread
Test Your Knowledge in Computers #468
Difficulty: Medium
Both Ethernet and IPv4 use an all-zeros broadcast address to indicate a broadcast packet.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Restricting use of su - (Solaris 11)

OK. So I can prevent remote systems from logging in as root by uncommenting the CONSOLE entry /etc/default/login. BUT, is there a way to stop su - (when already logged in as own user)? The way we do it is to set up sudoers so users who need access can do sudo su - (2 Replies)
Discussion started by: psychocandy
2 Replies

2. UNIX for Dummies Questions & Answers

Difference Between Krb5-telnet And Ekrb5-telnet

Hi, I want to know the difference between these two services. Both are under xinetd. Both are used for enabling and disabling Telnet service. So, can somebody please explain me the difference between the two ? Thanks in advance :) (0 Replies)
Discussion started by: kashifsd17
0 Replies

3. Shell Programming and Scripting

restricting users

how can i make my users to not use particular commands in the network like:wall....... pl z help me regarding this (1 Reply)
Discussion started by: yashwanthguru
1 Replies

4. UNIX for Dummies Questions & Answers

Automatically login in the telnet from present telnet

Hi, I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password. But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies

5. Linux

Restricting IPs on Linux?

I have a need to allow only certain IP addresses to access a machine running Linux. I don't know how would i do it, not an expert at CMD? Thanks in advance for your help. (2 Replies)
Discussion started by: waqaslone
2 Replies

6. Shell Programming and Scripting

Webpage to Telnet via Perl and Expect: Telnet problem?

Somewhat long story: I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage. This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies

7. Solaris

restricting access

Hi All, I'm on Solaris 8, I need to provide Read-only access to a user to 2 directories only. Using rsh (restricted shell) as the user's login shell, I can restrict the user's access to a certain directory only, but how can I set in such a way that the user can access only the 2 directories... (4 Replies)
Discussion started by: max_min
4 Replies

8. UNIX for Dummies Questions & Answers

Restricting Telnet to IPs

Dear Experts, Is it possible to restrict telnet to specific ips in Digital Unix Thanks (4 Replies)
Discussion started by: geraldwilson
4 Replies

9. UNIX for Dummies Questions & Answers

Restricting access

I need to create a user that only has access to 1 directory (e.g. /vol/mita/test). The user needs to be able to rsh into that directory to run a script. The user should not be able to navigate to any other directories above /vol/mita/test. Any help would be appreciated! (4 Replies)
Discussion started by: ngagne
4 Replies

10. Cybersecurity

restricting access...

restricted access... Hi I need to restrict users shell access to only $HOME under /home for each user. I don't want them getting out of their own directories. From what I understand chroot is something I could use, but I want to avoid this since it involves creating symbolic links to a number... (9 Replies)
Discussion started by: alwayslearningunix
9 Replies

Featured Tech Videos