Catégorie : F5

Ajouter/Supprimer un serveur syslog à un F5 BigIP

BIG-IP versions 10.x

In BIG-IP version 10.0.x, you must use the bigpipe syslog command to create custom syslog configurations. For BIG-IP version 10.1.0 through 10.2.2, you can use the tmsh command or the bigpipe syslog command to create customsyslog configurations.

Adding a remote syslog server using the tmsh command

To configure the BIG-IP system to send all messages to a remote server using the tmsh command for versions 10.1.0 through 10.2.2, perform the following procedure:

  1. Log in to the command line.
  2. To add a single remote syslog server, use the following command syntax: tmsh modify sys syslog remote-servers add {{host XXXXX remote-port XXXXX}}
  3. For example:

    tmsh modify sys syslog remote-servers add {server1.net {host 192.168.1.15 remote-port 514 }}

    To add multiple remote syslog servers, use the following command syntax: tmsh modify sys syslog remote-servers add {{host XXX remote-port XXXX}{host XXXXX remote-port XXXXXX}}

    For example:

    tmsh modify sys syslog remote-servers add {server1.net {host 192.168.1.15 remote-port 514} server2.net {host 192.168.1.20 remote-port 514}}

  4. To save the configuration, type the following command:tmsh save sys config

Remove a remote syslog server using the tmsh command

To configure the BIG-IP system to send all messages to a remote server using the tmsh command for versions 10.1.0 through 10.2.2, perform the following procedure:

  1. Log in to the command line.
  2. To add a single remote syslog server, use the following command syntax: tmsh modify sys syslog remote-servers delete {name}
  3. For example:

    tmsh modify sys syslog remote-servers delete {server1.net}

    To add multiple remote syslog servers, use the following command syntax: tmsh modify sys syslog remote-servers delete {name}{name}

    For example:

    tmsh modify sys syslog remote-servers add {server1.net} {server2.net}

  4. To save the configuration, type the following command:tmsh save sys config

Configurer une clé SSH sur un F5 BigIP (a partir de 9.4.2)

  1. Log in to the BIG-IP command line.
  2. Enter the bigpipe shell by typing the following command:

    bpsh

  3. At the bigpipe prompt, paste the following text:

    sshd include  »
    IgnoreRhosts no
    HostbasedAuthentication yes
    AuthorizedKeysFile %h/.ssh/authorized_keys »

  4. Press the Enter key.
  5. To save the configuration, type the following command:

    bigpipe save all

  6. To exit the bigpipe shell, type the following command:

    exit

 

Ajouter ensuite votre clé ssh dans le fichier %h/.ssh/authorized_keys