mickalo

Well-Known Member
Apr 16, 2002
782
5
318
N.W. Iowa
Need to enable telnet temporarly.. and followed everything need to enable it, opened port 23 in our firewall IG_TCP_CPORTS (inbound ports), restarted xinetd and apf, changed the disable=yes to no in the /etc/xinetd.d/telnet file, but it still won't let me telnet into the server... just need to enable it, just incase I get locked out of ssh while making some changes.

is there something I missed ?

TIA,
Mickalo
 

akhthar

Member
May 4, 2004
23
0
151
bangalore
Hello,

It looks like you have set the iptables in your system. So check it out. Mostly there you have to allow port number 23.

:)
 

akhthar

Member
May 4, 2004
23
0
151
bangalore
Hello,

I had a similar problem before. But at that time I used the apf and iptables for security. And I have enabled that port in apf. And I was using iptables to block all ports other than allowed ports. So I added a line to allow access to that port.

:)
 

mickalo

Well-Known Member
Apr 16, 2002
782
5
318
N.W. Iowa
Originally posted by akhthar
Hello,

I had a similar problem before. But at that time I used the apf and iptables for security. And I have enabled that port in apf. And I was using iptables to block all ports other than allowed ports. So I added a line to allow access to that port.

:)
what line did you add and where ??

Mickalo
 

akhthar

Member
May 4, 2004
23
0
151
bangalore
Hello,

In /etc/sysconfig/iptables

[0:0] -A INPUT -p tcp --dport 23 -j ACCEPT
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,010
3
168
Looks like you have everything.

Did you run:

iptables -A INPUT -p tcp --dport 23 -j ACCEPT

just to make sure it was opened?

If that doesn't work, connect via SSH try to connect via telnet and take a look at the output of

tail /var/log/messages

and

tail /var/log/apf_log

for more insight.
 

mickalo

Well-Known Member
Apr 16, 2002
782
5
318
N.W. Iowa
Originally posted by SarcNBit

Did you run:

iptables -A INPUT -p tcp --dport 23 -j ACCEPT

just to make sure it was opened?
I assume this would be the command line to open the port w/iptables ??

then how would one drop/close the port afterwards so the port would no longer be open ??

Mickalo
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,010
3
168
Reversing the changes you made and restarting apf should do the trick, but if you want to do it explicitly just change the ACCEPT to DROP ;)
 

sebby

Well-Known Member
Jun 15, 2004
70
0
156
Same thing here, I need to enable telnet temporarly to prevent being locked out of the box while I'm securing my server (changing ssh config and all...)

However unable get telnet working... my server is not listening on port 23...

Any suggestions ?

Thanks in advance.

Seb
 

sebby

Well-Known Member
Jun 15, 2004
70
0
156
But for security issues, any reason why telnet is not enabled in original settings of cPanel (on Fedora Core 1) ? I have yet no firewall installed and I'm in the process of securing my server's box (working around ssh : changing ip, port, disable root login, etc...). Want to enable telnet during this process in case I do something wrong... Don't understand why Telnet it is not working and didn't find anything related on this forum. Looks like everything sent to port 23 is dropped...

Any suggestions would be most appreciated.

Seb

p.s. I tried the workarounds described above in this thread but no success