dd-wrt router, is there any point in spending over a £100

factory to ddwrt is if for a new flash, as in router is running the oem firmware and you want to move to ddwrt

the ddwrt firmware is if you are already running ddwrt and want to upgrade to another version of ddwrt
cheers understand now the difference, doing tomorrow, got caught up on things
 
Hi Guys,

I managed to flash the router tonight, all went well, setup my ssid and passwords, had a look around as a bit new to me,
so im actually setting up PureVPN on it, its not my first choice of vpns these days but tied to them till it runs out,
so im at a bit How to Install and Connect Applet on DD-WRT Router?
so tells me to copy/paste
Go to Administration > Commands and then enter the following command.
eval `wget -q -O - 'https://routerapplet.purevpn.com/cgi-bin/applet-cgi.py'

which installs the applet to set purevpn up, except ive tried a few times and just not happening
firmware version DD-WRT v3.0-r44483 (10/02/20) which is way beyond what they say it needs to be above
DD-WRT

should i be doing this or should i be using one of the below, must admit im handy round pcs but knowing what type of setup on vpn im unsure of.

How to setup PPTP on DDWRT Router
How to setup OpenVPN on DDWRT Router
How to setup OpenVPN via Script Method on DDWRT Router


cheers
gio
 
if your VPN suppoprts OpenVPN config file (most do) then use that, as its built in

I use digibit VPN and have it setup as a OpenVPN client on my router
 
if your VPN suppoprts OpenVPN config file (most do) then use that, as its built in

I use digibit VPN and have it setup as a OpenVPN client on my router
decided to go with what you suggested but couldnt get that to work either so ive contacted purevpn, sure i did everything right, would have rather had the applet installed, atleast you see what your doing , see what they say, cheers
 
decided to go with what you suggested but couldnt get that to work either so ive contacted purevpn, sure i did everything right, would have rather had the applet installed, atleast you see what your doing , see what they say, cheers

ask for a ovpn file, then its straight forward to config on the router give me a shout if you need assistance
 
ask for a ovpn file, then its straight forward to config on the router give me a shout if you need assistance
nearly a week and purevpn have been hopeless, ive tried so many different ways, 3 out of 4 ways below, applet didnt work and there tutorials are good, pictures plenty but doing the script part im not sure if im supposed to take bits out they put in to guide or leave it all in, not that great with scripting
How to Install and Connect Applet on DD-WRT Router?
How to setup OpenVPN on DDWRT Router
How to setup OpenVPN via Script Method on DDWRT Router
 
nearly a week and purevpn have been hopeless, ive tried so many different ways, 3 out of 4 ways below, applet didnt work and there tutorials are good, pictures plenty but doing the script part im not sure if im supposed to take bits out they put in to guide or leave it all in, not that great with scripting
How to Install and Connect Applet on DD-WRT Router?
How to setup OpenVPN on DDWRT Router
How to setup OpenVPN via Script Method on DDWRT Router


when i put this into check
cat /tmp/purevpn.log
the message i got was
**************
Options error: Unrecognized option or missing or extra parameter (s) in [CMD-LINE]: 1: down-pre (2.4.9)
Use --help for more information.
***********************
below is the start of the script but adjusted my password and username and i entered the servers manually like they described



#! / bin / sh

USERNAME = "purevpn0*******"
PASSWORD = "mypassword"

# United Kingdom
REMOTE_SERVERS = "
remote ukg1-ovpn-udp.pointtoserver.com 53
remote vlap-ukle1-ovpn-udp.pointtoserver.com 53
remote ukl1-ovpn-udp.pointtoserver.com 53
remote ukm1-ovpn-udp.pointtoserver.com 53
remote vlus-uk-man1-ovpn-udp.pointtoserver.com 53



#### DO NOT CHANGE below this line ####

CA_CRT = '----- BEGIN CERTIFICATE -----
MIIEoTCCA4mgAwIBAgIJANysBdFD6U2oMA0GCSqGSIb3DQEBBQUAMIGRMQswCQYD
VQQGEwJISzELMAkGA1UECBMCSEsxETAPBgNVBAcTCEhvbmdLb25nMRAwDgYDVQQK
EwdQdXJlVlBOMQswCQYDVQQLEwJJVDEQMA4GA1UEAxMHUHVyZVZQTjEQMA4GA1UE
KRMHUHVyZVZQTjEfMB0GCSqGSIb3DQEJARYQbWFpbEBob3N0LmRvbWFpbjAeFw0x
NDA0MTAwNzI5NDlaFw0yNDA0MDcwNzI5NDlaMIGRMQswCQYDVQQGEwJISzELMAkG
A1UECBMCSEsxETAPBgNVBAcTCEhvbmdLb25nMRAwDgYDVQQKEwdQdXJlVlBOMQsw
CQYDVQQLEwJJVDEQMA4GA1UEAxMHUHVyZVZQTjEQMA4GA1UEKRMHUHVyZVZQTjEf
MB0GCSqGSIb3DQEJARYQbWFpbEBob3N0LmRvbWFpbjCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBAJYqt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QewitJgIuc + Q ==
----- END CERTIFICATES ----- '

AUTH_KEY = '----- BEGIN OpenVPN Static key V1 -----
e30af995f56d07426d9ba1f824730521
d4283db4b4d0cdda9c6e8759a3799dcb
7939b6a5989160c9660de0f6125cbb1f
585b41c074b2fe88ecfcf17eab9a33be
1352379cdf74952b588fb161a93e13df
9135b2b29038231e02d657a6225705e6
868ccb0c384ed11614690a1894bfbeb2
74cebf1fe9c2329bdd5c8a40fe882062
4d2ea7540cd79ab76892db51fc371a3a
c5fc9573afecb3fffe3281e61d72e915
79d9b03d8cbf7909b3aebf4d90850321
ee6b7d0a7846d15c27d8290e031e951e
19438a4654663cad975e138f5bc5af89
c737ad822f27e19057731f41e1e254cc
9c95b7175c622422cde9f1f2cfd3510a
dd94498b4d7133d3729dd214a16b27fb
----- END OpenVPN Static key V1 ----- '

OPVPNENABLE = `nvram get openvpncl_enable | awk '$ 1 == "0" {print $ 1}' `

if ["$ OPVPNENABLE"! = 0]
then
nvram set openvpncl_enable = 0
nvram commit
fi

sleep 30
mkdir / tmp / purevpncl; cd / tmp / purevpncl
echo -e "$ USERNAME \ n $ PASSWORD"> userpass.conf
echo "$ CA_CRT"> ca.crt; echo "$ AUTH_KEY"> auth.key
echo "#! / bin / sh"> route-up.sh; echo -e "#! / bin / sh \ nsleep 2"> route-down.sh
echo "#! / bin / sh
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 "> /tmp/.rc_firewall
chmod 644 ca.crt; chmod 600 auth.key userpass.conf; chmod 700 route-up.sh route-down.sh
chmod 700 /tmp/.rc_firewall
sleep 30
echo "client
dev tun
proto udp
script-security 2
hand-window 60
verb 3
mute 5
mtu-disc yes
cipher aes-256-cbc
auth sha1
adaptive comp-lzo
tun-mtu 1500
resolv-retry infinite
nobind
persist-key
persist-tun
keepalive 20 120
reneg-sec 0
log purevpn.log
ca ca.crt
tls-auth auth.key 1
daemon
auth-user-pass userpass.conf
remote-random
$ REMOTE_SERVERS "> openvpn.conf
ln -s /tmp/purevpncl/purevpn.log /tmp/purevpn.log
/tmp/.rc_firewall
(killall openvpn; openvpn --config /tmp/purevpncl/openvpn.conf --route-up /tmp/purevpncl/route-up.sh --down-pre /tmp/purevpncl/route-down.sh) &

exit 0
 
nearly a week and purevpn have been hopeless, ive tried so many different ways, 3 out of 4 ways below, applet didnt work and there tutorials are good, pictures plenty but doing the script part im not sure if im supposed to take bits out they put in to guide or leave it all in, not that great with scripting
How to Install and Connect Applet on DD-WRT Router?
How to setup OpenVPN on DDWRT Router
How to setup OpenVPN via Script Method on DDWRT Router

on the router did you setup a VPN client, this is where you enter your details from the ovpn config file, no need for scripts or anything
 
why are you using port 53 for the port (53 is reserved for DNS), common VPN port is 1194 over udp
 
just as as a test i changed it to below and ran - cat /tmp/purevpn.log and error is
Options error: Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: down-pre (2.4.9)
Use --help for more information.


i get the info from there website
DD-WRT and it gives you the file location to download, its there script that has 53, all im supposed to do is add username /password and servers
attached the txt file


#!/bin/sh

USERNAME="purevpn*******"
PASSWORD="********!"

# United Kingdom
REMOTE_SERVERS="
remote ukg1-ovpn-udp.pointtoserver.com 1194
remote vlap-ukle1-ovpn-udp.pointtoserver.com 1194
remote ukl1-ovpn-udp.pointtoserver.com 1194
remote ukm1-ovpn-udp.pointtoserver.com 1194
remote vlus-uk-man1-ovpn-udp.pointtoserver.com 1194
 
just tried this but still same error (changed my login details) getting sick of purevpn already
to be honest i wish they would look into this not working at first, was more like an app - How to Install and Connect Applet on DD-WRT Router?



#!/bin/sh

USERNAME="purevpn*********"
PASSWORD="***********"

# United Kingdom
REMOTE_SERVERS="
remote ukg2-ovpn-udp.pointtoserver.com 53
remote ukl2-ovpn-udp.pointtoserver.com 53
remote ukm2-ovpn-udp.pointtoserver.com 53


#### DO NOT CHANGE below this line ####

CA_CRT='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BxMISG9uZ0tvbmcxEDAOBgNVBAoTB1B1cmVWUE4xCzAJBgNVBAsT
AklUMRAwDgYDVQQDEwdQdXJlVlBOMRAwDgYDVQQpEwdQdXJlVlBOMR8wHQYJKoZI
hvcNAQkBFhBtYWlsQGhvc3QuZG9tYWluggkA3KwF0UPpTagwDAYDVR0TBAUwAwEB
/zANBgkqhkiG9w0BAQUFAAOCAQEAAhLQQmkKWJdyGqgMSKOWXSKN2WXTDjIdb9bK
Q8uHeq0LYCcPoRh8VYJg2X4UWR/KO9pKaG+iZJw4Jqz4GQJjjJLKHfsWwj790ay0
7U5KT08qmxFaxZUYn663H9b0+Zud1spTsTJjVe1eoRk6IDbbB4OMUzN9zyWEn6er
xi6llIAjQX1qtlBQasmTAbRtbSsCsZAxL2kXysULIdLrQP0iTgMQqqkv5zvpdEKN
3ciKCd8OHEhHOlAwA0/DNy3dg3Et0F2hNMDJhqMpxXsbKtGJ/rzGXQF2geEVzLZA
o42I1wBOSZLTX1fO1gl3gAGS9aYg5o31rrpBKzQewitJgIuc+Q==
-----END CERTIFICATE-----'

AUTH_KEY='-----BEGIN OpenVPN Static key V1-----
e30af995f56d07426d9ba1f824730521
d4283db4b4d0cdda9c6e8759a3799dcb
7939b6a5989160c9660de0f6125cbb1f
585b41c074b2fe88ecfcf17eab9a33be
1352379cdf74952b588fb161a93e13df
9135b2b29038231e02d657a6225705e6
868ccb0c384ed11614690a1894bfbeb2
74cebf1fe9c2329bdd5c8a40fe882062
4d2ea7540cd79ab76892db51fc371a3a
c5fc9573afecb3fffe3281e61d72e915
79d9b03d8cbf7909b3aebf4d90850321
ee6b7d0a7846d15c27d8290e031e951e
19438a4654663cad975e138f5bc5af89
c737ad822f27e19057731f41e1e254cc
9c95b7175c622422cde9f1f2cfd3510a
dd94498b4d7133d3729dd214a16b27fb
-----END OpenVPN Static key V1-----'

OPVPNENABLE=`nvram get openvpncl_enable | awk '$1 == "0" {print $1}'`

if [ "$OPVPNENABLE" != 0 ]
then
nvram set openvpncl_enable=0
nvram commit
fi

sleep 30
mkdir /tmp/purevpncl; cd /tmp/purevpncl
echo -e "$USERNAME\n$PASSWORD" > userpass.conf
echo "$CA_CRT" > ca.crt; echo "$AUTH_KEY" > auth.key
echo "#!/bin/sh" > route-up.sh; echo -e "#!/bin/sh\nsleep 2" > route-down.sh
echo "#!/bin/sh
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" > /tmp/.rc_firewall
chmod 644 ca.crt; chmod 600 auth.key userpass.conf; chmod 700 route-up.sh route-down.sh
chmod 700 /tmp/.rc_firewall
sleep 30
echo "client
dev tun
proto udp
script-security 2
hand-window 60
verb 3
mute 5
mtu-disc yes
cipher aes-256-cbc
auth sha1
comp-lzo adaptive
tun-mtu 1500
resolv-retry infinite
nobind
persist-key
persist-tun
keepalive 20 120
reneg-sec 0
log purevpn.log
ca ca.crt
tls-auth auth.key 1
daemon
auth-user-pass userpass.conf
remote-random
$REMOTE_SERVERS" > openvpn.conf
ln -s /tmp/purevpncl/purevpn.log /tmp/purevpn.log
/tmp/.rc_firewall
(killall openvpn; openvpn --config /tmp/purevpncl/openvpn.conf --route-up /tmp/purevpncl/route-up.sh --down-pre /tmp/purevpncl/route-down.sh) &

exit 0
 
on the router did you setup a VPN client, this is where you enter your details from the ovpn config file, no need for scripts or anything
see the pic. done so much id probably be better resetting or getting another vpn app, so easy to make a mistake but i have followed there guide pages
 

Attachments

  • open vpn client.jpg
    open vpn client.jpg
    105.8 KB · Views: 4
not sure why you are using port 53 as thats for DNS

here is my settings on my router I use digitbit vpn

I pasted the CA cert from the open vpn file I got

I enter my login on the web page rather then add it in config settings and point to the text file with the details

vpn1.jpgvpn2.jpg
 
not sure why you are using port 53 as thats for DNS

here is my settings on my router I use digitbit vpn

I pasted the CA cert from the open vpn file I got

I enter my login on the web page rather then add it in config settings and point to the text file with the details

View attachment 130800View attachment 130801
;):):)i have tried so many times, all the crap from purevpn, tried all 3 ways, no luck, mind u im a bit away in the head right now but im sure i was right and tried everything correct, im ok right now so no major rush to get this working but purevpn help crap has been atrocious from there site
 
Back
Top