Skip to content
Smarter by Design.Simpler for Business

settings access ​

The settings access command configures the management access of the device: it determines which service will be listened on which address and port, which networks it can be accessed from, the sign-in protections and the session durations.

A wrong setting can cut off the management access

This command changes the path the device is connected over. Giving the listening address, the port or the allowed network list wrongly cuts the current session as well as possibly preventing reconnection. An alternative access path must be ready before the change.

Command Summary ​

TR7 WEB-CLI · settings access
# Tab after the command
admin@TR7LBWAF01> settings access
init reset show update
 
admin@TR7LBWAF01> settings access show # show the settings
admin@TR7LBWAF01> settings access update … # change
admin@TR7LBWAF01> settings access init # set up the access
admin@TR7LBWAF01> settings access reset # return to the default
admin@TR7LBWAF01>  

This resource is a single setting: no identifier is written, update is run directly and only the fields to be changed are given.

The Common Structure of the Services ​

All five of the management services (HTTP, HTTPS, SSH, FTP, SNMP) use the same two lists:

ListWhat it doesThe field format
The listening addressesDetermines on which address and port the service will be served--<service>.N.ip and --<service>.N.port
The allowed networksLimits which networks the service can be accessed from--<service>AllowedNetworks.N.ip and --<service>AllowedNetworks.N.cidr

Both lists are indexed: more than one address or network is written with its own index. The allowed network lists take at most 10 entries.

The addresses that can be selected as a listening address are limited to the addresses defined on the ethernet interfaces in the default routing table.

HTTP ​

FieldWhat it doesWhat is written after it
--http.N.ipDetermines the address the HTTP management access will be listened onAn address defined on the device; every listening entry with its own index
--http.N.portDetermines the port that entry will be listened onA port number (the example value is 80)
--httpAllowedNetworks.N.ipDetermines the address of the network that is allowed HTTP accessA network address
--httpAllowedNetworks.N.cidrDetermines the mask length of that networkA CIDR value

HTTPS ​

FieldWhat it doesWhat is written after it
--https.N.ipDetermines the address the HTTPS management access will be listened onAn address defined on the device
--https.N.portDetermines the port that entry will be listened onA port number (the example value is 443)
--httpsAllowedNetworks.N.ipDetermines the address of the network that is allowed HTTPS accessA network address
--httpsAllowedNetworks.N.cidrDetermines the mask length of that networkA CIDR value
--httpsCertSelects the certificate that will be served on HTTPSA certificate record
--httpsMinSslVersionDetermines the lowest TLS version that will be acceptedSSLv3 · TLSv1.0 · TLSv1.1 · TLSv1.2 · TLSv1.3
--httpsMaxSslVersionDetermines the highest TLS version that will be acceptedThe same version values; it cannot be smaller than the lowest version

The last three fields are listed only while at least one HTTPS listening address is defined.

SSH ​

FieldWhat it doesWhat is written after it
--ssh.N.ipDetermines the address the SSH access will be listened onAn address defined on the device
--ssh.N.portDetermines the port that entry will be listened onA port number (the example value is 22)
--sshAllowedNetworks.N.ipDetermines the address of the network that is allowed SSH accessA network address
--sshAllowedNetworks.N.cidrDetermines the mask length of that networkA CIDR value
--sshSessionDur.valDetermines after how long without an operation the SSH session will be droppedA number
--sshSessionDur.unitSelects the unit of that durationm (the default) · h · d · w · M

FTP ​

FieldWhat it doesWhat is written after it
--ftp.N.ipDetermines the address the FTP access will be listened onAn address defined on the device
--ftp.N.portDetermines the port that entry will be listened onA port number (the example value is 21)
--ftpAllowedNetworks.N.ipDetermines the address of the network that is allowed FTP accessA network address
--ftpAllowedNetworks.N.cidrDetermines the mask length of that networkA CIDR value
--ftpPassivePortRange.startDetermines the start of the port range the passive mode data connections will useAn integer between 1024 and 65535 (the default is 40000)
--ftpPassivePortRange.endDetermines the end of the same rangeAn integer between 1024 and 65535 (the default is 40023)

SNMP ​

FieldWhat it doesWhat is written after it
--snmp.N.hostSelects on which device that listening entry will be openedA device; the default is the device the command runs on
--snmp.N.ipDetermines the address the SNMP access will be listened onAn address defined on the selected device
--snmp.N.portDetermines the port that entry will be listened onA port number (the example value is 161)
--snmpAllowedNetworks.N.ipDetermines the address of the network that is allowed SNMP accessA network address
--snmpAllowedNetworks.N.cidrDetermines the mask length of that networkA CIDR value
--snmp_v1Turns on answering the version 1 queriestrue · false (the default is false)
--snmp_v2Turns on answering the version 2 queriestrue · false (the default is false)
--snmp_v3Turns on answering the version 3 queriestrue · false (the default is false)
--snmp_v2_communityNameDetermines the community name that will be verified on version 2A community name
--snmp_v3_userPassList.N.usernameDetermines the name of the version 3 userA user name; every user with its own index
--snmp_v3_userPassList.N.authProtocolSelects the authentication and encryption method of that userSHA — SHA + AES (authPriv), the default · MD5 — MD5 (authNoPriv)
--snmp_v3_userPassList.N.passwordDetermines the password of that userA password

The version switches are listed only while at least one SNMP listening address is defined. The community name is opened while --snmp_v2 true and the user list while --snmp_v3 true.

The Sign-in Protection ​

FieldWhat it doesWhat is written after it
--tr7ServerCaptchaTurns on the CAPTCHA verification on the management interface sign-intrue · false (the default is false)
--tr7ServerCaptchaDifficultySelects the CAPTCHA difficulty level1 — Easy (the default) · 2 — Medium · 3 — Hard. Only while --tr7ServerCaptcha true
--2faTurns on the two-factor authenticationtrue · false (the default is false)
--2faMethodsSelects which channel the second factor will be asked overemail (the default) · sms
--2faUserTypes.NSelects which user types the second factor will be asked fromsuperAdmin; the only type defined in this version
--2faExcludedUsers.NSelects the users that will be exempt from the second factorUser records; each of them with its own index
--2faNoContactPolicySelects what will be done to a user that does not have a contact address definedblock prevents the sign-in (the default) · allow lets them through without asking for a second factor

The last four fields are listed only while --2fa true.

The Session and Failed Login Limits ​

FieldWhat it doesWhat is written after it
--tr7ServerSessionDur.valDetermines after how long without an operation the management interface session will be droppedA number (the default is 3)
--tr7ServerSessionDur.unitSelects the unit of that durationm · h (the default) · d; the total duration cannot exceed 24 hours
--failedLoginExpiresIn.valDetermines how long the failed login quarantine will lastA number (the default is 3)
--failedLoginExpiresIn.unitSelects the unit of that durationm · h (the default) · d; the total duration cannot exceed 7 days
--maxFailedLoginPerIpDetermines how many failed logins will be allowed from one addressAn integer between 0 and 1000
--maxFailedLoginPerIpUsernameDetermines how many failed logins will be allowed for one address and user name pairAn integer between 0 and 1000

The Other Accesses ​

FieldWhat it doesWhat is written after it
--innerWafTurns on the filtering of the requests coming to the management API — its name in the interface is API Access Filter (Beta)true · false (the default is false)
--prometheusAllowedNetworks.N.ipDetermines the address of the network that will be able to access the metrics endpointA network address
--prometheusAllowedNetworks.N.cidrDetermines the mask length of that networkA CIDR value
--systemUsers.N.usernameSelects the system user whose authorization will be editedlog · config_backup · ip_intelligence · update; the same user cannot be written twice
--systemUsers.N.ftpTurns on the FTP access of that usertrue · false (the default is false)
--systemUsers.N.sshIt is the field that turns on the SSH access of the system userSince there is no system user with SSH authorization defined in this version, the field is not activated on any user selection

What the system users are for

Each of the four system users corresponds to a file exchange: log is the FTP folder used for the log files, config_backup for the backups, ip_intelligence for the address reputation lists and update for the update packages.

init and reset ​

These two sub-commands set up the management access itself or return it to the default. There are no options on the CLI nodes: the commands are run without a field being written.

Sub-commandWhat it does
initIt starts or reconfigures the access settings. According to the endpoint explanation the interface must be an ethernet interface in the default routing table; the address must be a valid IPv4 address without the CIDR notation. The changes take effect immediately and can temporarily cut the management connection
resetIt resets the access settings to their default configuration. After the reset, in order to establish the connection, the access settings may need to be reconfigured with init

Both of them can cut off the access

The endpoint explanations carry the same warning for both operations: the changes take effect immediately and can cut the management connection. An alternative access path must be ready before running them.

Examples ​

TR7 WEB-CLI · A) HTTPS and an allowed network
admin@TR7LBWAF01> settings access update \
--https.0.ip <address> --https.0.port 443 --httpsCert <certificate> \
--httpsMinSslVersion TLSv1.2 --httpsMaxSslVersion TLSv1.3 \
--httpsAllowedNetworks.0.ip 10.0.1.0 --httpsAllowedNetworks.0.cidr 24
admin@TR7LBWAF01>  
TR7 WEB-CLI · B) The sign-in protection
admin@TR7LBWAF01> settings access update --tr7ServerCaptcha true --tr7ServerCaptchaDifficulty 2 \
--maxFailedLoginPerIp 10 --maxFailedLoginPerIpUsername 5 \
--failedLoginExpiresIn.val 1 --failedLoginExpiresIn.unit h \
--tr7ServerSessionDur.val 30 --tr7ServerSessionDur.unit m
 
# the two-factor authentication
admin@TR7LBWAF01> settings access update --2fa true --2faMethods email \
--2faUserTypes.0 superAdmin --2faNoContactPolicy block
admin@TR7LBWAF01>  
TR7 WEB-CLI · C) SNMP and editing a list
admin@TR7LBWAF01> settings access update --snmp.0.ip <address> --snmp.0.port 161 \
--snmp_v3 true --snmp_v3_userPassList.0.username viewer \
--snmp_v3_userPassList.0.authProtocol SHA --snmp_v3_userPassList.0.password <password>
 
# removing a single entry · emptying the list
admin@TR7LBWAF01> settings access update --httpAllowedNetworks.1.delete
admin@TR7LBWAF01> settings access update --http.delete
admin@TR7LBWAF01>  

Things to Know ​

  • If the listening list is emptied, the service is not served. When the list is emptied with --<service>.delete, the access to that service is closed; before closing the HTTP management access this way, it must be verified that the HTTPS or SSH path is open.
  • The certificate and the TLS versions depend on the HTTPS list. --httpsCert, --httpsMinSslVersion and --httpsMaxSslVersion are not listed while at least one HTTPS listening address is not defined.
  • The SNMP version switches also depend on the list. --snmp_v1, --snmp_v2 and --snmp_v3 are not opened while at least one SNMP listening address is not defined.
  • The sub-fields of the two-factor authentication are conditional. The channel, the user types, the exempt users and the contact address policy appear only while --2fa true.
  • If the allowed network list is left empty, no limit is applied. When the list is not defined, the service is open to all the requests that can reach the address it listens on. Every list takes at most 10 entries.
  • The address selection is limited to the default routing table. Only the addresses defined on the ethernet interfaces in that table can be selected as a listening address; the addresses are defined with network ip.
  • init and reset are commands without options. There are no fields on the CLI nodes; both of them are operations that can cut the management connection.
  • The list fields can be deleted one by one or all at once. --<field>.N.delete removes a single entry, and --<field>.delete empties the list.