[Solved] DIR615 OpenVPN problems

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Ralink SoC based Hardware
Author Message
skumdifusen
DD-WRT Novice


Joined: 19 Feb 2012
Posts: 9

PostPosted: Mon Feb 20, 2012 10:15    Post subject: [Solved] DIR615 OpenVPN problems Reply with quote
hello,

i am trying to get my router working as client for OpenVPN and could need some help.

I have an Dlink DIR 615 rev. d3 running BrainSlayers firmware: DD-WRT v24-sp2 (12/14/11).

I used the guide by jnjn from the bottom of the this thread
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=71556



i run these command manually via telnet
Code:
cd /
#!/bin/sh
cd /tmp
wget ftp://192.168.178.1/Dokumente/setup_openvpn_dir615d.sh

chmod +x ./setup_openvpn_dir615d.sh

./setup_openvpn_dir615d.sh

cd /
cd /tmp/openvpn/client
wget ftp://192.168.178.1/Dokumente/BGVPN/clnt.ovpn

mkdir bgvpn
cd bgvpn
wget ftp://192.168.178.1/Dokumente/BGVPN/ca.crt
wget ftp://192.168.178.1/Dokumente/BGVPN/cert.crt
wget ftp://192.168.178.1/Dokumente/BGVPN/key.key
wget ftp://192.168.178.1/Dokumente/BGVPN/tls.key
wget ftp://192.168.178.1/Dokumente/BGVPN/security2

cd /tmp/openvpn
export LD_LIBRARY_PATH=/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib:/tmp/openvpn/lib

cd /tmp/openvpn
rmmod tun

insmod /tmp/openvpn/lib/tun.ko

/tmp/openvpn/bin/openvpn --config /tmp/openvpn/client/clnt.ovpn


[EDIT]

I guess the Router is already connected to my VPN provider.
i pinged google.com via telnet and got answer from 209.85.148.138 .
But somehow all connected devices on Router dont have access to the internet. Is there anything i have to set on the Router to finish?

[Edit2]

Ok, got it working now. Jnjn says with his new script the firewall script is not needed anymore, but i only get it working with the Firewall-script.
i needed to add these lines


Code:

iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
iptables -I INPUT -i tun0 -j REJECT
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE


Last edited by skumdifusen on Wed Feb 22, 2012 10:45; edited 1 time in total
Sponsor
lchiu7
DD-WRT Novice


Joined: 26 Feb 2012
Posts: 4

PostPosted: Tue Feb 28, 2012 2:02    Post subject: Reply with quote
Hi

I am trying to do the same thing. Out of interest where did you get the OpenVPN binaries from?

Di your VPN provider give you the certs you needed?

Thanks
skumdifusen
DD-WRT Novice


Joined: 19 Feb 2012
Posts: 9

PostPosted: Fri Mar 02, 2012 20:02    Post subject: Reply with quote
yes, you will get your needed files from your VPN Provider.
lchiu7
DD-WRT Novice


Joined: 26 Feb 2012
Posts: 4

PostPosted: Fri Mar 02, 2012 20:55    Post subject: Reply with quote
Got the certs okay but it's not clear where I should get the binaries. It looks so hard I might have to move to another VPN vendor
skumdifusen
DD-WRT Novice


Joined: 19 Feb 2012
Posts: 9

PostPosted: Sat Mar 03, 2012 15:16    Post subject: Reply with quote
you mean the openvpn package?
The Link from my first Post

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=71556

scroll down to the bottom of the page jnjn provides the package.

[EDIT]
http://download.qi.yi.org:10581/files/download/linux/mips/2.6/openvpn_for_k26_mipsel_dir615d.rar

by jnjn
lchiu7
DD-WRT Novice


Joined: 26 Feb 2012
Posts: 4

PostPosted: Sun Mar 04, 2012 7:10    Post subject: Reply with quote
Thanks

So you were able to install OpenVPN just with the binaries you pointed to and the code you have in the post?

Out of interest which VPN vendor are you using? I am trying to Astrill but their code doesn't work since it relies on OpenVPN being installed. On the other hand Overplay.net works fine with their code so their code must load the OpenVPN binaries but it's hard to tell.
skumdifusen
DD-WRT Novice


Joined: 19 Feb 2012
Posts: 9

PostPosted: Sun Mar 04, 2012 11:02    Post subject: Reply with quote
Quote:
So you were able to install OpenVPN just with the binaries you pointed to and the code you have in the post?


jep. + his Firewall code he mentioned in his first version of tutorial. I added these in my first post.

I have ivacy and bgvpn account. Both working great.
hamborambo
DD-WRT Novice


Joined: 11 Apr 2013
Posts: 5

PostPosted: Sun Apr 14, 2013 9:05    Post subject: OpenVPN Errpr Reply with quote
Hi everyone. I'm trying to get the scripts to work on my dir-615 D4 but unfortunately get the following error when trying to start openvpn. DD-WRT v24-sp2 (02/17/11) std - build 16214

/tmp/openvpn/bin/openvpn: symbol '__ctype_toupper': can't handle reloc type 0x7e
root@DD-WRT2:/tmp/openvpn#
hamborambo
DD-WRT Novice


Joined: 11 Apr 2013
Posts: 5

PostPosted: Sun Apr 14, 2013 13:03    Post subject: Reply with quote
Sun Apr 14 15:00:20 2013 OPTIONS IMPORT: timers and/or timeouts modified
Sun Apr 14 15:00:20 2013 OPTIONS IMPORT: --ifconfig/up options modified
Sun Apr 14 15:00:20 2013 OPTIONS IMPORT: route
Getting a bit further on. Alter the build to match post 1 but now get Linux ip link set failed.


options modified
Sun Apr 14 15:00:20 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options
modified
Sun Apr 14 15:00:20 2013 TUN/TAP device tun0 opened
Sun Apr 14 15:00:20 2013 TUN/TAP TX queue length set to 100
Sun Apr 14 15:00:20 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Apr 14 15:00:20 2013 /usr/sbin/ip link set dev tun0 up mtu 1500
Sun Apr 14 15:00:20 2013 Linux ip link set failed: could not execute external pr
ogram
Sun Apr 14 15:00:20 2013 Exiting due to fatal error
root@DD-WRT2:/tmp/openvpn#
Manuel_D78
DD-WRT Novice


Joined: 15 Mar 2014
Posts: 6

PostPosted: Mon Jun 30, 2014 9:50    Post subject: no VPN on 615 at all? Reply with quote
Hi

I am unsuccessful to get VPN to work on 615 since March.
I have an account on privateinternetaccess.com

Now I read in a different thread that the 615 only has 4 MB flash and is unable to do VPN. Even though it has a panel for VPN settings in the DD-WRT software.

Is this confirmed?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Ralink SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum