Help

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
aamirshanu
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 17

PostPosted: Tue Oct 10, 2017 8:30    Post subject: Help Reply with quote
Does any one know how to auto connect openvpn in dd wrt . I've entered and saved my VPN client settings settings on http://192.168.1.1 -> Services -> VPN. When clicking "Apply Settings" on that same page, the client starts and connects immediately. Under Status -> OpenVPN it says State: Client: CONNECTED SUCCESS as expected and I can browse the internet with my VPN's IP.
However, if I reboot or power cycle the router, the OpenVPN client fails to start. I have to manually start it either by simply clicking the Apply settings button again iam with pia firmware asus rtac68u c1
Sponsor
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Oct 10, 2017 9:48    Post subject: Reply with quote
Add the following to the Additional Config box.
*One per line

persist-key
persist-tun
persist-remote-ip

Then click Apply Settings

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
aamirshanu
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 17

PostPosted: Tue Oct 10, 2017 10:03    Post subject: Reply with quote
iam using these lines as instructions given by pia and also my router was ac66u which i used firmware of ac68u now it has been changed to ac68u c1 on dd wrt do i have to upgrade? something?

persist-key
persist-tun
tls-client
remote-cert-tls server
aamirshanu
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 17

PostPosted: Tue Oct 10, 2017 10:35    Post subject: Reply with quote
i used these commands and still same issue
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Oct 10, 2017 10:49    Post subject: Reply with quote
I’m not quite following you. Are you saying your router is an Asus ac66u, but you installed the firmware for the ac68u?

Did you try adding persist-remote-ip ?
Also, do you have any other commands applied such as a 'kill switch'?

Here is latest beta firmware for Asus ac66u:
ftp://ftp.dd-wrt.com/betas/2017/09-27-2017-r33413/asus-rt-ac66u/

*Before upgrading firmware I would recommend reading what other Forum members who own your model are reporting about latest builds. Just to be safe.

Sorry I’m not very familiar with PIA, but the above posted 'additional config' commands should work regardless of VPN Provider.

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
aamirshanu
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 17

PostPosted: Tue Oct 10, 2017 11:03    Post subject: Reply with quote
my router model was ac66u b1 i upgraded with ac68u firwmare which now became ac68u c1 dd wrt
aamirshanu
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 17

PostPosted: Tue Oct 10, 2017 12:11    Post subject: Reply with quote
please the attachment file
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Tue Oct 10, 2017 13:18    Post subject: Reply with quote
I use PIA and have no problems reconnecting.
What build are you using?
I am not sure about the latest build, a stable build seems 33215.

The recommended settings by PIA should work, I use the following for PIA UDP (a lot of the recommended settings are already in place by default):
Code:
### Keep Alive
reneg-sec 300
ping 10
ping-restart 60

### Speed Tweaks 
sndbuf 523216
rcvbuf 523216

### General
remote-cert-tls server
disable-occ

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Oct 10, 2017 13:23    Post subject: Reply with quote
Thanks @egc, I was hoping someone with PIA would jump in! Mr. Green


Latest beta firmware build by Brainslayer for Asus RT-AC68U.
ftp://ftp.dd-wrt.com/betas/2017/09-27-2017-r33413/asus-rt-ac68u/

Latest beta firmware build by Kong. See list of supported models for correct build id.
http://desipro.de/ddwrt/K3-AC-Arm/TEST/

*Beta versions are untested and may be unstable. Here’s the threads for the above builds, respectively:

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

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

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
aamirshanu
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 17

PostPosted: Tue Oct 10, 2017 13:29    Post subject: Reply with quote
@egc where i use this code in which section?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Tue Oct 10, 2017 13:57    Post subject: Reply with quote
In the additional config of the openVPN, but I doubt if this will work. I did not have any problem with the settings you have already used and are recommended by PIA.
So it could be a build issue and you then have to use a newer build or it could be a configuration error.

So the question remains what build are you using?

Second question what does the openVPN status screen shows when you have rebooted?

It sometimes helps to specify the IP address of the PIA server instead of the name, DNS does sometimes not resolve in time.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
aamirshanu
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 17

PostPosted: Tue Oct 10, 2017 14:05    Post subject: Reply with quote
aim newbie i dont know how to check build version if its old how i can upgrade ? when i reboot the router is says nothing just bland page when i connect manually its shows logs i have attached some pictures please see attachment
aamirshanu
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 17

PostPosted: Tue Oct 10, 2017 14:06    Post subject: Reply with quote
some more
aamirshanu
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 17

PostPosted: Tue Oct 10, 2017 14:08    Post subject: Reply with quote
some more
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Oct 10, 2017 14:16    Post subject: Reply with quote
Build version will be in top right corner of GUI (Graphic User Interface aka DD-WRT Control Panel)
_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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