cannot telnet port 25 from other hosts
Tobias Speckbacher
TSpeckbacher at quova.com
Thu Jul 29 15:35:43 UTC 2004
wow /screams
-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com]On Behalf Of M Syafii
Sent: Thursday, July 29, 2004 6:57 AM
To: General Red Hat Linux discussion list
Subject: Re: cannot telnet port 25 from other hosts
On Wed, 28 Jul 2004 14:25:03 +0000
"ssoss S" <sctssoss at hotmail.com> wrote:
> hi.. I found that I cannot telnet my linux box (fedora
>core1) via port 25 (SMTP) but the SMTP service is
>started. I can telnet to localhost via port 25. May I
>know where is the config to control and allow me to
>telnet mylinux 25 from other hosts??
>
>FYI, my sendmail version is
> [root at watcher root]# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 watcher.teasin.com ESMTP Sendmail 8.12.10/8.12.10;
>Wed, 28 Jul 2004 22:19:17
> +0800
i think you can use 3 options :
1. maybe you can try use tcpwrappers
please open /etc/hosts.allow
if you want allow computer with ip address 192.168.0.5 to
access telnet on your host
write :
telnetd:192.168.0.5
and open too /etc/hosts.deny to set default anything
access is restricted
write:
ALL:ALL
2. or you can use xinetd
open /etc/xinetd.d/telnetd
# default: on
# description: The telnet server serves telnet sessions;
it uses \
# unencrypted username/password pairs for
authentication.
service telnet
{
flags = REUSE
log_on_failure += USERID
disable = yes
socket_type = stream
user = root
server = /usr/sbin/in.telnetd
wait = no
only_from = 192.168.0.5
}
3. or you can use iptables
#/sbin/iptables -A INPUT -p TCP -s 192.168.0.5 --dport 23
-j ACCEPT
===========================================================================================
"Gabung INSTANIA, dapatkan XENIA. Daftar di www.telkomnetinstan.com, langsung dapat akses Internet Gratis..
Dan ..ikuti "Instan Smile" berhadiah Xenia,Tour S'pore, Komputer,dll, info hub : TELKOM Jatim 0-800-1-467826 "
===========================================================================================
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list