Do you guys know if its possible to use "failover" function for openvpn on openWRT firmware?
Other firmware works also, dont need to be openWRT.
Thank you for recommendations!!
I could donate or pay if someone could help me setup this, please. (Dont want to be rude but i have tried with this for over 3 weeks now)
Since we are in Openwrt forum, let's discuss about Openwrt
Mwan3 can handle multiple levels of primary and backup interfaces, load-balanced or not. Different sources can have different primary or backup WANs.
Thank you all!
I will try to translate and read all that text so i fully understand it.
So you guys mean this is possible with openWRT from almost default?
I am trying really hard to make the Mwan3 setup.
But i dont understand it, please help.
" Mwan3 routing
The following steps are taken to route a packet with mwan3 (version 2.0 or higher):
Every incoming packet (this includes router originated traffic) is handled by the iptables mwan3_hook. This hook takes 5 steps:
Restore mark if previous set. If successful marked, goto step 5.
Check if the packet arrives on a wan interface. If originated from a local connected ip network, then mark packet with default iface_id. If the packet is from another (non-local) network and arrives on wan interface, then mark it with iface_id. If successful marked, goto step 5."
Where do I do this?
Thank you, you guys are awsome on this!
I have tried really hard for 3 weeks now, with different solutions.
I cant make it work, i could pay or donate to OpenWRT if someone could help me with this.
Sorry for this.
I see only one LAN interface there. What are your WAN interfaces? Have you installed the luci-app-mwan3 as well to help you configuring it?
Post here the following outputs.
ip -4 addr; ip -4 ro; ip -4 ru; cat /etc/config/network; cat /etc/config/firewall; cat /etc/config/mwan3
I tought i was going to test this over vmware fusion to start with.
If it works good i can order a openwrt router.
(my computer ip->vmware openwrt ip -> wan)
What do you think?
Thank you so much!
Still you need 2 wan interfaces to test it. I am not an expert with vmware, but I suppose it can be done.
I don't see any reason not to go ahead and buy a router for that. It is a pretty straight forward solution.
Did you try to utilize multiple
It should be pretty easy to set up.
You can also use multiple options
In addition specify these options:
connect-retry n [max]
keepalive interval timeout
dear Vgaetere, cant you please send me a private message?
So you mean multiple connection blocks is more easy than mwan3 for a newbie like me?
Go to your VPN-provider site, select several servers and modify the VPN-profile like this:
remote vpn1.example.org ...
remote vpn2.example.org ...
remote vpn3.example.org ...
connect-retry 5 1
keepalive 10 30
Smart! So you mean i could use just one provider with multiple servers to reconnect to?
Instead of choosing 2 providers choose 1 provider with multiple servers.
And also this mwan3, will it really work any good with load balancing on a simple router? That sounds like we need a mini-pc for.
Thank you for opening my eyes, i will look a little bit more on this!
Yep, it's very unlikely that all the servers are down at the same time.
And you can manually switch to another VPN-provider via LuCI anyway.
I love you, thank you! You are so right.
I just need to get my Linksys WRT32X now.
Do we have a guide for this on OpenWRT or is it openVPN docs we need to read?
hi, i've a question about your solution, in my VPN-profile i have a line with this:
how i can modify to fit multiple servers?
thanks in advance for help!
It is intrinsic feature of OpenVPN (specifying of multiple servers by remote directive). However it works only for one provider. I think, you should create script, checking connectivity and switching config-files, e.g. by creating symlinks to existing configuration files. You should also check killswitch part of my manual:
I can only recommend you to create script, checking connection and modifying symlinks to existing configuration files.
If you subscribe to multiple independent VPN companies, like the OP of this thread, you would need to simultaneously run completely separate instances of the OpenVPN client for each one. Then use mwan3 to treat the tunnel entrance network of each one as a separate "WAN".