How to install OpenVPN 2.1-rc20 on PPC8544

Questions that don't fit in any category below may go here
Forum rules
Please note the disclaimer before modifying your Synology Product.

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby joechong » Fri Nov 13, 2009 11:13 am

Hi Dino,
Appreciate the prompt response. Here are the information you required:

DS model: CS407e
Processor Type: Freescale mpc8241 PPC Processor, SATA, 64-bit Memory Bus, 64MB of RAM (got this info from http://forum.synology.com/wiki/index.ph ... _CPU_model)
Linux version of the kernel: 2.6.24

One other thing, I can't seem to locate the module-init-tools pkg within my ipkg installation. The only thing close to it I found is modutils. Are they the same? If not, how can I separately download the module-init-tools pkg that you've mentioned as part of the pre-req in the installation?

dino wrote:I need the following info:

* DS model: ds..../cs....
* Exact processor type: cat /proc/cpuinfo
* Linux version of the kernel: uname -r
joechong
Novice
Novice
 
Posts: 47
Joined: Sun Jul 19, 2009 9:36 am

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby dino » Fri Nov 13, 2009 1:56 pm

You can give it a try: viewtopic.php?f=27&t=18881#p77580

I guess the modutils are the same as module-init-tools. You can check this after installation that /opt/sbin/insmod exists.
Dino
dino
Knowledgeable
Knowledgeable
 
Posts: 308
Joined: Tue Nov 04, 2008 7:18 am
Location: Belgium

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby molchew » Tue Dec 01, 2009 10:12 am

Hi I have a DS209+11 and I am trying to install Open VPN, I am haveing a problem with this section,

Install the sample server config files:
cd /volume1/public/openvpn/openvpn-sample-config-server
./install.sh

When I run this I get the following message;

Home1> cd /volume1/public/openvpn/openvpn-sample-config-server
Home1> ./install.sh
install: cannot stat `openvpn.conf': No such file or directory

I have looked in the openvpn-sample-config-server folder and there is no openvpn.conf file.

Am I doing something wrong?
molchew
I'm New!
I'm New!
 
Posts: 9
Joined: Fri Nov 13, 2009 5:09 pm

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby dino » Tue Dec 01, 2009 11:45 am

you can safely ignore the message, openvpn.conf is not needed. server.conf is needed which should be copied correctly
Dino
dino
Knowledgeable
Knowledgeable
 
Posts: 308
Joined: Tue Nov 04, 2008 7:18 am
Location: Belgium

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby molchew » Tue Dec 01, 2009 4:29 pm

Thanks, I have completed the insallation and run ifconfig, see below. in the tun0 section everything is 0 bytes, is this correct as your example shows traffic.


Home1> ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:32:05:89:29
inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30317 errors:0 dropped:0 overruns:0 frame:0
TX packets:11689 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6847785 (6.5 MiB) TX bytes:2553440 (2.4 MiB)
Interrupt:18 Memory:c0004000-0

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:899 errors:0 dropped:0 overruns:0 frame:0
TX packets:899 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:105840 (103.3 KiB) TX bytes:105840 (103.3 KiB)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
molchew
I'm New!
I'm New!
 
Posts: 9
Joined: Fri Nov 13, 2009 5:09 pm

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby dino » Wed Dec 02, 2009 6:58 am

did you already made a vpn connection from the internet to your synology? if not, it's normal that there's no traffic :-)

Anyway, don't forget to setup a new route on your Router or DSL/Cable modem if you want to access your internal subnet. In you case it would be:

subnet 10.8.0.0 mask 255.255.255.0 gw 192.168.2.3
Dino
dino
Knowledgeable
Knowledgeable
 
Posts: 308
Joined: Tue Nov 04, 2008 7:18 am
Location: Belgium

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby Fluefiske » Thu Dec 03, 2009 12:32 pm

Hallo Dino,

Now from this site, when I try to install:

cd /volume1/public/openvpn/openvpn-sample-config-server
./install.sh

Then it returns with install: cannot stat `openvpn.conf': No such file or directory while the file is in /opt/etc/openvpn ???

What I noticed is that in your install.sh file you write it in capitel letters could that be the problem ?

Thnx in advance,

André
User avatar
Fluefiske
Rookie
Rookie
 
Posts: 38
Joined: Sat Sep 06, 2008 3:36 am

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby dino » Thu Dec 03, 2009 12:35 pm

don't mind that error, you don't need openvpn.conf. the file openvpn needs is server.conf which should be copied correctly. you can safely ignore this error.
Dino
dino
Knowledgeable
Knowledgeable
 
Posts: 308
Joined: Tue Nov 04, 2008 7:18 am
Location: Belgium

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby Fluefiske » Thu Dec 03, 2009 12:53 pm

Dino,

I think I am close,

DiskStation_AvS> /usr/local/etc/rc.d/openvpn.sh restart

Killing OpenVPN processes....success

Unloading OpenVPN kernel modules...
tun.ko: success

Loading OpenVPN kernel modules:
tun.ko: success

Starting OpenVPN in daemon mode....failed
DiskStation_AvS>

Any idea where to look whats going wrong ?

Thnx
User avatar
Fluefiske
Rookie
Rookie
 
Posts: 38
Joined: Sat Sep 06, 2008 3:36 am

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby dino » Thu Dec 03, 2009 1:03 pm

post the output of /opt/var/log/openvpn.log

Did you adjust the server.conf file to point to the IP of your synology server?
Dino
dino
Knowledgeable
Knowledgeable
 
Posts: 308
Joined: Tue Nov 04, 2008 7:18 am
Location: Belgium

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby Fluefiske » Thu Dec 03, 2009 8:59 pm

Yes I did, however I changed the ip and then I runned ifconfig.

It reply's the following:

DiskStation_AvS> ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:32:02:40:1A
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28568 errors:0 dropped:0 overruns:0 frame:0
TX packets:14400 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3533615 (3.3 MiB) TX bytes:3106938 (2.9 MiB)
Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:110 errors:0 dropped:0 overruns:0 frame:0
TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10842 (10.5 KiB) TX bytes:10842 (10.5 KiB)


Is that meaning it runs oke ???
User avatar
Fluefiske
Rookie
Rookie
 
Posts: 38
Joined: Sat Sep 06, 2008 3:36 am

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby dino » Thu Dec 03, 2009 9:15 pm

no it's not. The tun adaptor is not listed, so it's not working. Send me the /var/log/messages file and the /opt/var/log/openvpn.log or /opt/etc/openvpn/openvpn.log as PM so I can see what is wrong. I'm pretty sure the startup scripts still says that openvpn failed to start right?
Dino
dino
Knowledgeable
Knowledgeable
 
Posts: 308
Joined: Tue Nov 04, 2008 7:18 am
Location: Belgium

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby Fluefiske » Thu Dec 03, 2009 9:35 pm

It runs:

eth0 Link encap:Ethernet HWaddr 00:11:32:02:40:1A
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32956 errors:0 dropped:0 overruns:0 frame:0
TX packets:16666 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4009576 (3.8 MiB) TX bytes:3619507 (3.4 MiB)
Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:110 errors:0 dropped:0 overruns:0 frame:0
TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10842 (10.5 KiB) TX bytes:10842 (10.5 KiB)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Tommorow i will try to configure the client and try to get it running with openssl (any tips where to find ?) Isn't it so that the key at the server the same has to be as the key on the client ?

Thanks again and good night,

André
User avatar
Fluefiske
Rookie
Rookie
 
Posts: 38
Joined: Sat Sep 06, 2008 3:36 am

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby dino » Thu Dec 03, 2009 9:47 pm

if you read the post carefuly there are some sample config files on my providers ftp server which you can use as test. However I suggest you generate your own keys otherwise anybody downloading the keys could connect on your lan if your ip/hostname is known.

I will write some howto for doing this on a synology DS in the near future, but you can figure out yourself using this tutorial: http://www.ventanazul.com/webzine/artic ... u-and-hulu
Check the chapter: Create Keys and Certificates

Glad to hear it worked for you.

Could you post your problems regarding the howto so I can adjust it for other users?
Dino
dino
Knowledgeable
Knowledgeable
 
Posts: 308
Joined: Tue Nov 04, 2008 7:18 am
Location: Belgium

Re: How to install OpenVPN 2.1-rc20 on PPC8544

Postby molchew » Fri Dec 04, 2009 10:28 am

Dino,
Thanks for your help, open vpn now works, do you know if it stops the DS from hibernating, as mine has stopped and I am trying to find the cause.
molchew
I'm New!
I'm New!
 
Posts: 9
Joined: Fri Nov 13, 2009 5:09 pm

PreviousNext

Return to General Mods

Who is online

Users browsing this forum: No registered users and 2 guests