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

    1. 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:

server
client

Then:

    1. 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:

    1. 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

§ One Response to openvpn with Synology CS407

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading openvpn with Synology CS407 at Bernhard Hensler.

meta

Follow

Get every new post delivered to your Inbox.