server.xml¶
server.xml is the configuration of the SSL Router of the Mediation Controller. The router
receives, over TLS, the connections of the Edge Gateways, of the HTML5 Gateways, of the workstations
that use the CyberElements Bastion client and, in a cluster or between sites, of the other Mediation
Controllers; it routes the traffic between them. It also opens local listening addresses, to which
the web server of the Mediation Controller passes the web accesses. The file holds its identity, its
TLS settings, its listening addresses and its links to the other servers.
| Property | Value |
|---|---|
| Component | Mediation Controller |
| Path | /etc/ipdiva/server/server.xml |
| Owner and permissions | zope:ipdivasrv, 640 |
| Package | none, written at installation |
| Format | XML |
Generated at installation, then edited by hand
The installation builds the file from its template and substitutes the values it has collected: certificate and its password, cipher suites, addresses of the log server and of the RPC interface. Once installed, the product does not generate it again, which is why the installation procedures ask you to edit it directly. An upgrade can only complete it: see Upgrade.
Structure¶
The file is a tree under a single <server> element. Each section of the tree is described in
Parameters:
| Section | Holds |
|---|---|
<server> |
The identity of the router, the paths of its other files, the compression of the data it forwards. |
<logging-facility> |
The local log files of the router. |
<log> |
The log service to which the router sends its events, and the delay of the connection alerts of the Edge Gateways. |
<timeout> |
Former section, kept for compatibility. |
<pipe> |
The connections with the Edge Gateways, the HTML5 Gateways and the other servers. |
<ssl> |
TLS of the router: certificate, trust, cipher suites, protocol versions. |
<database> |
The link with the configuration of the product. |
<caredata> |
The link with the application of the web consoles. |
<socket> |
The options of the sockets. |
<webaccess> |
The web accesses: local listening addresses and processing of the web pages. |
<vpn> |
The VPN tunnels. |
<tuning> |
The capacity of the listening addresses. |
<license> |
The licence, normally held by server.lic. |
<debugger> |
The debug console. |
In a cluster, the secondary server carries one more element
The procedure of an interserver link adds <network-id> to the server.xml of the secondary
Mediation Controller. See
Installing a cluster.
Parameters¶
The tables list every element and attribute that the SSL Router reads. Two columns give a value:
- Default value: the value written in the file as installed. A dash means the element is not in the delivered file; set at installation means the installation writes the value it has collected.
- If the element is absent: the value the router uses when it does not find the element.
An element is written as a path from its section: listeners/@maxConcurrent is the
maxConcurrent attribute of the <listeners> element of <tuning>.
<server>¶
Elements placed directly under <server>.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
network-id |
— | empty | Network identifier, an integer from 0 to 65535, with which the router opens its routing domain. The procedure of an interserver link sets it on the secondary Mediation Controller. |
login |
set at installation | empty | Name under which the router registers in its routing domain. The prefix S: is added when it is missing. |
services |
— | /etc/ipdiva/server/services.xml |
Path of the file of services that the router loads at startup. |
remoteservers |
/etc/ipdiva/server/remoteServers.xml |
no link to other servers | Path of remoteServers.xml, which holds the links to the other servers. A missing file is reported in the log and no link is established. |
nodes-certs |
— | /etc/ipdiva/server/ssl/certs/ |
Directory of the certificates that the router loads at startup, with one subdirectory per organisation. |
check-compression-mode |
false |
true |
true: when the compression of the data received differs from the one the destination supports, the router recompresses them. false: the data are forwarded as received. |
<logging-facility>¶
Local log files of the router. The section holds <appender> elements, the destinations, then <logger> elements, which attach named logs to these destinations; both are repeatable and configured through attributes. An invalid value stops the reading of the section at that point.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
appender/@name |
web_access_file, rp_access_file |
required | Name of the destination, by which the loggers refer to it. |
appender/@type |
rotatingfile |
required | Kind of destination: file, rotatingfile (file with rotation) or syslog. The value is case-sensitive. |
appender/@file |
/tmp/access_log, /tmp/rpaccess_log |
required for file and rotatingfile |
Destination file of a file or rotatingfile destination. |
appender/@formatter |
accessLog |
raw |
Format of the lines: raw, basic or accessLog. An unknown name falls back to raw, with an error in the log. |
appender/@append |
true |
true |
true or yes: the file is appended to; false or no: it is overwritten at startup. Case does not matter. |
appender/@rotateSize |
— | 10M |
For rotatingfile: size from which the file is rotated. Accepts the suffixes K and M (multiples of 1024). |
appender/@archivedFiles |
— | 10 |
For rotatingfile: number of archived files kept. |
appender/@appName |
— | required for syslog |
For syslog: application name. In version 4.7, a syslog destination is accepted only when this attribute is present and empty. |
logger/@name |
rpAccessLog, webAccessLog |
required | Name of the log configured. The logger attributes of the elements of <webaccess> refer to these names. |
logger/@appenders |
rp_access_file, web_access_file |
none: warning in the log | Names of the destinations of the log, separated by commas; an unknown name is ignored, with an error in the log. In version 4.7, only the last name of the list is read in full: attach a single destination per logger. |
logger/@propagate |
— | false |
true or yes: the entries of the log are also passed to its parent log. Case does not matter. |
<log>¶
Sending of the events of the router to the log service.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
server |
set at installation | 127.0.0.1:9011 |
Address and port of the log service to which the router sends its events. |
delay |
10000 |
1200000 |
Delay, in milliseconds, of the connection alerts of the Edge Gateways and HTML5 Gateways. No connection is reported during this delay after the router starts; afterwards, an Edge Gateway that reconnects within this delay after its disconnection is reported as a reconnection, any other connection as urgent. |
<timeout>¶
Former section, kept for compatibility.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
ping |
— | 60000 |
When the element is present, its value replaces that of <pipe>/ping-timeout. |
<pipe>¶
The connections that the router keeps with the Edge Gateways, the HTML5 Gateways and the other servers. Durations are in milliseconds.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
ping-timeout |
60000 |
60000 |
Duration without data received on a connection after which the router sends a ping. The router also sends a ping when it has sent nothing for half this duration. |
ping-response-timeout |
— | 5000 |
Additional duration granted to the remote end after a ping: if nothing is received within ping-timeout plus this duration, the router closes the connection. |
connect-timeout |
— | 10000 |
Maximum duration of a connection attempt of the router to another server. |
fifo-recv-len |
— | 5000 |
Capacity, in packets, of the reception queue of each connection. |
push-recv-timeout |
— | 30000 |
Maximum wait to place a received packet in a full reception queue. Beyond it, the packet is dropped. |
pop-recv-timeout |
— | 20000 |
Maximum wait for a packet when the router reads the reception queue of a connection. Beyond it, the read fails. |
sent-limit |
— | 2097152 |
Maximum volume, in bytes, waiting in the send queue of a connection. Beyond it, a new packet waits until space is freed. |
congestion-ratio |
— | 75 |
Percentage of sent-limit beyond which the route through a connection is considered congested. |
<ssl>¶
TLS of the router: certificate, trust, cipher suites and protocol versions. The TLS context is built only when cert is set. If the file named by ca-file does not exist, the router stops configuring TLS at that point: certificate, cipher suites, revocation lists and verification are not loaded.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
cert |
set at installation | no TLS context | Certificate and private key of the router: PKCS#12 when the file ends in .p12, PEM when it ends in .pem. |
pkcs12 |
— | — | Former name of cert, read only when cert is absent. |
key |
— | — | Former name of cert, read only when cert and pkcs12 are absent. |
password |
set at installation | built-in passwords tried | Password of the certificate. For a PEM file, several values separated by ; are tried in turn. |
ca-file |
— | — | File of certification authorities trusted by the router. |
calist |
— | — | Former name of ca-file; when present, it takes precedence over it. |
ca-dir |
/etc/ipdiva/server/ssl/ca |
— | Directory of certification authorities: every file it contains, subdirectories included, is loaded. A missing directory prevents the start of the router. |
allowed-ca-file |
— | — | File of the certification authorities allowed to sign the certificates of the remote ends: a certificate whose issuer is not in it is refused. |
crl-file |
— | — | Certificate revocation list. The router reloads it when the file changes. |
crl-dir |
/etc/ipdiva/server/ssl/crl |
— | Directory of revocation lists: every file it contains is loaded, and reloaded when the content of the directory changes. |
dh-file |
/etc/ipdiva/server/ssl/dhparams |
— | Diffie-Hellman parameters. A missing file prevents the start of the router. |
ecdh-curve |
— | — | Elliptic curve used for the ECDH key exchange, by its OpenSSL short name. An unknown name prevents the start of the router. |
cipherlist |
set at installation | OpenSSL default | Cipher suites up to TLS 1.2, in the OpenSSL syntax. A list refused by OpenSSL prevents the start of the router. |
cipherlist-tls1.3 |
TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384:TLS_AES_128_GCM_SHA256 |
OpenSSL default | Cipher suites of TLS 1.3, separated by :. A list refused by OpenSSL prevents the start of the router. |
honorServerCipherOrder |
— | true |
true: the order of the cipher suites of the router prevails over that of the remote end. |
min-version |
tls1.3 |
tls1.1 |
Minimum version of the protocol: tls1, tls1.1, tls1.2 or tls1.3. Any other value is reported in the log and leaves no minimum. |
max-version |
empty | no maximum | Maximum version of the protocol, with the same values as min-version. Empty: no maximum. |
version |
— | — | Former setting: ignored, with an error in the log, when min-version or max-version is present. Otherwise it sets the lowest version accepted (tls1, tls1.1, tls1.2, tls1.3, also written tlsv1.2…). |
verify-cert |
true |
true |
true: the certificate of the remote end is verified, and a remote end without a certificate is refused. false: no verification. |
no-fail-if-no-peer-cert |
— | false |
true (with verify-cert at true): a remote end without a certificate is not refused. |
verify-depth |
— | 0 |
Maximum depth of the certificate chain accepted. 0 keeps the OpenSSL default. |
accept-expired-cert |
— | false |
true: an expired certificate of a remote end is accepted, and logged. |
verify-certhostnamematch |
— | false |
true, with cert-peernames set: on an outgoing connection, the common name or one of the alternative names of the certificate of the remote end must be in cert-peernames. |
cert-peernames |
— | — | Names expected in the certificate of the remote end, used by verify-certhostnamematch. |
cert-peername |
— | — | Former form of cert-peernames, holding a single name; read only when cert-peernames is absent or empty. |
cert-day-delay |
— | 30 |
Threshold of the expiration alert of the certificate of the router. In version 4.7, the value counts in periods of 4 hours and the alert is raised once the certificate has been expired for that duration: with 30, 5 days after the expiration. |
session-cache |
— | false |
true: enables the cache of TLS sessions. |
secure-renegociation |
force |
force |
force: behaviour of OpenSSL; no: disables the session tickets; allowUnsecure: allows the unsecure legacy renegotiation. Case-sensitive; any other value is reported in the log and ignored. |
<database>¶
Link between the router and the configuration of the product. resolveip, milli, rpc-listen, rpc-connect and rpc-url are read in that order: if one is missing, the following ones are not read and keep their default.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
resolveip |
set at installation | false |
true: when a requested destination is not authorised as written, the router resolves its host name to an IP address and checks the authorisation again. |
milli |
300000 |
60000 |
Period, in milliseconds, at which the router refreshes the information of its sessions. |
rpc-listen |
set at installation | empty: no XML-RPC interface | Address and port of the XML-RPC interface of the router, through which the product sends it the configuration. The configuration server identifies the router by this value. |
rpc-connect |
127.0.0.1:8080 |
empty: no refresh | Address and port of the XML-RPC configuration server that the router queries. |
rpc-url |
/rpc |
empty | Path of the XML-RPC configuration server at the address of rpc-connect. |
dumpfile |
/var/ipdiva/server/dump.xml |
/var/ipdiva/server/dump.xml |
File in which the router saves its sessions, Edge Gateways and revocation lists, and from which it reloads them at startup. |
max-concurrent-activesync-requests |
2 |
50 |
Maximum number of concurrent ActiveSync requests. A value that is not a positive integer is replaced by 50. |
<caredata>¶
Link between the router and the application of the web consoles.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
rpc-connect |
— | 127.0.0.1:8000 |
Address and port of the application of the web consoles, which the router reaches for the functions of Bastion. |
<socket>¶
Options applied to the sockets of the router.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
recv-timeout |
— | 90000 |
Reception timeout, in milliseconds. |
send-timeout |
— | 90000 |
Sending timeout, in milliseconds. |
nodelay |
— | true |
true: disables the grouping of small TCP segments (TCP_NODELAY option). |
selectmethod |
— | auto |
Method used to wait for activity on the sockets: select, poll or auto. Case does not matter. |
<webaccess>¶
Web accesses published by the router: the six *-listen elements are local listening addresses, and the other elements govern the processing of the web pages. cache-folders and use-cookiestore set nothing on the router (use-cookiestore acts on the Edge Gateway, in its own gateway.xml), but they are still read: a cache-folders element without permanent and temporary, or a value of compress-ipdivavars, inject-sso-component, prefer-ntlm-over-basic or use-cookiestore that is not a boolean, makes the router stop reading the section at that point, and the following elements keep their default.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
web-listen |
127.0.0.1:9010 |
127.0.0.1:9010 |
Listening address of the web access. If it cannot listen, the router stops. |
web-listen/@logger |
— | webAccessLog |
Name of the log of the web access, declared in <logging-facility>. |
simpleweb-listen |
127.0.0.1:9019 |
127.0.0.1:9019 |
Listening address of the web access without analysis of the content. If it cannot listen, the router stops. |
simpleweb-listen/@logger |
— | simplewebAccessLog |
Name of the log of the web access without analysis of the content. |
reverseproxy-listen |
127.0.0.1:9015 |
127.0.0.1:9015 |
Listening address of the authenticated reverse proxy. If it cannot listen, the router stops. |
reverseproxy-listen/@logger |
— | rpAccessLog |
Name of the log of the authenticated reverse proxy. |
transparentreverseproxy-listen |
127.0.0.1:9016 |
127.0.0.1:9016 |
Listening address of the transparent reverse proxy. If it cannot listen, the router logs it and goes on. |
transparentreverseproxy-listen/@logger |
— | transRpAccessLog |
Name of the log of the transparent reverse proxy. |
activesync-listen |
127.0.0.1:9014 |
127.0.0.1:9014 |
Listening address of the ActiveSync access. If it cannot listen, the router stops. |
activesync-listen/@logger |
— | webAccessLog |
Name of the log of the ActiveSync access. |
outlookanywhere-listen |
127.0.0.1:9020 |
127.0.0.1:9020 |
Listening address of the Outlook Anywhere access. If it cannot listen, the router stops. |
activesync/ms_serveractivesync |
— | built-in value | Server version announced in the ActiveSync responses. |
activesync/ms_asprotocolversions |
— | built-in value | Protocol versions announced in the ActiveSync responses. |
activesync/ms_asprotocolcommands |
— | built-in value | Protocol commands announced in the ActiveSync responses. |
proxy |
— | no proxy | Proxy through which the outgoing HTTP connections go, except towards the local loopback and the hosts of proxy-exceptions. |
proxy-exceptions/exception/pattern |
— | — | Pattern of a host reached without proxy, compared with the host requested, without port and in lowercase. <exception> is repeatable. |
antivirus |
— | — | Proxy used first, before proxy, for the outgoing connections that are not HTTPS. |
davenport |
— | 127.0.0.1:8070 |
Address of the WebDAV service: a POST request towards this address is processed as a WebDAV request. |
davenport/@compatibilityMode |
— | false |
true: the router answers a WebDAV request with the code 303 instead of 200. |
max-http-100-continue |
— | 10 |
Divisor of the size of a WebDAV request: after this fraction of the body, the router answers 100 Continue. |
useragent |
— | true |
false: a User-Agent header containing Mozilla is cut at its first space before it is sent to the server. |
autoauth |
— | false |
true: enables the single sign-on of the outgoing HTTP sessions, which reuse the credentials already known. |
forcebasic |
— | false |
true: adds a Basic authentication, built from the credentials of the session, to the requests that carry none. |
prefer-ntlm-over-basic |
— | false |
true: when the server offers Basic and NTLM, the single sign-on does not choose Basic. |
http |
— | http |
Path segment with which the router rewrites the addresses of the HTTP services. |
https |
— | https |
Path segment with which the router rewrites the addresses of the HTTPS services. |
cache-date |
— | — | Date before which the cache validations of the browsers are ignored: the router removes If-Modified-Since and If-None-Match from the older requests and sets Last-Modified on the responses concerned. |
max-content-data |
— | 10485760 |
Size of a request body, in bytes, beyond which the router sends the headers without waiting for the body, and no longer keeps it for the single sign-on. |
reverse-proxy/static-rewrite-engine/rewrite |
— | — | Rewriting rule applied by the reverse proxy to the body of the responses whose address matches @urlpattern. Repeatable; configured by the four attributes below. |
reverse-proxy/static-rewrite-engine/rewrite/@urlpattern |
— | empty | Regular expression searched in the full address of the request. An invalid expression discards the rule, with an error in the log. |
reverse-proxy/static-rewrite-engine/rewrite/@type |
— | PLAIN |
PLAIN: @pattern is replaced literally; REGEX: @pattern is a regular expression, with groups. |
reverse-proxy/static-rewrite-engine/rewrite/@pattern |
— | empty | Text or regular expression searched in the body of the response. An invalid expression leaves the body unchanged, with an error in the log. |
reverse-proxy/static-rewrite-engine/rewrite/@replace |
— | empty | Replacement text of the occurrences of @pattern. |
reverse-proxy/headers/x-forwarded-for/@enabled |
— | false |
false: the reverse proxy removes the X-Forwarded-For header from the requests. |
reverse-proxy/headers/x-forwarded-host/@enabled |
— | false |
false: the reverse proxy removes the X-Forwarded-Host header from the requests. |
reverse-proxy/headers/api-info/@enabled |
— | false |
false: the reverse proxy removes the headers prefixed with X-IPdiva from the requests. |
webaccessjs |
— | webaccess.js |
Name of the script injected into the web pages, served under /static/gateway/. |
inject-sso-component |
— | true |
true: injects the single sign-on script /static/gateway/sso-injector.js into the web pages, before the script of webaccessjs. |
compress-ipdivavars |
— | true |
true: the IPdiva-Vars cookie is compressed, under the name IPdiva-Vars-z. |
rewrite-exclusions/domain |
— | — | Domain whose addresses the router leaves as they are in the web pages. Repeatable. |
js-parser |
— | ng |
Analyzer of the JavaScript of the pages: ng loads the library named by webaccess-path and libipdiva-parse, legacy keeps only the former analyser. |
webaccess-path |
— | /usr/local/ipdiva/webaccess/ |
Directory of the analysis library loaded when js-parser is ng. |
libipdiva-parse |
— | libipdiva_parse.so |
Name of the analysis library loaded when js-parser is ng. If it cannot be loaded, the router falls back to the former analyser. |
js-delegate-browser |
— | fallback |
With the former analyser: always always delegates the analysis to the browser, fallback only when the analysis fails; any other value serves the original script. |
<vpn>¶
VPN tunnels.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
unsafe-compatibility-mode |
false |
false |
true: the router forwards the VPN packets coming from an Edge Gateway without checking them. A value that is not a boolean is reported in the log and ignored. |
<tuning>¶
Capacity of the listening addresses of the router.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
listeners/@maxConcurrent |
10 |
10 |
Maximum number of incoming connections that each listening address processes at the same time before their identification. Beyond it, a new connection is closed. |
<license>¶
Licence of the router. It is normally not in server.xml: the router then reads server.lic, next to server.xml. Its content is signed and must not be edited.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
data |
— | — | Content of the licence, covered by the signature. |
signature |
— | the router does not start | Signature of the licence. |
license |
— | server.lic, next to server.xml |
Path of the licence file, read when the licence is not in server.xml. |
<debugger>¶
Debug console of the router, configured through attributes.
| Element | Default value | If the element is absent | Effect |
|---|---|---|---|
@enabled |
— | false |
true (case does not matter): the router opens a debug console, which answers text commands on the address of bindAddress. |
@bindAddress |
— | — | Listening address of the debug console, read only when enabled is true. |
Applying a change¶
Restart the SSL Router:
1 | |
Restarting the SSL Router cuts the connections in progress
The SSL Router carries the connections of the Edge Gateways, of the clients and of the web accesses: those in progress are cut, and during the restart users can neither sign in to the portal nor launch an application. Plan the change outside working hours, and in a cluster restart one node at a time.
Upgrade¶
No package delivers the file, so an upgrade neither overwrites it nor asks you anything about it. A new version of the product may add elements to the template without adding them to your file: the service then uses its own default for those, which is the expected behaviour.
The upgrade of the router does read the file again, though, and completes it in three cases:
- if one of the
web-listen,activesync-listen,reverseproxy-listen,transparentreverseproxy-listenoroutlookanywhere-listenelements is missing from<webaccess>, the whole content of<webaccess>is replaced by the six default listening addresses: the other elements of the section are lost; - if it has no
<logging-facility>section, a default section is added at the start of<server>; - if
<ssl>has nomin-versionelement, theversionelement is removed andmin-versionis set totls1.2.
To keep TLS 1.3 as the minimum, do not remove min-version
The installed file sets min-version to tls1.3. Once removed, the element comes back at the
next upgrade with the value tls1.2.