The host on which the GridFTP
door is running has several
network interfaces and is supposed to accept client
connections via all those interfaces. The interfaces might
even belong to separate networks with no routing from one
network to the other.
As long as the data connection is opened by the GridFTP
server (passive FTP mode), there is no problem with having
more than one interface. However, when the client opens the
data connection (active FTP mode), the door (FTP server) has
to supply it with the correct interface it should connect
to. If this is the wrong interface, the client might not be
able to connect to it, because there is no route or the
connection might be inefficient.
Also, since a GridFTP
server has to authenticate with an
X.509
grid certificate and key, there needs to be a separate
certificate and key pair for each name of the host or a
certificate with alternative names. Since each network
interface might have a different name, several certificates
and keys are needed and the correct one has to be used, when
authenticating via each of the interfaces.
Define two domains, one for the internal and one for the
external use. Start a separate loginbroker
, srm
and gridftp
service in these domains.
The srm
and the gridftp
service have to be
configured with the property listen
, only
to listen on the interface they should serve. The locations of
the grid host certificate and key files for the interface have
to be specified explicitly with the properties
grid.hostcert.cert
and
grid.hostcert.key
.
Example:
In this example we show a setup for two GridFTP
doors
serving two network interfaces with the hostnames
door-internal
(111.111.111.5) and
door-external
(222.222.222.5) which are
served by two GridFTP
doors in two domains.
[internalDomain] listen=111.111.111.5 grid.hostcert.cert=/etc/dcache/interface-cert-internal.pem grid.hostcert.key=/etc/dcache/interface-key-internal.pem [internalDomain/loginbroker] cell.name=loginbroker-internal [internalDomain/srm] cell.name=srm-internal srm.lookup.loginbroker=loginbroker-internal srmHost=door-internal [internalDomain/gridftp] cell.name=GFTP-door-internal loginBroker=loginbroker-internal [externalDomain] listen=222.222.222.5 grid.hostcert.cert=/etc/dcache/interface-cert-external.pem grid.hostcert.key=/etc/dcache/interface-key-external.pem [externalDomain/loginbroker] cell.name=loginbroker-external [externalDomain/srm] cell.name=srm-external srm.lookup.loginbroker=loginbroker-external srmHost=door-external [externalDomain/gridftp] cell.name=GFTP-door-external loginBroker=loginbroker-external