mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #6] /etc/ipsec.conf is reverted on restart #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kc1212 on GitHub (Jul 24, 2016).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/6
Hi, I've been using
docker-ipsec-vpn-serverwith a lot of success, there's only one little hiccup. I'm using Android 6.0, so I followed the step here https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#android to change/etc/ipsec.conf(usingdocker cp).However, every time I restart the container or my machine, the
ipsec.conffile gets reverted back to its original state, and then I have to make the same changes again. I'm not sure whether this is an expected behaviour. What's a good way to persist my changes?@hwdsl2 commented on GitHub (Jul 24, 2016):
@kc1212 Hello. Please try the following solution:
First, get a shell inside the container:
Then edit
/opt/src/run.shto preventipsec.conffrom being overwritten at restart:Comment out these lines:
When finished,
exitthe container. Then restart it and check:@kc1212 commented on GitHub (Jul 24, 2016):
Thanks! That solves my issue.