openvpn with Synology CS407

I took the liberty to copy from the following tutorial:  nas-forum

Setup of your CS407

  1. ssh login to your CS407
  2. ipkg -force-depends install openvpn (provided you have configured optware for your CS407) — link
  3. mkdir /dev/net
  4. mknod /dev/net/tun c 10 200
  5. mkdir /lib/modules/2.6.15
  6. download tun.ko (this is the kernel 2.6 version; to download you will have to register)
  7. cp tun.ko /lib/modules/2.6.15/
  8. echo 1 > /proc/sys/net/ipv4/ip_forward

If you want to download the sample server/client configuration files, follow below links:

server
client

Then:

  1. cp -R /volume1/public/config /opt/etc/openvpn/
  2. cd /opt/etc/openvpn
  3. chown -R root openvpn
  4. chgrp -R root openvpn
  5. chmod -R 755 openvpn

For autostart:

  1. cp /opt/etc/openvpn/config/S24openvpn /opt/etc/init.d/
  2. 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

Comments (One comment)

[...] 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. [...]

openvpn and PKI and Synology CS407 at my blog / January 3rd, 2009, 18:28 / #

Post a comment