---
name: "ipsec_showpolicy"
section: "8"
platform: "linux"
package: "openswan"
version: "1:2.4.12+dfsg-1.3+lenny4"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/ipsec_showpolicy"
---

# ipsec\_showpolicy(8)

dump policy of socket found as stdin

## NAME

ipsec showpolicy - dump policy of socket found as stdin

## SYNOPSIS

**ipsec** **showpolicy**

## DESCRIPTION

*showpolicy* calls the  *ipsec\_policy\_lookup*(3) function on the file description which is its stdin.

It then dumps the resulting query in a human readable form.

This is a test program. One might run it from inetd, via:

- discard stream tcp nowait nobody /usr/libexec/ipsec/showpolicy showpolicy

  ## FILES

/var/run/pluto/ipsecpolicy.ctl

## SEE ALSO

[ipsec(8)](/ipsec/8.md), ipsec\_policy\_query(3), [ipsec\_pluto(8)](/ipsec_pluto/8.md)

## HISTORY

Written for the Linux FreeS/WAN project \<http://www.freeswan.org/\> by Michael Richardson

## BUGS
