Posted: Tue May 31, 2022 11:50 Post subject: Wireguard, Policy Based Routing using Domain Name
Policy Based Routing has been a great feature on DD-WRT. The only problem is that services like Netflix, Prime Video, etc. have multiple IPs and it seems that just adding netflix.com does not work after a while.
Is there any workaround to make this work? I only wish to route some websites like Netflix via WAN and everything else must go through the WireGuard tunnel.
If it helps, I am using my own DNS server and can set netflix to use a single IP but I am not sure if that will be ideal.
The client setup guide has a paragraph about destination based routing, recent builds support domain names.
However when you want to use domains with lots of different and changing IP addresses like netflix.com, you need more sophisticated things like IPSET with DNSMasq.
(I am looking into using IPSET and ASN with destination based routing but that is a long term project)
I checked out the two links mentioned in the Client Set up guide regarding IPSET. It is way beyond my league for sure. Couldn't understand any of it. xD
For now, I'll patiently wait for DD-WRT to get the feature.