---
name: "ipsec_pf_key"
section: "8"
platform: "linux"
package: "openswan"
version: "1:2.6.37-3+deb7u1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/ipsec_pf_key"
---

# ipsec\_pf\_key(8)

shows pfkey messages emitted by the kernel when using the KLIPS or MAST stack.

## NAME

ipsec\_pf\_key - shows pfkey messages emitted by the kernel when using the KLIPS or MAST stack.

## SYNOPSIS

**pf\_key** --ah --esp --ipip --ipcomp --daemon *filehmac-md5-96* \| *hmac-sha1-96*

## STACK

Note that pf\_key is only supported on the KLIPS and MAST stacks. It is not supported on any other stack.

## DESCRIPTION

**pf\_key** is a program to open a PF\_KEY socket and print all messages that are received from it. With no options, it will register itself to receive key requests for AH, ESP, IPIP and IPCOMP security associations. If given more specific options, then it will listen only to those protocols which are listed.

If the messages are recognized, the messages will be decoded.

If the option **--daemon** is provided, then after doing the registrations, the program will fork into the background. The provided file will be opened and the process ID of the background process will be written to it. This option is present to present race conditions in regression testing.

## FILES

/proc/net/pf\_key

## SEE ALSO

[**pf\_key**(5)](/pf_key/5.md), [**ipsec**(8)](/ipsec/8.md), [**ipsec\_manual**(8)](/ipsec_manual/8.md), [**ipsec\_eroute**(5)](/ipsec_eroute/5.md), [**ipsec\_spi**(5)](/ipsec_spi/5.md), [**ipsec\_spigrp**(5)](/ipsec_spigrp/5.md), [**ipsec\_klipsdebug**(5)](/ipsec_klipsdebug/5.md), [**ipsec\_tncfg**(8)](/ipsec_tncfg/8.md), [**ipsec\_version**(5)](/ipsec_version/5.md)

## HISTORY

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