siomiz / SoftEtherVPN

A Docker Automated Build Repository for SoftEther VPN
https://hub.docker.com/r/siomiz/softethervpn/
MIT License
455 stars 175 forks source link

Virtual Hubs disappear after container restarts #38

Closed darkson95 closed 6 years ago

darkson95 commented 6 years ago

I use this docker container on my Synology and after a container restart, all the virtual hubs disappear and the settings are set to default. Is there any possibility to save the virtual hub configuration? Thanks

siomiz commented 6 years ago

All configuration is written to /opt/vpn_server.config file inside the container, so you can mount it from host to make it survive across container restarts. docker run -v /path/on/host/vpn_server.config:/opt/vpn_server.config ... siomiz/softethervpn

darkson95 commented 6 years ago

The problem was that the VPN Server Manager did not save the config file because he did not have enough permissions. I copied the config file manually and now it works. Thanks a lot! :)