Product SiteDocumentation Site

Configuration variables

All configuration variables eurephia uses are stored in the database. These variables are can be reviewed and modified by using the eurephiadm config command.

A.1. Inspecting and editing configuration variables

user@host:~ $ eurephiadm config --help
eurephiadm::config - Edit eurephia configuration

  The config command let you add, change or delete
  configuration parameters in the eurephia database
  in an easy way.  To be allowed to do so, you must
  have been granted 'config' access.

  The following arguments are accepted:
        -l | --list                   List all parameters in db
        -s | --set <key> <value>      Add/change a parameter.
        -D | --delete <key>           Remove the parameter.

  If no arguments is given, you can give a key name, and the
  associated value will be printed.

        eurephiadm config <key>

  The command will exit with exit code 0 on success.

user@host:~ $

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:~ $