run vpnc in a docker container on synology
1.0K
installation:
cd /usr/syno/etc.defaults/rc.d, then download S01tun.sh by doing a
wget https://github.com/dsheyp/docker-vpnc/blob/master/S01tun.sh
and make it executable by the following command:
chmod +x /usr/syno/etc.defaults/rc.d/S01tun.shcd /volume1/homes/YOUR_SYNOLOGY_USERNAME
, then download vpn1.conf by doing a
wget https://github.com/dsheyp/docker-vpnc/blob/master/vpn1.conf
and edit it to your needs by doing a
vi vpn1.confdocker run --privileged --name vpnc -d -t --volume /volume1/homes:/homes --cap-add=NET_ADMIN dsheyp/docker-vpnc
this method for starting the container is only needed the first time (as the synology ui does not allow the --privileged option), if you have to restart the container later, you can do this via the docker ui interface provided by your synologyusing vpnc:
in ssh console go into your docker container by doing a
docker exec -it vpnc bash
in your docker container open a vpnc connection by doing
vpnc /homes/YOUR_SYNOLOGY_USERNAME/vpn1.conf
create a mount point by doing
mkdir -p /homes/YOUR_SYNOLOGY_USERNAME/CHOOSE_A_MOUNT_POINT_NAME
you can now mount a remote directory by doing
mount.cifs //remote-server-name.remote-domain-name.com/REMOTE_DIRECTORY_NAME /homes/YOUR_SYNOLOGY_USERNAME/CHOOSE_A_MOUNT_POINT_NAME -o user=VPN_USERNAME,nounix,noserverino,iocharset=utf8
Content type
Image
Digest
Size
104.6 MB
Last updated
about 10 years ago
docker pull dsheyp/docker-vpnc