Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
when I try the following:
# telnet localhost 25
the machine responds with:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Then it just hangs there doing nothing, until I hit enter and return to a root prompt.
I used a port checker from another server (not on my network) and it replyed "port 25 open and ready for connections"
I tried:
# telnet relay-test.mail-abuse.org
and recieved:
telnet: telnet: bad port
I tried:
# telnet localhost 110
and recieved, with no delay:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 localhost.localdomain v2001.78rh server ready
can anyone tell me what is up with port 25???
Does localhost need a reverse dns entery in the bind zone for this port to work???
where do I check open or closed ports for telnet???
Port 25 is smtp, thats your "outgoing" mail server. It's not "hanging there" when you connect, it's waiting for input
telnet in and issue:
HELO local.domain.name
MAIL FROM: your@emailaddy.net
RCPT TO: anotheruser@emailaddy.net
DATA
Type a test message ...anything will do, then hit enter.
type a "." on a blank line to tell the server you're done, it will attempt to send the message...
issue the command "QUIT" to exit from the terminal...
congrats, you've just sent your first email via a telnet connection
110 is your pop3 server, you can:
USER username
PASS password
LIST
UIDL # where # is the number of the message in the list to view
Would someone PLEASE show me what a "/etc/xinetd.d/telnet" file should look like. I made one up using a copy of the one for ipop3 and can not fine one anywhere I search on the net.
telnet localhost 25 will now send out mail (following ZEOS's example...thanks zeos) because I uninstalled postfix and reinstalled sendmail 8.12.8.. so my web pages would send out signup emails again and it works as it should.
maybe now it is not a telnet problem but a firewall problem.
does any know about the congif file for:
APF (Advanced Policy Firewall) - 0.9.4 from r-fx.org ???
Distribution: Red Hat - 6.2,7.3,9.0,FC3,FC4, FC5, Debian-3.1, Ubuntu 7x,8x,10x, DSL
Posts: 14
Rep:
hivtop,
check out /etc/services
This contains the standard ports for use in networking.
telnet normally uses port 23, which means that a telnet server will listen on port 23 for incoming connections (actually, it's not telnet, it's inetd or xined, the super server).
When you telnet <name> <port>, it connects to the forced port you specify instead of port 23, so you are establishing a connection to a service that telnet does not normally connect to.
if you want to check out the ports that are configured for use on your computer, check out
/etc/inetd.conf or /etc/xinetd.d/*
Exceptions to this are posgresql, sendmail, and ssh, samba (I am sure I am missing a few).
I am not sure I answered your question. If you want to close the ports, fire up ipchains. There are many good firewall rules to lock your box down tight if that is your desire.
Distribution: Red Hat - 6.2,7.3,9.0,FC3,FC4, FC5, Debian-3.1, Ubuntu 7x,8x,10x, DSL
Posts: 14
Rep:
Here's my telnet file
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = yes
}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.