- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to limit telnet session from some designat...
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
06-08-2005 03:23 AM
06-08-2005 03:23 AM
How to limit telnet session from some designated clients ?
I know the IPs and the Hostnames of those clients.
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 03:34 AM
06-08-2005 03:34 AM
Re: How to limit telnet session from some designated clients ?
iptables -I INPUT -s 0/0 -p tcp --dport 23 -j DROP
iptables -I INPUT -s
... repeat for each ip address
Use -A in a firewall startup script.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 03:40 AM
06-08-2005 03:40 AM
Re: How to limit telnet session from some designated clients ?
thanks a lot !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 04:23 AM
06-08-2005 04:23 AM
Re: How to limit telnet session from some designated clients ?
you can use host access control method to deny access. you can deny access to telnet sessions by putting entries in /etc/hosts.allow and /etc/hosts.deny
check man hosts.allow and hosts.deny for more information.
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 04:50 AM
06-08-2005 04:50 AM
Re: How to limit telnet session from some designated clients ?
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 06:43 AM
06-08-2005 06:43 AM
Re: How to limit telnet session from some designated clients ?
If telnet is configured in xinetd on your system, you can do what you want using only_from parameter on the configuration file.
man xinetd.conf
will help you.
regards,
xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 07:41 AM
06-08-2005 07:41 AM
Re: How to limit telnet session from some designated clients ?
HP-UX has a file called /var/adm/inetd.sec
This lets you allow and deny hosts by service name AND ip address.
I can't find the functional equivalent in Linux.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 05:19 PM
06-08-2005 05:19 PM
Re: How to limit telnet session from some designated clients ?
hosts.allow and hosts.deny can be configured for individual services. check 'man hosts_access' and 'man hosts_options' to get more info on this.
for your case, you can use like this:
/etc/hosts.allow:
in.telnetd: ALL EXCEPT HOST1, HOST2
you can also setup to send mail to the administrator when some one from the exception list trying to access
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:02 AM
06-09-2005 01:02 AM
Re: How to limit telnet session from some designated clients ?
u can use iptables to block /allow specific connections. The iptables rpm will be installed by default mostly, otherwise install the rpm . Edit the /etc/sysconfig/iptables file to include ur rules. Note that the rules will be analyzed from top to bottom in that order . So allow connections first , then deny the connections, other wise all the connections will be denied at the first rule set itself.
the entries in iptables file will be like this ...for ur setup..
*filter
-A INPUT -p tcp -m tcp -s
.....add entries for each ip....
-A INPUT -p tcp -m tcp -j REJECT --syn
Dear SEP,
Ur idea is correct but it will not allow any telnet connections. The order should be reversed as the rules will be analyzed from top to bottom, in ur reply the connections will be rejected at the very first comparison. The remaining rules will not be checked.