SASYNCD.CONF(5)           OpenBSD Programmer's Manual          SASYNCD.CONF(5)

NAME
     sasyncd.conf - configuration file for sasyncd

DESCRIPTION
     sasyncd.conf is the configuration file for the sasyncd(8) daemon.

     Comments can be put anywhere in the file using a hash mark (`#'), and ex-
     tends to the end of the current line.

     Since the file contains the shared secret key used to encrypt data be-
     tween this host and the others, /etc/sasyncd.conf must be owned either by
     ``root'' or the ``_isakmpd'' pseudo user and be readable only by this
     owner, e.g.

           # chown root /etc/sasyncd.conf
           # chmod 0600 /etc/sasyncd.conf

     The following configuration settings are understood:

     interface interface
             Specify which carp(4) interface sasyncd(8) should track mas-
             ter/slave state on.

     group group
             Specify which interface group sasyncd(8) should use to suppress
             carp(4) preemption while the system boots.  The default is to use
             the ``carp'' group.

             For more information on interface groups, see the group keyword
             in ifconfig(8).

     flushmode sync | startup | never
             Controls how the sasyncd(8) master host handles SADB_FLUSH mes-
             sages to its slaves.

                   sync       Pass any SADB_FLUSH messages along.  For exam-
                              ple, in this mode sasyncd(8) will synchronize an
                              ipsecctl -F command to all connected slaves.
                              For more information, see ipsecctl(8).
                   startup    Send a SADB_FLUSH message to the slaves as they
                              connect, and act as sync afterwards.  This is
                              the default.
                   never      Never send SADB_FLUSH messages.

     listen on address [family] [port port]
             Specify a local IP address, hostname, or interface the sasyncd(8)
             daemon should listen on.  The default is to listen on all local
             addresses.  When using an interface name, family may be given as
             ``inet'' or ``inet6'' to only bind using the specified address
             family.  Finally, port can be used to specify which TCP port
             sasyncd(8) should listen to.  The default is to listen to port
             500.

     mode master | slave
             Force the daemon to run as master or slave.  Normally only in-
             tended for debugging use.

     mode skipslave
             Prevent the daemon from syncing SA or SPD messages where the
             source or destination address is one of the configured peers.
             Intended to permit IPsec pfsync(4) protection.  This mode is ex-
             perimental.

     peer address
             Specify a sasyncd(8) peer IP address or hostname.  May be speci-
             fied multiple times.  For example:

                   peer 10.0.0.2
                   peer 10.0.0.3
                   peer 10.0.0.4

     sharedkey key
             The shared AES key used to encrypt messages between sasyncd(8)
             hosts.  This configuration setting is required and must be either
             16, 24 or 32 bytes long (corresponding to AES using a 128, 192 or
             256 bit key).

SEE ALSO
     chmod(1), carp(4), chown(8), ipsecctl(8), sasyncd(8)

HISTORY
     The sasyncd.conf file format first appeared in OpenBSD 3.8.

OpenBSD 4.7                      May 31, 2007                                2
