A.1. Inspecting and editing configuration variables
A.1.1. Show the current configuration
Use the eurephiadm config --list command to show all configuration variables in the database.
user@host:~ $ eurephiadm config --list
** eurephia configuration settings (set in database) **
----------------------------------------------------------------------
passwordhash_salt_length = 32
passwordhash_rounds_min = 22000
passwordhash_rounds_max = 45000
eurephiadmin_autologout = 10
allow_username_attempts = 3
allow_cert_attempts = 5
allow_ipaddr_attempts = 10
firewall_interface = /tmp/opt/eurephia/lib/eurephia/efw-iptables.so
firewall_command = /sbin/iptables
firewall_destination = vpn_users
firewall_blacklist_destination = vpn_blacklist
----------------------------------------------------------------------
user@host:~ $
It is also possible to show only one variable directly by specifying the variable name:
user@host:~ $ eurephiadm config firewall_destination
vpn_users
user@host:~ $
A.1.2. Add or modify a configuration variable
By using the --set mode you will either create a new configuration variable or modify an existing one to the value you define.
user@host:~ $ eurephiadm config --list | grep config_option
user@host:~ $ eurephiadm config --set config_option test123
eurephiadm::config: Configuration key 'config_option' was set to 'test123'
user@host:~ $ eurephiadm config --list | grep config_option
config_option = test123
user@host:~ $ eurephiadm config --set config_option 123test
eurephiadm::config: Configuration key 'config_option' was set to '123test'
user@host:~ $ eurephiadm config config_option
123test
user@host:~ $
A.1.3. Delete a configuration variable
Use the --delete mode you will completely remove an existing configuration variable.
user@host:~ $ eurephiadm config --delete config_option
eurephiadm::config: Configuration key 'config_option' was deleted
user@host:~ $ eurephiadm config --list | grep config_option
user@host:~ $