updating README example to have a volume and to only require NET_ADMIN instead of privileged; fixes #1
This commit is contained in:
parent
488186781c
commit
db2e8e53dc
1 changed files with 4 additions and 2 deletions
|
@ -6,9 +6,11 @@ Recipe to build [`amdavidson/vpn-server`](https://registry.hub.docker.com/u/amda
|
||||||
|
|
||||||
### 1. Start the IKEv2 VPN Server
|
### 1. Start the IKEv2 VPN Server
|
||||||
|
|
||||||
docker run --privileged -d \
|
docker run -d \
|
||||||
--name vpn-server \
|
--name vpn-server \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
|
--cap-add=NET_ADMIN \
|
||||||
|
-v vpn-server-etc:/etc \
|
||||||
-p 500:500/udp -p 4500:4500/udp \
|
-p 500:500/udp -p 4500:4500/udp \
|
||||||
-e "DNS=9.9.9.9" \
|
-e "DNS=9.9.9.9" \
|
||||||
-e "SAFE_SSID=my home ssid" \
|
-e "SAFE_SSID=my home ssid" \
|
||||||
|
@ -22,7 +24,7 @@ Recipe to build [`amdavidson/vpn-server`](https://registry.hub.docker.com/u/amda
|
||||||
amdavidson/vpn-server:latest \
|
amdavidson/vpn-server:latest \
|
||||||
generate-mobileconfig > ikev2-vpn.mobileconfig
|
generate-mobileconfig > ikev2-vpn.mobileconfig
|
||||||
|
|
||||||
*Be sure to replace `vpn1.example.com` with your own domain name and resolve it to you server's IP address.
|
Be sure to replace `vpn1.example.com` with your own domain name and resolve it to you server's IP address.
|
||||||
|
|
||||||
Transfer the generated `ikev2-vpn.mobileconfig` file to your local computer via SSH tunnel (`scp`) or any other secure methods.
|
Transfer the generated `ikev2-vpn.mobileconfig` file to your local computer via SSH tunnel (`scp`) or any other secure methods.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue