You are not logged in.

#1 2007-11-01 19:08:44

Caspian
Member
Registered: 2007-05-22
Posts: 263

Telnet, ftp, etc.

How can i disable network ports, for example telnet, ftp etc. ? In Slackware i can do this through /etc/inetd.conf. How can i achieve this in Arch?

Offline

#2 2007-11-01 19:43:32

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Telnet, ftp, etc.

If you don't start a telnet or ftp server, they're not running, thus there are no ports to "disable". It's that simple.

Offline

#3 2007-11-02 09:44:09

Caspian
Member
Registered: 2007-05-22
Posts: 263

Re: Telnet, ftp, etc.

That's not true. If i don't disable telnet port then other computers which are in the same network as i am can log on my computer through telnet. Same is with ftp, sftp etc. At least this is the case with Slackware...

Last edited by Caspian (2007-11-02 09:45:07)

Offline

#4 2007-11-02 10:59:26

baude
Member
From: France, Toulouse
Registered: 2007-08-22
Posts: 18

Re: Telnet, ftp, etc.

You can explicitly disable these ports via the conf file associated to the service in xinetd, for instance /etc/xinetd.d/telnet for telnet.
Here is a sample file /etc/xinetd.d/telnet which disables telnet :

service telnet
{
    flags            = REUSE
    socket_type        = stream
    wait            = no
    user            = root
    server            = /usr/sbin/in.telnetd
    log_on_failure        += USERID
    disable            = yes
}

so just put disable = yes to do that.

Offline

#5 2007-11-02 12:12:46

Caspian
Member
Registered: 2007-05-22
Posts: 263

Re: Telnet, ftp, etc.

Tx baude. I must say that this is solved in Slackware more elegantly... I presume that this is the case for all ports (ftp, sftp, ssl etc..).

Offline

#6 2007-11-02 12:33:12

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: Telnet, ftp, etc.

Caspian wrote:

That's not true. If i don't disable telnet port then other computers which are in the same network as i am can log on my computer through telnet. Same is with ftp, sftp etc. At least this is the case with Slackware...

That may be the case with Slackware, but it is not the case with Arch. Arch installs no servers by default. You have to manually install, configure, and start any servers you want to run.

Offline

Board footer

Powered by FluxBB