openvpn with Synology CS407
January 3rd, 2009 § 1 Comment
I took the liberty to copy from the following tutorial: nas-forum
Setup of your CS407
- ssh login to your CS407
- ipkg -force-depends install openvpn (provided you have configured optware for your CS407) — link –
- mkdir /dev/net
- mknod /dev/net/tun c 10 200
- mkdir /lib/modules/2.6.15
- download tun.ko (this is the kernel 2.6 version; to download you will have to register)
- cp tun.ko /lib/modules/2.6.15/
- echo 1 > /proc/sys/net/ipv4/ip_forward
If you want to download the sample server/client configuration files, follow below links:
Then:
- cp -R /volume1/public/config /opt/etc/openvpn/
- cd /opt/etc/openvpn
- chown -R root openvpn
- chgrp -R root openvpn
- chmod -R 755 openvpn
For autostart:
- cp /opt/etc/openvpn/config/S24openvpn /opt/etc/init.d/
- chmod 755 /opt/etc/init.d/S24openvpn
Start your VPN Server:
cd /opt/etc/init.d
sh S24openvpn
Download openvpn client
- to be able to reach other private subnets behind the server (CS407)when connecting through VPN add a route on your local clients (e.g. 192.168.1.111): “route ADD -p 192.168.11.0 MASK 255.255.255.0 192.168.1.7″
[192.168.11.0 - your VPN network] : [192.168.1.7 - your CS407] : [192.168.1.0 - your local network]
==> next step is to create your own PKI, which you will find here
[...] The following is a summary of all required steps to enable your CS407 to use openvpn with your own PKI – I was following these instructions. If you want to install and configure openvpn, follow this link. [...]