Difference between revisions of "Skeleton files"

From securityrouter.org, an OpenBSD-based firewall
Jump to: navigation, search
Line 40: Line 40:
 
|-
 
|-
 
| <tt>/cfg/skel/iked_key</tt> || RSA key for the IKEv2 server, automatically created || PEM
 
| <tt>/cfg/skel/iked_key</tt> || RSA key for the IKEv2 server, automatically created || PEM
 +
|-
 +
| <tt>/cfg/skel/iked_pub</tt> || Public RSA key for the IKEv2 server, automatically created || PEM
 
|}
 
|}

Revision as of 15:17, 3 October 2011

The appliance's configuration is normally defined only by it's configuration file. It's however possible to edit parameters not available in the configuration file by creating so-called skeleton files.

Consider for example the SSH server. It is started by setting

admin@fw1.halon.se# set system { ssh-server

in the configuration. It can be configured by adding attributes, such as setting

admin@fw1.halon.se# set system { ssh-server { port 22
admin@fw1.halon.se# set system { ssh-server { listen-address 10.0.0.1

UNIX administrators may guess that the SSH server is in fact OpenSSH's sshd, and that even more advanced configuration should be possible. Yes, indeed.

Adding skeleton files

Follow these steps to create a skeleton configuration file for the SSH server.

  1. Activate root access if not already activated
  2. Create the file /cfg/skel/sshd_config by
    • Either, log in using SSH, and edit the file using your favorite editor (vi?)
    • Or, create the file on your computer, and upload it using SCP

List of skeleton files

These are the supported skeleton files, that will be used if existing.

File Description  Format
/cfg/skel/httpd.conf Configuration for the HTTP server Apache's httpd
/cfg/skel/sshd_config Configuration for the SSH server OpenSSH's sshd
/cfg/skel/ssh_host_ecdsa_key Elliptic curve DSA key for the SSH server, automatically created PEM
/cfg/skel/ssh_host_dsa_key DSA key for the SSH server, automatically created PEM
/cfg/skel/ssh_host_rsa_key RSA key for the SSH server, automatically created PEM
/cfg/skel/httpd_key RSA key for the HTTP server, automatically created PEM
/cfg/skel/httpd_crt X.509 certificate for the HTTP server, automatically created PEM
/cfg/skel/isakmpd_key RSA key for the IKEv1 server, automatically created PEM
/cfg/skel/isakmpd_pub Public RSA key for the IKEv1 server, automatically created PEM
/cfg/skel/iked_key RSA key for the IKEv2 server, automatically created PEM
/cfg/skel/iked_pub Public RSA key for the IKEv2 server, automatically created PEM