racoonctl

racoon administrative control tool

Syntax:

racoonctl reload-config
racoonctl show-schedule
racoonctl [-l [-l]] show-sa [isakmp|esp|ah|ipsec]
racoonctl flush-sa [isakmp|esp|ah|ipsec]
racoonctl delete-sa saopts
racoonctl establish-sa [-u identity] saopts
racoonctl vpn-connect [-u -identity] vpn_gateway
racoonctl vpn-disconnect vpn_gateway
racoonctl show-event [-l]
racoonctl logout-user login

Runs on:

QNX Neutrino

Description:

You can use racoonctl to control the operation of the racoon daemon.

Note: Communication between racoonctl and racoon is done through a UNIX socket. By changing the default mode and ownership of the socket, you can allow non-root users to alter racoon behavior, so do that with caution.

The following commands are available:

reload-config
This should cause racoon to reload its configuration file.
show-schedule
Unknown command.
show-sa [isakmp|esp|ah|ipsec]
Dump the security association (SA): All the SAs if no SA class is provided, or either ISAKMP SAs, IPsec ESP SAs, IPsec AH SAs, or all IPsec SAs. Use -l to increase verbosity.
flush-sa [isakmp|esp|ah|ipsec]
Flush all SAs if no SA class is provided, or a class of SAs, either ISAKMP SAs, IPsec ESP SAs, IPsec AH SAs, or all IPsec SAs.
establish-sa [-uusername] saopts
Establish an SA, either an ISAKMP SA, IPsec ESP SA, or IPsec AH SA. You can use the optional -u username when establishing an ISAKMP SA while hybrid auth is in use. The racoonctl utility prompts you for the password associated with username, and these credentials will be used in the Xauth exchange.

The saopts argument has the following format:

isakmp {inet|inet6} src dst

{esp|ah} {inet|inet6} src/prefixlen/port dst/prefixlen/port
  {icmp|tcp|udp|any}
vpn-connect [-u username] vpn_gateway
This is a particular case of the establish-sa command. It establishes an ISAKMP SA with vpn_gateway.
delete-sa saopts
Delete an SA, either an ISAKMP SA, IPsec ESP SA, or IPsec AH SA.
vpn-disconnect vpn_gateway
This is a particular case of the delete-sa command. It kills all SAs associated with vpn_gateway.
show-event [-l]
Dump all events reported by racoon, and then quit. The -l flag causes racoonctl to not stop once all the events have been read, but rather to loop awaiting and reporting new events.
logout-user login
Delete all SAs established on behalf of the Xauth user login.

The following command shortcuts are available:

Shortcut Command
rc reload-config
ss show-sa
sc show-schedule
fs flush-sa
ds delete-sa
es establish-sa
vc vpn-connect
vd vpn-disconnect
se show-event
lu logout-user

Files:

/var/racoon/racoon.sock or /var/run/racoon.sock
The racoon control socket.

Exit status:

0
Successful completion.
Nonzero
An error occurred.

Contributing author:

NetBSD