Req: VPN daemon

Re: Req: VPN daemon

Postby fvdw » Sun May 13, 2012 5:30 pm

I just finished compiling a new kernel with universal tun/tap driver include (s o no need to load as module) and openvpn (version 2.2.2)
The new kernel runs ok.

this is the version info of openvpn as compiled today

Code: Select all
root@fvdwsl-nwsp2:/ # openvpn --version
OpenVPN 2.2.2 armv5tel-unknown-linux-gnueabi [SSL] [EPOLL] [eurephia] built on May 12 2012
Originally developed by James Yonan
Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>

  $ ./configure --prefix=/usr --disable-lzo

Compile time defines:  ENABLE_CLIENT_SERVER ENABLE_DEBUG ENABLE_EUREPHIA ENABLE_FRAGMENT ENABLE_HTTP_PROXY ENABLE_MANAGEMENT ENABLE_MULTIHOME ENABLE_PORT_SHARE ENABLE_SOCKS USE_CRYPTO USE_LIBDL USE_SSL
root@fvdwsl-nwsp2:/ #


I have sent you the files, see pm inbox
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Req: VPN daemon

Postby firwareslut » Sun May 13, 2012 7:57 pm

Thanks, I will try it tomorrow since I am off to bed soon :P I will let you know how it goes.

Shouldnt be too hard since I have setup many openvpn servers before and already have keys prepared.
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Req: VPN daemon

Postby fvdw » Wed May 16, 2012 6:44 pm

did you already do some testing ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Req: VPN daemon

Postby firwareslut » Wed May 16, 2012 7:56 pm

Not yet, will get around to it tomorrow. Not been at home much the last couple of days. It's national holidays now so i have 4 days off :D
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Req: VPN daemon

Postby firwareslut » Mon Jun 18, 2012 8:25 am

Have you tried running the PPTP VPN with the latest firmware? I copied over the kernel you gave me and reinstalled the PPTP packages but cannot get the server to run any longer. When i run /usr/sbin/pptpd it does nothing. No error message or anything.
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Req: VPN daemon

Postby fvdw » Mon Jun 18, 2012 5:01 pm

yes and it runs ok. In fact I always have been running it with having 2.12 installed (being the developers has some advantages ;) ) Furthermore 12-1 has everything that 12-0 has...

Did you install the pppd binary as well ?
Without this binary pptpd won't run

also don't forget to set the permission of the binaries and shared object libs as executable (755)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Req: VPN daemon

Postby firwareslut » Mon Jun 18, 2012 7:20 pm

Yeah I copied over the exact package and set the perms to 755. Does the new kernel already contain the stuff required for the vpn? I tried the 12 and 13 you sent me but something seems to be wrong.
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Req: VPN daemon

Postby fvdw » Mon Jun 18, 2012 7:50 pm

just tried it once again on a fresh 12-1 install and it works.

I tested in with kernel 14 and the pptpd-pppd package from 12 may with bcrelay enabled
Kernel 14 is equla to kernel 13 for vpn related support. The only difference to kernel 13 is support for gpt (efi) partition structure. It must run also with kernel 13

I started it with
pptpd -d --conf /etc/pptpd.conf

when typing ps -ef I can see the server in the program list and I can connect from windows 7 with vpn just fine

(besides the binaries you need the stuff in /etc/ppp as well)

:dontknow must be something you are doing wrong
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Req: VPN daemon

Postby firwareslut » Mon Jun 18, 2012 8:18 pm

Yeah it is all there. There arent any symlinks i am forgetting or something?

oot@fvdwsl-base:/ # pptpd -d --conf /etc/pptpd.conf
root@fvdwsl-base:/ #
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Req: VPN daemon

Postby fvdw » Mon Jun 18, 2012 8:48 pm

nope

I said I made a fresh install of fvdw-sl-12-1, copied the files over of the 12 may package, set the permission, started the daemon and it is up and running, everything works

ps It is normal that the command line will return without any message when starting the daemon
That doesn't mean it is not running (its a daemon :snicker )

give the command
Code: Select all
ps -ef

and see if it is running

It gives output like this
Code: Select all
root@fvdwsl-nwsp2:/ # pptpd -d --conf /etc/pptpd.conf
root@fvdwsl-nwsp2:/ #
root@fvdwsl-nwsp2:/ #
root@fvdwsl-nwsp2:/ # ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 21:43 ?        00:00:00 init
root         2     0  0 21:43 ?        00:00:00 [kthreadd]

<snip>

root      1434   915  0 21:53 ?        00:00:01 dropbear -p 22 -r /rw_fs/etc/dropbear/dropbear_rsa_host_key
root      1435  1434  0 21:53 ttyp0    00:00:00 -sh
root      6029     2  0 22:39 ?        00:00:00 [flush-8:0]
root      6199     2  0 22:45 ?        00:00:00 [kworker/0:0]
root      6465     2  0 22:49 ?        00:00:00 [flush-7:0]
root      6479     1  0 22:49 ?        00:00:00 pptpd -d --conf /etc/pptpd.conf
root      7015  1435  0 22:57 ttyp0    00:00:00 ps -ef
root@fvdwsl-nwsp2:/ #


the line with in the ps -ef output with pptd indicates that the daemon is running
As soon as you connect with vpn pppd will come to it. pppd is actually making the vpn connection
When vpn is connected and you give the command "ifconfig" you will see that the ppp0 interface is added in the output
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Development

Who is online

Users browsing this forum: Bing Bot and 13 guests