Configuration Commands

The config commands allow you to change the configuration of the system

Table 1. config commands
Command Description Parameters and Examples
config

From the Linux shell, this command provides access to the command line configuration utility.

No parameters.

  [ <serviceacctlogin@<hostname>]$ c onfig
config admin-access allow-all

Clears restrictions to the administrative functionality so that an administrator can access the Cloudpath Admin UI from any IP address.

No parameters.

config admin-access allow-all 
config admin-access restrict

Restricts which IP addresses have administrative access to the Cloudpath Admin UI.

[Comma separated list of IP addresses/CIDR]
config admin-access restrict 1 72.16.4.20, 172.16.5.18

or

config admin-access restrict 172.16.4.20/24
config fips-crypto

Enable or disable use of FIPS 140-2 cryptography.

[Enable or Disable] [Requires the service password]

# config fips-crypto enable
 [ sudo] password for  cpn_service: enterservicepwd
config fips-crypto state

Display whether FIPS 140-2 cryptography is enabled.

No parameters.

config fips-crypto state
config hostname

Sets the hostname.

[This system's network name (FQDN)]

config hostname test22.company.net
config hostname-restricted allow-all

Requests by IP address are not blocked.

No parameters

config hostname-restricted allow-all 
config hostname-restricted restrict

Requests that do not match the hostname are blocked.

No parameters

config hostname-restricted restrict
config https enable

Sets whether the Apache server should be run as HTTP or HTTPS.

[The HTTPs port to use]

  config https enable 55
config https disable

Sets whether the Apache server should be run as HTTP or HTTPS.

No parameters

config https disable 
config https-servername default

Uses the system's hostname (FQDN).

No parameters

config https-servername default 
config https-servername override

Set the HTTPS server name. This is typically used when operating behind a load balancer.

[This system's network name]
config https-servername test22.company.net 
config network DHCP

Configures whether you want DHCP to assign network IP addresses.

[ true to use DHCP, false to use STAT IC IP addresses]

config network DHCP true

This command causes the system to toggle the eth0 and loopback interfaces.

config network restart

Restarts the network after making configuration changes to DHCP settings.

No parameters

config network restart 
config network STATIC dns

Configures the STATIC IP addresses for the DNS server.

[IP address of the DNS server]

config network STATIC dns 1 72.16.4.202 
config network STATIC ip

Configures the STATIC IP addresses for the system's eth0 interface, subnet mask, and gateway.

[IP address, subnet mask, and gateway for the eth0 interface]

config network STATIC ip  172.16.6.35 255.255.252.0 172.16.4.1
config ntp

Sets the NTP server

[IP address of the NTP server]

config ntp 172.16.2.106

config ntp sync-now

Forces an ntpdate to the configured NTP server.

[hostname for shared db]

config ntp sync-now
config proxy set

Sets the HTTP proxy. Requires a reboot.

The HTTP port and HTTPS port must be the same. This is the port number for the HTTP proxy tunnel.

The [proxy-bypass-hosts] parameter (optional) is a comma-separated list of hosts that should bypass the proxy.

Use the config clear-proxy command to remove the configuration

[HTTP hostname] [HTTPport] [HTTPS hostname] [HTTPS port] [proxy- bypass-hosts]

config proxy hostA 80 hostB 80 hostC,hostD 
config proxy remove

Removes the HTTP proxy

No parameters

config proxy remove
config ssh enable

Enables SSH access. The default port is 8022, or you can select port 22.

[SSH port ]

config ssh enable 

or

config ssh enable 22
config ssh disable

Disables SSH access.

[SSH port ]

config ssh disable
config sslv3 allow

Permits SSLv3 protocol on HTTPS connections.

No parameters

config sslv3 allow
config sslv3 block

Prevents SSLv3 protocol on HTTPS connections

No parameters

config sslv3 block
config timezone

Sets the timezone to be used.

[Zone name]

config timezone

This command displays a list of acceptable timezones.

When prompted, enter the desired timezone as shown.

America/Denver

Alternately, you can enter the correct timezone as part of the command.

config timezone America/Denver