5 ms·
I have this router and set up the wg interface but got stuck at how to route all my home traffic through wg. Any recommendations on how to troubleshoot this par
by axiomdata316 7y ago
I have this router and set up the wg interface but got stuck at how to route all my home traffic through wg. Any recommendations on how to troubleshoot this part?
- mchristen 7y agoI believe you can do this with policy based routing rules. Effectively you create a second routing table where the default route goes through your wireguard device and then you create firewall modify rules that assign traffic to that routing table by source, your local LAN range and interface in this case. The following article has an example of using policy based routing. Your setup isn't all that different, you don't need to have more than one default route in each routing table is all and you also might only need one additional route table. https://help.ubnt.com/hc/en-us/articles/204952274-EdgeMAX-Policy-based-routing-source-address-based- https://help.ubnt.com/hc/en-us/articles/204952274-EdgeMAX-Po...
- sjy 7y agoAs suggested in the sibling comment, use policy-based routing, specifically something like: set protocols static table <table-number> interface-route 0.0.0.0/0 next-hop-interface wg1
- jotef 7y agoI recommend following this blog post. Helped me a lot: https://andrew.dunn.dev/posts/wireguard-from-your-isp/ https://andrew.dunn.dev/posts/wireguard-from-your-isp/