Openswan ipsec tool

Aus xinux.net
Zur Navigation springen Zur Suche springen

start

  • ipsec setup --start
ipsec_setup: Starting Openswan IPsec U2.6.38/K3.19.0-25-generic...

stop

  • ipsec setup --stop
ipsec_setup: Stopping Openswan IPsec...

restart

  • ipsec setup --restart
ipsec_setup: Stopping Openswan IPsec...
ipsec_setup: stop ordered, but IPsec appears to be already stopped!
ipsec_setup: doing cleanup anyway...
ipsec_setup: Starting Openswan IPsec U2.6.38/K3.19.0-25-generic...

status

  • ipsec setup --status
IPsec running  - pluto pid: 9515
pluto pid 9515
No tunnels up

Anzeige der verfügbaren Verbindungen

  • grep conn /etc/ipsec.conf
conn toc-ras

conn add

ipsec auto --add <conn>

conn up

ipsec auto --up <conn>

conn delete

ipsec auto --delete <conn>

conn down

ipsec auto --down <conn>

reread secrets

ipsec auto --rereadsecrets

list ca certs

ipsec auto --listcacerts

list certs

ipsec auto --listcerts

status of all connections

ipsec auto --status

have a look to the established connections

ipsec look

showdefaults ip, nexthop, interface

ipsec showdefaults

collect debugging infos

ipsec barf --short