Appendix B. A gated Reference
This appendix covers the syntax of the gated command and the gated configuration language for Gated 3.6—the
publicly available version of gated. As
a reference to the gated configuration
language, this appendix stands on its own. But to fully understand how to
configure gated, use this reference in
conjunction with the sample configuration files in Chapter 7.
gated is constantly being
improved. As it is upgraded, the command language changes. Refer to the
latest manpages for the most recent information about gated.
The gated Command
The syntax of the gated command
is:
gated [-v] [-c] [-C] [-n] [-N] [-ttrace_options] [-fconfig_file] [trace_file]
The -c and -n command-line options debug the routing
configuration file without impacting the network or the kernel routing table. Frequently, these debugging options
are used with a test configuration identified by the -f config_file
option:
-cTells
gatedto read the configuration file and check for syntax errors. Whengatedfinishes reading the configuration file, it produces a snapshot of its status and then terminates. It writes the snapshot to /usr/tmp/gated_dump. Runninggatedwith the-coption does not require superuser privileges, and it is not necessary to terminate the activegatedprocess.-CChecks the configuration file for syntax errors.
gatedexits with a status 1 if there are errors and 0 if there are none. Because this provides exit status, it is useful for script files.-nTells
gatednot to update ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access