You are not logged in.

#1 2005-01-06 11:40:30

carl
Member
From: Denmark
Registered: 2004-02-21
Posts: 31
Website

Turn off service and port

Hello
I am workstation user. I am  new to Arch . I come from slackware, but i can´t figure out to turn service and port of in Arch

In Slackware I use the following comands:

Block off all in /etc/inetd.conf

Block off in  /etc/services everything except

ssh         22/tcp    #Secure Shell Login
ssh         22/udp    #Secure Shell Login
syslog        514/udp

And then run the comand /etc/rc.d/rc.inetd restart

But /etc/inetd.conf  and  /etc/rc./rc.inetd  don´t  excist in Arch :?:

How do I use this in Arch Linux

Offline

#2 2005-01-06 12:37:47

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Turn off service and port

carl wrote:

But /etc/inetd.conf  and  /etc/rc./rc.inetd  don´t  excist in Arch :?:

How do I use this in Arch Linux

Arch uses xinetd by default.

EDIT:
Oh, and you don't have to block anything if you didn't enable xinetd in your /etc/rc.conf DAEMONS line. If you did enable it just edit xinted config like you did with inetd. I guess you can also restart xinetd with /etc/rc.d/xinetd restart.
More info:
http://www.archlinux.org/news.php?skip=90
http://bbs.archlinux.org/viewtopic.php? … netd+inetd

Also check other daemons that may be running without xinetd with open ports. Disable everything you don't need in rc.conf and/or configure daemons' configs or use iptables to restrict access. There is a lot of info out there in the forums and google of course.

Offline

#3 2005-01-06 12:44:21

carl
Member
From: Denmark
Registered: 2004-02-21
Posts: 31
Website

Re: Turn off service and port

But have´t xinetd, either :?:

Offline

#4 2005-01-06 12:58:28

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Turn off service and port

carl wrote:

But have´t xinetd, either :?:

Xinetd is not really required to run network applications.
Most of them (at least latest versions) can run as daemons and open ports by themselfs.

Check if you have xinetd installed with pacman -Qi xinetd. You can always install it and enable in rc.conf DAEMONS if you want to. Then you should start the daemon (like ssh) through xinetd config not rc.conf DAEMONS.

For more info just go to http://www.xinetd.org/ and follow docs and samples. Also some samples are somewhere in arch forums IIRC (search for xinetd).

EDIT: and also check with netstat what ports are opened.

Offline

#5 2005-01-06 16:01:57

carl
Member
From: Denmark
Registered: 2004-02-21
Posts: 31
Website

Re: Turn off service and port

Thanks for your information.
I love Arch more and more smile

Offline

Board footer

Powered by FluxBB