---
name: "ipsec_readwriteconf"
section: "8"
platform: "linux"
package: "libreswan"
version: "4.10-2+deb12u1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/ipsec_readwriteconf"
---

# ipsec\_readwriteconf(8)

validate and output an Libreswan IPsec configuration file

## NAME

ipsec\_readwriteconf - validate and output an Libreswan IPsec configuration file

## SYNOPSIS

**ipsec readwriteconf**  \[--config **file**\] \[--debug\] \[--verbose\] \[--rootdir **dir**\]

## DESCRIPTION

This program reads the given ipsec.conf style configuration file, interpreting the also= options, and outputs an equivalent ipsec.conf file. The purpose of this program is to validate the input processing. This can also be used to validate the syntax of a configuration file.

The options --debug and --verbose are currently synonyms.

The --rootdir option changes the programs idea of what "/" is when processing include directives. This is useful when validating a configuration that is not installed on a target system yet.

## AUTHOR

**Paul Wouters**

placeholder to suppress warning
