Update rany.md
This commit is contained in:
parent
3c04f9e480
commit
0fafe782cf
|
@ -11,10 +11,11 @@ All you need to do to get setup with Rany's On-the-go is the following (run it i
|
||||||
privkey=$(wg genkey)
|
privkey=$(wg genkey)
|
||||||
pubkey=$(printf %s "$privkey" | wg pubkey)
|
pubkey=$(printf %s "$privkey" | wg pubkey)
|
||||||
|
|
||||||
ret=$(curl -s "-Fpubkey=$pubkey" rany1.duckdns.org:5000)
|
ret=$(curl -s -XPOST "-Fpubkey=$pubkey" http://rany1.duckdns.org:5000/)
|
||||||
|
|
||||||
myaddr=$(printf %s "$ret" | jq -rc .client_address)
|
myaddr=$(printf %s "$ret" | jq -rc .client_address)
|
||||||
serveraddr=$(printf %s "$ret" | jq -rc .server_address)
|
serveraddr=$(printf %s "$ret" | jq -rc .server_address)
|
||||||
|
# serverpubkey=$(printf %s "$ret" | jq -rc .server_pubkey)
|
||||||
serverpubkey="CPOuiTlyE/+C/+3iZOv7XrjPEpwl0MFlbTN4nUrQkRo="
|
serverpubkey="CPOuiTlyE/+C/+3iZOv7XrjPEpwl0MFlbTN4nUrQkRo="
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
@ -29,4 +30,6 @@ AllowedIPs = fd00::/8
|
||||||
Endpoint = $serveraddr
|
Endpoint = $serveraddr
|
||||||
PersistentKeepalive = 25
|
PersistentKeepalive = 25
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
exit 0
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue