Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Rh Telnet Server, I need some help plz
Bourne_Again
post Aug 19 2003, 06:38 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 19-August 03
Member No.: 1,282



I have recently installed rh7 on my old aptiva about a month ago. I knew i had to beef up my security from the defaults, so i started scanning myself and found that port 23 was up and running. I had my buddy check on it for me and sure enough i've got port 23 open to the world. Just begging for someone to get shell access. still being new to linux can you inform me how to change this and drop the telnet service, because i don't want it up for sure. And anyone thinking about "helping" me out, i've got dial up sadly so my IP changes everytime i dial up, too bad though. i thank you for your help ahead of time
Go to the top of the page
 
+Quote Post
Joey
post Aug 19 2003, 07:04 PM
Post #2


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



Hi,

I believe Red Hat 7 used /etc/xinetd.d/ to control these types services. You should have a file called telnet in /etc/xinetd.d/

In the file you should see:


disable = no

Change this to:

disable = yes

And then run /etc/init.d/xinetd restart

You can try and telnet to localhost and see if its still open.


In case RH7 doesn't use /etc/xinetd, you might have a file called /etc/inetd

In this file there will be a line with telnet in it. Comment it out (put a # before the line) and then run:

killall -HUP inetd

And this should take care of the problem.

Additionally you can remove the telnet-server package by running the following command as root:

rpm -e telnet-server

You might also want to install a firewall on the box, you can find a few pre-made scripts on our Guides Page.

Hope this helps,
Go to the top of the page
 
+Quote Post
hughesjr
post Aug 19 2003, 08:45 PM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



you also probably want to use either IPCHAINS or IPTABLES as a firewall for your RedHat box. Everything you could ever want to know about IPTABLES you can find here:

http://www.linuxguruz.com/iptables/

If your current kernel can use IPTABLES, then I would use it instead of IPCHAINS ....

to see if you can use iptables, use the command:

iptables -L

If you get some results like this:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

then you can use IPTABLES.....

If you are not using any firewall and also not keeping up with all security updates, it will be very easy for people to compromise your system and login as root remotely ... here are just a couple examples:

Remote Root Compromises


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Bourne_Again
post Aug 28 2003, 02:32 PM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 19-August 03
Member No.: 1,282



I know i posted this a long time ago, thank you for responding. As it turns out, RH7 already uses IPchains, and i found they way to turn whichever services i want. I thank you once again for your responces.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 12:04 AM