- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Securing Telnet/Ftp commands in Linux
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
11-20-2001 09:18 PM
11-20-2001 09:18 PM
Securing Telnet/Ftp commands in Linux
I have a redhat linux box which is serving as a server in our office network. What i want is that , i want to protect commands such as ftp and telnet from normal users and can only be executed by root user. That is , i dont want any of the normal user logs into this system can telnet or ftp from this linux box to other systems in the same network.At the same time , i need ftp and telnet servers running on this linux box.Simply, i dont want ftp and telnet clients can be used from this linux box by normal users.
Moreover, i dont want to use chmod 700 for these commands since there is a possibility that users can copy these commands from other linux systems to this and start using ftp and telnet clients, since the linux box is running ftp and telnet servers.
If anyone can help me on this i will be really greatfull and thanks in advance ..
Gopinath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2001 03:13 AM
11-21-2001 03:13 AM
Re: Securing Telnet/Ftp commands in Linux
TIA
Paulo Fessel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2001 05:36 AM
11-21-2001 05:36 AM
Re: Securing Telnet/Ftp commands in Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2001 08:01 AM
11-21-2001 08:01 AM
Re: Securing Telnet/Ftp commands in Linux
It's fairly easy if you want to block ALL outgoing telnet and ftp. You just need to add some rules to your iptables. However, blocking connections on a 'per user' basis would be difficult.
You can try the 'owner' iptables module. This module allows you to block outgoing packets generated by a specific user. I've personally never used it but it may be worth a try in your case.
Regards,
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2001 08:25 AM
11-21-2001 08:25 AM
Re: Securing Telnet/Ftp commands in Linux
I've done some tests here. There iptables rules should work for you:
iptables -A OUTPUT -p tcp --dport telnet -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -p tcp --dport ftp -m owner --uid-owner 0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -p tcp --dport ftp -m state --state NEW,ESTABLISHED,RELATED -j REJECT
iptables -A OUTPUT -p tcp --dport ftp -m state --state NEW,ESTABLISHED,RELATED -j REJECT
These rules should allow incoming telnet/ftp connections from any user and block outgoing connections to telnet and ftp that do not come from user root. I believe that kills your problem.
Note: If you see an error on redhat when you run iptables, try to remove the 'ipchains' module (I'm supposing here you have kernel 2.4). You can remove the ipchains module with:
rmmod ipchains
And try the commands above again. If that works, you may consider removing ipchains permanently from your system and using iptables only.
Regards,
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2001 08:33 AM
11-21-2001 08:33 AM
Re: Securing Telnet/Ftp commands in Linux
Oh boy... The cut & paste operation mangled my script. Please disconsider the script in the message above. Use the one attached on this message.
Regards,
Paga