Re: tcpsvd vs. tcpserver

Vincent Danen <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
On 8-Oct-04, at 1:48 AM, Gerrit Pape wrote:

>>> If an ipsvd has trouble opening or reading the instructions directory
>>> or cdb, it closes/drops the connection.  So if the cdb doesn't exist,
>>> the connection is denied; a feature similar to tcpserver's -X option
>>> isn't supported currently.
>>
>> Ok, but looking at:
>>
>> http://smarden.org/ipsvd/examples.html
>>
>> I see it state for the in.telnetd example that by default all
>> connections are permitted.  It's not using a cdb but the ./peers
>> directory.  If I have an empty directory that ipsvd is looking at, 
>> does
>> it allow all connections?  It seems to imply that.  But when I look at
>> the ipsvd-instruct.5.html page I see the "catchall file 0", which 
>> seems
>> to contradict what I thought the example page implied.  (I'm likely
>
> If the directory or cdb specified as command line option doesn't exist,
> it's an error, and ipsvd drops connections; if the directory exists, 
> and
> is empty, the default action is taken: allow all connections.  You can
> override the default action with the catchall file; an empty file ``0''
> with mode 400 doesn't change anything (allow connections), but if you
> make it mode 000 for example, the default now is to drop connections.

Yup, I got that.  I've made, by default, the directories with an empty 
'0' file in them.  Works great.

>> I think using the directory makes more sense since the directory needs
>> to exist anyways (I can see it being different for a large directory
>> with a lot of rules, but I think by and large the directory method
>> would be the simplest).
>
> One downside is that you shouldn't edit the files in the instructions
> directory in place, ipsvd can open and read them at any time when it's
> running.

Hmmm...  I'll make sure to include a warning regarding that.

Thanks!  Annvix no longer has a dependency on daemontools or ucspi-tcp 
now... =)  Very nice!

-- 
Annvix - Secure Linux Server: http://annvix.org/
*Please note gpg keyid FE6F2AFD has been replaced with keyid FEE30AD4*
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C  A2BC 2EBC 5E32 FEE3 0AD4}
PGP.sig (application/pgp-signature, 186 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.