- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Disable telnet from certain ip
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 07:38 PM
12-02-2003 07:38 PM
Disable telnet from certain ip
I want to disable telnet in a linux box, but only from certains Ip´s. I know to do this in HPUX, in the file /var/adm/inetd.sec, but how can I do it in red hat?
Th
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 07:51 PM
12-02-2003 07:51 PM
Re: Disable telnet from certain ip
If you are not using xinetd, I think you are ought of luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 07:59 PM
12-02-2003 07:59 PM
Re: Disable telnet from certain ip
I use xinetd, but wat I want is to specify "not from" or something like this, instead of "only from"
Thanks and regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 08:08 PM
12-02-2003 08:08 PM
Re: Disable telnet from certain ip
I´ve found it. Is putting the clause "no_access" in telnet file.
Thxs & regar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 12:49 AM
12-03-2003 12:49 AM
Re: Disable telnet from certain ip
telnet:ALL
This denies telnet to all systems.
In hosts.allow you can add.
telnet:123.123.123.
telnet:servera.abc.com
This will allow only those systems/subnets/IPs listed in the hosts.allow to access your system using telnet.
--Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 02:26 AM
12-03-2003 02:26 AM
Re: Disable telnet from certain ip
my idea would be to add this to /etc/profile:
REMOTEIP=expr "`who -m`" : ".*(\(.*\)).*"
case ${REMOTEIP} in
"10.0.0.1"|"10.0.0.2") echo sorry!!;exit;;
esac
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 11:33 AM
12-03-2003 11:33 AM
Re: Disable telnet from certain ip
James mentioned one.
You found a second.
The third is just to firewall it out with 'iptables', i.e.:
iptables -IN INPUT -j DROP -s
Fun huh? :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 07:32 PM
05-10-2004 07:32 PM
Re: Disable telnet from certain ip
I have done it by using webmin utility ( GUI Based System Admin Utility )
In this utility login as root and go to Networking===>Linux Firewall menu
And make one chain to reject from a particular ipaddress. Eg:
Reject If protocol is TCP and source is 192.168.178.134 and input interface is eth1 and destination port is 23
Its very easy...
Sujith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 07:51 AM
05-11-2004 07:51 AM
Re: Disable telnet from certain ip
man 5 hosts_access on newish redhat systems will take you to the man page.
You can also look at /etc/hosts.allow and /etc/hosts.deny to see a template.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2004 06:06 PM
05-12-2004 06:06 PM
Re: Disable telnet from certain ip
I think the best to accomplish this in your existing setup would be using the /etc/hosts.allow and /etc/hosts.deny files.
Edit the file /etc/hosts.allow and make an entry ALL. Then edit file /etc/hosts.deny and make an entry for all the IP addresses which need to be blocked.
Let me know if you have any specific questions.
regards
Mobeen