mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 08:15:18 +00:00
Update strongSwan leftupdown script
This commit is contained in:
parent
d38a9a8103
commit
ffdab4d36d
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
cat << EOF | curl -X POST -d @- -H "Event-Type: $PLUTO_VERB" http://ca.example.com/pub/?id=CA-channel-identifier-goes-here
|
||||
{"address": "$PLUTO_PEER_SOURCEIP","peer": "$PLUTO_PEER","identity": "$PLUTO_PEER_ID","routed_subnet": "$PLUTO_MY_CLIENT"}
|
||||
cat << EOF | curl -s -X POST -d @- -H "X-EventSource-Event: $PLUTO_VERB" http://ca.example.com/pub/?id=CA-channel-identifier-goes-here
|
||||
{"address": "$(echo $PLUTO_PEER_CLIENT | sed 's/\/32$//')", "peer": "$PLUTO_PEER", "identity": "$PLUTO_PEER_ID", "routed_subnet": "$PLUTO_MY_CLIENT"}
|
||||
EOF
|
||||
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 41 KiB |
Loading…
Reference in New Issue
Block a user