OpenWRT - Configure Multiwan Failover with mwan3

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 113

  • @pdk005
    @pdk005 3 ปีที่แล้ว +3

    Just wanted to say thank you for your mwan3 videos. I was able to follow along easily and thus far the two connections have flawlessly rolled over and load balanced without issue.

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว

      Hi, thanks for the comment. There are other OpenWRT tutorials on the channel, you can check it out here th-cam.com/play/PL58__w3t_eTbcBQ9oJ8jXCxPtBiac59vC.html

  • @lephenix1237
    @lephenix1237 หลายเดือนก่อน

    Thanks so much for this helpful video. I was trying to figure this one month ago, and I couldn't till tonight.. Thanks again

  • @szymex22
    @szymex22 ปีที่แล้ว

    Thank you so much for this video now my network lives even after outage

  • @arnelgo3777
    @arnelgo3777 7 หลายเดือนก่อน

    Thank you very much. Very informative tutorial. I hope that you can also create a four-ISP tutorial consisting of three fiber ISPs that can fail over and balance load simultaneously and in the event that all three of the Fibr connections are completely down, the fourth ISP will be triggered as a limited metered connection ISP for failover. This configuration is extremely useful for critical internet-dependent applications setups including homebased jobs and etc...

  • @mareksierocinski
    @mareksierocinski 9 หลายเดือนก่อน

    Very nice tutorial! This is what I was looking for! Thanks man!

  • @royconejo
    @royconejo 3 ปีที่แล้ว +1

    Good work! Just a correction: according to the mwan3 doc: "Members with same metric will distribute load based on this weight value". So, setting a weight of 1, 2, or any number for that matter is meaningless since it does nothing on single-member (failover, no load-balanced) policies.

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว +2

      Good point, you're right. At the time of making this video, I followed a guide from Turris and doesn't think that much - wiki.turris.cz/doc/en/howto/multiwan. Thanks for sharing the information.

    • @jabbawok944
      @jabbawok944 ปีที่แล้ว

      I was wondering exactly that. So all traffic will go over the lower metric interface if its up, and the weight does nothing?

  • @mjh3426
    @mjh3426 4 ปีที่แล้ว

    I did this setup successfully thank u very much, liked & subscribed.

  • @HexPortal
    @HexPortal 3 ปีที่แล้ว

    Works amazingly! Thank you very much. Liked and subscribed :)
    I messed with some settings in the Globals tab of MWAN, what should I put there? What is the Firewall mask? Do I need Routing table lookup?

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว

      You can leave it as default. Just in case you mess up the configuration, can try delete the mwan3 configuration file and start again.

  • @roddelfernando
    @roddelfernando ปีที่แล้ว

    hi i have question. i tried load balancing with wan & wwan. load balancing status for wwan is showing red offline. what could be the cause.?

  • @kavyajohnson225
    @kavyajohnson225 ปีที่แล้ว

    Hii , Thank you for this amazing explanation. In my scenario, i have a bonded cellular connection as wan 1 and a fibre connection as wan2. i didnt configure any VLAN since i dont have a switch involved in my setup. I tried doing the failover following your steps . But after reboot,the interface configured on the multiWAN manager disappears. and there is nothing online at the end. It would be great if you could give suggestions/thoughts on it.
    Thank you

  • @itsyab0y
    @itsyab0y 7 หลายเดือนก่อน

    Hey is this possible to set up mwan3 with iPhone usb as a backup? If so what do I need to do different? I already have most of it setup just a little stuck on the switch part because I don’t see an option for usb there.

  • @roybensonsiena4352
    @roybensonsiena4352 3 ปีที่แล้ว

    hi.. been watching all of your videos and I was wondering if you can create a tutorial on MWAN rules to use IPSETS instead of destination IPs or ports?

  • @chai_reddy
    @chai_reddy 4 ปีที่แล้ว

    This was super helpful. Thank you so much!

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      Glad that it helps. Thank you for the feed back ^^

  • @martaasaeda
    @martaasaeda 3 ปีที่แล้ว

    Hello, thank you so much for this fantastic video ! I tried to study mwan3 openwrt wiki and didn't manage to figure out what to do. Now it's clear ! I have one question: you assigned two different VLANs for wan und wanb. Is it important that it's different ? I plan to have two wans with PPPoE, and my ISP requires that WAN ist tagged VLAN7. I probably get two contracts from the same ISP, so both have to have tagged VLAN7. Is it going to work ? I have Rasberry Pi 4 with OpenWRT with SG108PE, set up as suggested in your other video.

    • @martaasaeda
      @martaasaeda 3 ปีที่แล้ว

      I am replying to this by myself: it looks like VLANs do have to be different. This means, if ISP requires a specific VLAN tagged, then you would want a Modem that takes care of it (or a router). Specifically, if one wants to use mwan3 for two Deutsch Telekom contracts, then you can use VLAN7 only once, so you can't have two modems that demands WAN interface on OpenWRT to be VLAN7.
      However, I currently have only one contract. I set up mwan3 and swapped the connection to see if both of them work: one with a modem, one with a router. I gave VLAN7 to the interface to connect with modem, VLAN8 for the router (since the router send the packet with VLAN7 to Telekom). Then it worked.

  • @tisurame
    @tisurame 4 ปีที่แล้ว

    Thanks! It saved my life. Congratulations.

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      Thanks for the feedback. Glad it helps!

  • @kamrulahsan06
    @kamrulahsan06 3 ปีที่แล้ว

    Works pretty well!! Thanks a lot. Liked and subed

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว

      Thanks for the sub! You can check out other OpenWRT tutorial on the channel at th-cam.com/play/PL58__w3t_eTbcBQ9oJ8jXCxPtBiac59vC.html

  • @kavyajohnson225
    @kavyajohnson225 ปีที่แล้ว

    Is it possible configure both failover and load balancing together?

  • @crazypict
    @crazypict 4 ปีที่แล้ว

    Very good video! It would be fine if you could do a video about how to fine tune the multi wan setup. E.g. if I like to have as short time between the switch to the secondary WAN or if I like to have a load balancing multi WAN setup. There are several different tuning that can be done and I do not know how to do. So please explain!

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      Hey, thanks for the comment. There are tutorials about multiwan load balancing in my channel, please check it out. You can change the value for "how much fail ping the interface will be marked as down" in the mwan3 interface configuration and it can create the delay as you wish. For other additional tunning, please read the mwan3 documention from openwrt. My tutorials are mostly for beginner who want to have a demonstration on how to setup and have the package works. For advance tutorials, I am not that level yet. Maybe some day in the future.

  • @226cenk9
    @226cenk9 2 ปีที่แล้ว

    It does do the whole fail over thing, but my secondary connection isn't allowing actually connecting. OpenWRT says that the secondary is online though...

  • @danilojaramillo8378
    @danilojaramillo8378 5 หลายเดือนก่อน

    Hello, how do you configure a client's private IP so that it connects permanently to a single wan? I remember that on Asus routers there is an option for this, but in openwrt I can't find it

  • @Chubbable
    @Chubbable 2 ปีที่แล้ว

    Thanks for making this vid, however i tried to set my router up but no switch menu?

    • @VanTechCorner
      @VanTechCorner  2 ปีที่แล้ว

      Your router should be using the newer OpenWRT with DSA. You can see the multiwan load balancing tutorial for OpenWRT 21.02.

  • @Satoshi_Nakamoto123
    @Satoshi_Nakamoto123 3 ปีที่แล้ว

    Hello,I have a problems during using mwan3.When my WAN offline then WAN online,mwan3 not work properly,even the status MWAN Interfaces shows that every wan online,but still no internet.I have to manually click save&apply at mwan3 .then everything will works fine.

  • @fazzmultimedia4612
    @fazzmultimedia4612 3 ปีที่แล้ว

    amazing, works with HG553 with dual HILINK Modem

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว

      Thanks for sharing the information.

  • @18gg7jt9
    @18gg7jt9 3 ปีที่แล้ว

    Thanks, it helps a lot.

  • @rentamobtv
    @rentamobtv 4 ปีที่แล้ว

    This is amazing. Thank you!

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      Hi, thanks for the comment. There is also tutorial about load balancing as well. Feel free to check it out: th-cam.com/video/f_yGMezdMB0/w-d-xo.html

  • @jaybensi268
    @jaybensi268 3 ปีที่แล้ว

    thank you sir, i will definitely try it..

  • @alhaddar14
    @alhaddar14 3 ปีที่แล้ว

    Thank you for the video

  • @michaels2251
    @michaels2251 4 ปีที่แล้ว +1

    I'm not sure if this is possible but I will pay you to help me. I have an OpenWRT router with an LTE modem installed in it. I need one of the Lan ports to be connected to the LTE Modem. The other lan ports and WiFi I need connected to the WAN port from my ISP. So essentially all of my devices are using the my ISP except my 1 device hooked to the LTE Lan port. Is this possible?
    Thanks, great videos by the way

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      Hi, it should be possible. Basically we just need to create 2 LAN interface and configure the gateway. Can you provide me with more detail of the router model and the result of "uci show network" and "cat /etc/config/network". For a smooth communication, you may log a case at vantechcorner.atlassian.net/servicedesk/customer/portals and attach all the photos and logs.

  • @quangan193
    @quangan193 2 ปีที่แล้ว

    Hi, can you tutorial use mwan3 with wwan of wifi and wan of line??

  • @fvongraf
    @fvongraf 3 ปีที่แล้ว

    What's the best way to force all traffic from an internal device (static IP) out through the 2nd WAN interface, where everything else still uses the default WAN?

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว

      You can do this with the custom routing tab on the mwan3 application.

    • @TheSmartBean
      @TheSmartBean 3 ปีที่แล้ว

      @@VanTechCorner can you give an example of this? My tv box need to connect certain isp to work. Thank you

  • @warlockostia
    @warlockostia 2 ปีที่แล้ว

    thanks a lot mate

    • @VanTechCorner
      @VanTechCorner  2 ปีที่แล้ว

      You're welcome.

    • @warlockostia
      @warlockostia 2 ปีที่แล้ว

      @@VanTechCorner mate, my failover wan3 works like a charm now, thanks again, but listen, since u so good with openwrt there is something I never managed to work with it, maybe u can help me or even make a video about, I need to print a file with a local usb printer that ofc i have connected to my router and configured with p910nd print server, every pc of my Lan can print with it, zero problems, but I can't print from my router, how is possible that there are no commands to print in openwrt? (luci or command line)

  • @mathew2214
    @mathew2214 2 หลายเดือนก่อน

    doesnt work
    it says WAN is offline even though im literally using that to write this comment. the fallback is unplugged.
    update: nvmd, the interface names in LUCI can differ form those in /etc/config/network. i fixed it by changing WAN to wan.

  • @WebystherNunes
    @WebystherNunes ปีที่แล้ว

    Any chance to create a new video for openwrt 21?

    • @VanTechCorner
      @VanTechCorner  ปีที่แล้ว +1

      You can find the video on the channel page - Search

  • @rogeliobuot-f9s
    @rogeliobuot-f9s หลายเดือนก่อน

    please give me the link of link of open wrt dual wan

  • @mjh3426
    @mjh3426 4 ปีที่แล้ว

    I've one question, is it (openWRT) reliable to do this setup using openWRT, does it work everytime as it should b or sometimes get stuck? let me know, thanks.

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      Hi, I have tested with different OpenWRT versions and see that the failover had been automatically started (no restart of interface or reboot of the router was done). If it work, it should work :D

    • @mjh3426
      @mjh3426 4 ปีที่แล้ว +1

      @@VanTechCorner yes even I also tested, it is switching automatically which is good, taking around 20 secs to switch, should work like this in real-time. Thanks for your videos, keep posting such videos, hoping to learn many things from u, thanks.

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      Thanks a lot! Actually you can speed up the time. In the mwan3 interface you can configure after how many fail PING the system will mark the interface as "down".

    • @mjh3426
      @mjh3426 4 ปีที่แล้ว

      @@VanTechCorner Hi, im getting one problem after reinstalling openWRT, that is wan interface is still up(showing ip address) even after taking out cable from that port, only after restarting that interface ip address is getting cleared, due to which failover is not working. can u tell me where is the issue.. thanks.

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      You mean the interface still showing up in mwan3 status or in Network - Interfaces? Can you upload a screenshot and give me the link?

  • @muhamadazim1678
    @muhamadazim1678 3 ปีที่แล้ว

    Hi.. why i dont have switch in network columm ? Tq

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว

      Hi, if you are using an x86 PC as OpenWRT router, there will be no switch page available.

    • @cripplingdepression8889
      @cripplingdepression8889 2 ปีที่แล้ว

      @@VanTechCorner is it possible to set up a fail over wan on a router that has no switch? I read you can set up VLANs anyways but I don't know how

  • @lafleur3936
    @lafleur3936 4 ปีที่แล้ว

    Hello is it possible to just connect 2 local networks, so both networks have acces to to devices connected in each network, without sharing the internet connection?

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      Hi, you can setup a site to site VPN tunnel using WireGuard or OpenVPN. Just want to clarify, you are talking about 2 local networks from different location or in the same place?

    • @lafleur3936
      @lafleur3936 4 ปีที่แล้ว +1

      @@VanTechCorner Hello, thanks for your reply. An no, i am talking about 2 local networks, in the same house but 2 apartments, with 2 separate internet connections, which i am planning to connect via a wired openwrt router. I don't need load balancing etc. I only want both networks to be able to have access to each other, but otherwise both should have their own DHCP on and use their own internet.

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      I got your point. You should be able to configure that, but let's me build a lab and check how to do it with OpenWRT. Just want to check, is it possible for you to have an ethernet/wireless connection between the 2 networks?

    • @lafleur3936
      @lafleur3936 4 ปีที่แล้ว

      @@VanTechCorner Yes, a wired connection is already prepared, just don't know how to set up the router.

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      And both routers are running OpenWRT, right? Let say the 1st router's LAN is 192.168.1.1 and the 2nd is 192.168.2.1, we have the below plan (wired connection).
      1. Create a new VLAN from one of the LAN port and assign a static IP for it (DHCP off for this interface). Assign it to the LAN firwall zone. Doing the same for the other router. For example, Router 1, port LAN 4, static IP 192.168.9.1. Router 2, port LAN 4, static IP 192.168.9.2
      2. Connect 2 router with the cable (port LAN 4)
      2. Create a static route
      The other way, you can create a site to site VPN tunnel (over the internet) which will be much more slower.

  • @faroff4435
    @faroff4435 3 ปีที่แล้ว

    I have a problem, when restarting the wan2 port it takes the incoming ip to the wan and not the LAN ip, what am I doing wrong?

    • @faroff4435
      @faroff4435 3 ปีที่แล้ว

      I got it to work by placing a static IP in wan2 and disabling dhcp, if I kept dhcp disabled when restarting the router, several computers with automatic dhcp took ip from wan2 and not from LAN, I really don't understand how to get wan2 to behave like wan with automatic dhcp

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว +1

      Okay, you missed one important step. After created the second WAN interface, click Edit, go to tab DHCP and select "ignore DHCP for this interface".

    • @faroff4435
      @faroff4435 3 ปีที่แล้ว

      @@VanTechCorner "ignore DHCP for this interface" only appears if I select static ip, is this correct? I have to select static ip? because in the video I see that it says dhcp client in the two WAN

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว +1

      I am not really understand your question, your WAN and LAN subnet should be different, what do you mean by "takes the incoming ip to the wan and not the LAN ip". Of course if you set the WAN interface to DHCP client, it will receive an IP address from the router where it is connected to.

    • @faroff4435
      @faroff4435 3 ปีที่แล้ว

      @@VanTechCorner What happens is that when starting before it activates the vlan, the network devices take the IP that the ISP's DHCP gives instead of the LAN's DHCP IP.A similar error can be read here: dev.archive.openwrt.org/ticket/6819.html

  • @arigasanks
    @arigasanks 4 ปีที่แล้ว

    Avoid using same tracking addresses for wan1 and wan2, it might cause problems as those addresses will be set as static routes internally for those wans. Use different IPs for tracking Wan1 and Wan2.

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      Actually you set the 2nd interface as always online (no tracking) since we only failover in 1 way.

    • @arigasanks
      @arigasanks 4 ปีที่แล้ว

      @@VanTechCorner I see. I've never done it on OpenWRT, I'm used to do it on pfsense and routeros, decided to check how it works on OpenWRT and found it strange when you set the same tracking IP for both interfaces as it would not work properly on those systems I mentioned before. How would you deal with 3 Wan failover?

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว

      I get your point, but this mwan3 tracking is different from tracking method on Cisco IOS (which I have worked with, I have no idea on pfSense). According to the document, mwan3 is triggered by hotplug-events. When an interface comes up, it creates a custom routing table and iptables rules. A new routing table is created for each interface. It then sets up iptables rules and uses iptables MARK to mark certain traffic. Based on these rules, the kernel determines which routing table to use. When an interface goes down, mwan3 deletes all the rules and routes to that interface. Once all the routes and rules are initially set up, mwan3 exits. The kernel takes care of all the routing decisions. If a new interface hotplug event occurs, mwan3 will run again to adjust route and tables as needed.
      You can check it out here: openwrt.org/docs/guide-user/network/wan/multiwan/mwan3
      I have never seen 3 WAN failover, but we surely can do that. Just create the 3rd interface with metric 30. Create a new mwan3 Memeber with metric 3 weight 3 and assign it to the 3rd interface. Lastly, add the new Memeber to the Policy and it should work.

  • @leonardorodrigues8179
    @leonardorodrigues8179 4 ปีที่แล้ว

    wanB doesn't work here, it shows online at loadbalance but no internet. Need configuration on the firewall? Ty

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว +1

      If you remove the network cable connect to WAN and only left WANB, are you able to connect to the internet? What is the protocol of your WANB and to what device it is connected to?

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว +1

      Can you run the below command in Putty and provide the output:
      cat /etc/config/network

    • @leonardorodrigues8179
      @leonardorodrigues8179 4 ปีที่แล้ว

      @@VanTechCorner only wan work. postimg.cc/68HbrFzc all configs here. Ty .

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว +1

      Yes, you need to go to the wan2 interface -> Firewall and assign it to WAN zone. And by default, all the traffic is routed to the WAN 1 interface, WAN 2 is only activated when WAN 1 is down.

    • @leonardorodrigues8179
      @leonardorodrigues8179 4 ปีที่แล้ว +1

      @@VanTechCorner Thank you my friend, it worked when add on the firewall. I bought a c6 tplink and it worked too. Thank you very much.

  • @stew3682
    @stew3682 3 ปีที่แล้ว

    Hi have followed instructions how do I setup my vpn with this setup I did have vpn setup but have since lost connection to vpn internet is working but can't get my vpn working now PLEASE HELP

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว

      Hey, sorry for the late response. Did you manage to get it work?

    • @stew3682
      @stew3682 3 ปีที่แล้ว

      @@VanTechCorner Hino mate haven't managed to get it working

    • @VanTechCorner
      @VanTechCorner  3 ปีที่แล้ว

      Hey, can you join Van Tech Corner & Friends on FB and share the network interface screenshot there.

    • @radoslavmatusevicius6143
      @radoslavmatusevicius6143 หลายเดือนก่อน

      Seems openvpn not working in 2024 OpenWRT 23.05, in same Mwan3 setup. And I can't find solution to how reconnect Openvpn after main Wan internet go down

  • @leonardorodrigues8179
    @leonardorodrigues8179 4 ปีที่แล้ว

    Ty.

    • @VanTechCorner
      @VanTechCorner  4 ปีที่แล้ว +1

      Hi, I really appreciate that you stop by and say thank. That made my day!

    • @leonardorodrigues8179
      @leonardorodrigues8179 4 ปีที่แล้ว

      @@VanTechCorner
      I thank you for your very detailed tutorial.

  • @sauravmodak507
    @sauravmodak507 2 ปีที่แล้ว

    Cant find swith option under network

    • @VanTechCorner
      @VanTechCorner  2 ปีที่แล้ว

      Hi, this video is for OpenWRT 19 and before that. If you are using newer release, you can find the tutorial I made for OpenWRT 21 on the channel