1IPSEC_SHOWPOLICY(8)             [FIXME: manual]            IPSEC_SHOWPOLICY(8)
2
3
4

NAME

6       ipsec_showpolicy - dump policy of socket found as stdin
7

SYNOPSIS

9       ipsec showpolicy
10
11
12       ipsec showpolicy --udpport --sockpolicy --packetcountnum
13
14

DESCRIPTION

16       showpolicy calls the ipsec_policy_lookup(3) function on the file
17       description which is its stdin.
18
19       It then dumps the resulting query in a human readable form.
20
21       With the --udp option, it opens a UDP port, and dumps policy on each
22       packet received on that port using the IP_IPSEC_RECVREF socket option.
23
24       The --maxpacket option causes the program to exit after processing that
25       many packets. This can be used in test cases.
26
27       This is a test program. One might run it from inetd, via:
28
29       discard stream tcp nowait nobody /usr/local/libexec/ipsec/showpolicy
30       showpolicy
31
32       One could also run it from the command line via:
33
34       ipsec showpolicy --udp 9 --sockpolicy --maxpacket 2
35

FILES

37       /var/run/pluto/ipsecpolicy.ctl
38

SEE ALSO

40       ipsec(8), ipsec_policy_query(3), ipsec_pluto(8)
41

HISTORY

43       Written for the Linux FreeS/WAN project <http://www.freeswan.org/> by
44       Michael Richardson
45
46
47
48[FIXME: source]                   10/06/2010               IPSEC_SHOWPOLICY(8)
Impressum