---
name: "ncat_config"
section: "1p"
platform: "linux"
package: "router-audit-tool"
version: "1.1-4"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/ncat_config"
---

# ncat\_config(1p)

Generate NCAT config file from template

## NAME

ncat\_config - Generate NCAT config file from template

## SYNOPSIS

**ncat\_config** \[OPTIONS\] \<ncat.conf.MASTER \> ncat.conf

## DESCRIPTION

**ncat\_config** reads an ncat config file template (*/etc/ncat.conf.MASTER*) and writes a usable config.  The purpose is to support automatic generation of ncat.conf files with the correct values for items that change with  each installation.  Examples include external interface names, local address blocks, addresses that should be permitted in various access lists, etc.

Edit the .MASTER file to set correct values, then run ncat\_config to produce the ncat.conf file that you use.

## OPTIONS

- **-n, --noprompt**

  The `"--noprompt"` flag says that the values in the master file are teo be used as-is.  The users is not prompted for confirmation. Default behavior is to prompt and allow the user to change the values.

- **-u, --update\_master**

  The `"--update_master"` tells ncat\_config to update the master file with the values entered.  This reduced the need to re-enter default values.

- **-V, --version**

  The `"--version"` option displays the current program version.

- **-y, --yes**

  The `"--yes"` option changes the default answer for yes/no questions (i.e. whether to include optional rule groups) from "no" to "yes". This is useful in conjunction with "--noprompt" and "--update\_master". To create a customized ncat.conf.MASTER file, do the following

  ```
      * ncat_config --update_master
  ```

  ```
        This will let you input appropriate default values and save
        them in /etc/ncat.conf.MASTER
  ```

  ```
      * hand-edit /etc/ncat.conf.MASTER and comment out
        all the ConfigClass: entries you don't intend to use
        (the ones you answered "no" to)
  ```

  ```
      * On successive runs of ncat_config, simply say
  ```

  ```
          ncat_config --noprompt --yes
  ```

  ```
        to generate a new config.  You may change your
        default values either by hand editing /etc/ncat.conf.MASTER
        or by using --update_master again.
  ```

## MASTER FILE SYNTAX

The Master File syntax is the same as the ncat.conf syntax. See the description in the ncat man page.

## RETURN VALUE

0  - success \>0 - some error occurred

## FILES

*/etc/ncat.conf.MASTER*    - The ncat.conf template */etc/ncat.conf*    	  - The ncat.conf output file

## CAVEATS

Doing a "Make install" will overwrite your master file, incuding changes saved with "--update\_master".

## BUGS

Yes.

## AUTHOR

George M. Jones \<gmj@users.sourceforge.net\>

## CREDIT WHERE CREDIT IS DUE
