Cluster mode should not be enabled by default
Currently, the cluster mode is enabled by default (l2tpns.c):
if (!config->cluster_address) config->cluster_address = inet_addr(DEFAULT_MCAST_ADDR);
if (!config->cluster_port) config->cluster_port = CLUSTERPORT;
if (!*config->cluster_interface)
strncpy(config->cluster_interface, DEFAULT_MCAST_INTERFACE, sizeof(config->cluster_interface) - 1);
This is confusing because DEFAULT_MCAST_INTERFACE
is eth0
, which causes l2tpns to fail to start if eth0 does not exist, even if nothing in the configuration enables clustering.
l2tpns should only enable cluster mode if cluster_interface
is explicitly given in the configuration.