OpenVPN failover, killswitch, same provider.

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
swealpha
DD-WRT Novice


Joined: 09 Mar 2019
Posts: 16

PostPosted: Fri Mar 15, 2019 16:43    Post subject: OpenVPN failover, killswitch, same provider. Reply with quote
Hello!

Do you know if DD-WRT has default setup, or easy setup for this:

Failover to next server from a list, same VPN provider. (please see picture.)
Move to next server if internet connection speed is to slow.
Killswitch - if VPN server is down, turn off internet connection.


(This is a new therad, with OpenVPN and same provider)

Thank you all!
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 3015
Location: Netherlands

PostPosted: Sat Mar 16, 2019 12:14    Post subject: Reply with quote
Killswitch is easy Administraton/Commands save Firewall:
Code:
iptables -I FORWARD -i br0 -o $(nvram get wan_iface) -m state --state NEW -j REJECT


This does not work for other bridges or unbridged VAP's

Failover using other VPN servers is difficult google DDWRT and @Sploit he commercially sets up VPN connections.
It can be done but needs some sophisticated scripting (is Nord not the VPN provider which requires a different certificate for each server?)

_________________
Router Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
Simple PBR routing script: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318662
Patched SFE module to work with PBR: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318895
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN server setup guide:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
swealpha
DD-WRT Novice


Joined: 09 Mar 2019
Posts: 16

PostPosted: Fri Mar 22, 2019 14:12    Post subject: Reply with quote
Hello!

I found out dd-wrt has something called watchdog.

That should do the job!

But one thing that i am scared of is that watchdog could make the router loop-reboot for ever if it cant get any response from example 8.8.8.8.

Does watchdog work good for you? please let me know.

Thank you.
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 892
Location: Reading the wiki Indiana U.S.A.

PostPosted: Fri Mar 22, 2019 15:06    Post subject: Reply with quote
You may like this better. Courtesy @sploit.
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1093571#1093571

_________________
SUPPORTED DEVICES -- FIRMWARE DOWNLOAD--IMPORTANT UPGRADE INFO-- <Kong> BUILDS
Qualcomm-Atheros:
Netgear R7800 39000kongat2/25/19 GW WDS AP
Netgear R7800 39000kongat2/25/19 GW WDS STA
Netgear R7500V2 39000kongat2/25/19 WDS STA
Netgear WNDR3700v4 V3.0 39230 std WDS STA
Broadcom :
Netgear R6200v2 38580kongac v24-K3_AC_ARM_STD-WLAN Repeater

swealpha
DD-WRT Novice


Joined: 09 Mar 2019
Posts: 16

PostPosted: Sun Mar 24, 2019 8:47    Post subject: Reply with quote
egc wrote:
...Failover using other VPN servers is difficult google DDWRT and @Sploit he commercially sets up VPN connections.
It can be done but needs some sophisticated scripting (is Nord not the VPN provider which requires a different certificate for each server?)...


Hello!

Okey, I have mailed and PM him.

So we dont know how to do this?

I am very confused about this, because it feels like everybody that is using a vpn provider on there router should need this??? Failover!

Thank you. Shocked Shocked
grc
DD-WRT User


Joined: 11 Jul 2018
Posts: 61

PostPosted: Sun Mar 24, 2019 15:41    Post subject: Reply with quote
one possible solution is to choose a country-IP from this list https://nordvpn.com/servers/ and put "remote-random" to Additional Config.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum 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