Re: Interface += question.
Andrew McCall <[email protected]> 07 Jul 2003 11:29:00 +0100
| Newsgroups | gmane.network.xinetd |
|---|---|
| Organization | Oldham Metropolitan Borough Council |
| Message-ID | <[email protected]> |
On Mon, 2003-07-07 at 10:27, Andrew McCall wrote:
> Hi Folks!
Hi Again,
It seems that a little more research in Google Groups finally answered
my question. I thought I would reply to myself to save other people the
trouble, and to get the solution down in the archives.
> Can someone please tell me if I am using xinetd.conf wrong :)
Yes I am, to have a service binded to some, but not all IP addresses on
the system you need to redefine the service giving it a unique "id" and
specifically binding it to a different IP address each time. This could
be messy if you have 100 IP addresses, and only want to bind to the even
ones....
> My server has three IP addresses, 192.168.10.14, 15 and 16. I have a
> need for a standalone instance of ProFTPD with no xinetd on 14, and I
> want to use vsFTPd via xinetd on 15 and 16.
> Can anyone tell me if xinetd supports this? Am I doing something
> wrong? Will I have to alter the code to do this?
The reason this won't work is because of a socket interface limitation
(not only xinetd) you can bind a service to *any* or *one* address only.
It could be built into xinetd so it knows that on each interface += to
redefine the service with a unique id, I don't know what the
implications of this are, but without too much thought it seems like a
valid thing to do.
To get the scenario working as described above, you need to use these
options:
service ftp
{
id = ftp1
socket_type = stream
protocol = tcp
interface = 192.168.10.15
wait = no
user = root
server = /usr/sbin/vsftpd
}
service ftp
{
id = ftp2
socket_type = stream
protocol = tcp
interface = 192.168.10.16
wait = no
user = root
server = /usr/sbin/vsftpd
}
Hope that helps people in the future.
Thanks,
--
Andrew McCall <[email protected]>
Oldham Metropolitan Borough Council
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.oldham.gov.uk
**********************************************************************