Re: cannot telnet port 25 from other hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 28 Jul 2004 14:25:03 +0000
 "ssoss S" <sctssoss@xxxxxxxxxxx> 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@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@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux