A recent update caused some changes to BBC which required some analysis. So far, I have it working with the method below. I am routing ALL BBC traffic to the "source destination" VPN Client 4. So adjust accordingly. The other item is the AWS method may not be required. I noticed many reply records resolving to AWS EU server and added it during the initial analysis. It may work without it but I have not confirmed.
Install x3mRouting option 3. Then, in a SSH command line copy/paste the following after adjusting the "to destination 4":
Code:
sh /jffs/scripts/x3mRouting/x3mRouting.sh ALL 4 AWS_EU aws_region=EU
sh /jffs/scripts/x3mRouting/x3mRouting.sh ALL 4 BBC_ASN asnum=AS2818,AS31459
sh /jffs/scripts/x3mRouting/x3mRouting.sh ALL 4 BBC_WEB1 dnsmasq=2cnt.net,at-o.net,bbc.com,bbcverticals.com,co.uk,dotmetrics.net,net.uk
BBC traffic will have a higher priority than the clients specified in the policy table.
For the dnsmasq method to work, you have to have dnsmasq logging enabled.
@Xentrk - thanks again for all your help a couple of months ago. I have come back to look at this again as I am struggling to get BBC iplayer to work with my existing setup (had your script set to option 2).
So using the setup you propose above, I have reinstalled the script using option 3.
Now I need to turn on dnsmasq logging. How do I check this?
[edit - used dnsmasq -q to start logging]
I also only want to send BBC iplayer traffic through the VPN with everything else normal (no VPN). So how do I setup the VPN so that only iplayer goes to VPN and everything else is not through the VPN?
[edit - have set VPN client with exclusive DNS and strict policy for forcing traffic through tunnel]
Also i have set the routing using the sh commands above (but changed to correct VPN client.
Below are my logs whan trying to play bbc video that is geolocked...
Any help appreciated
Jun 29 13:09:09 dnsmasq[28421]: query[A]
www.bbc.co.uk from 192.168.100.249
Jun 29 13:09:09 dnsmasq[28421]: forwarded
www.bbc.co.uk to 127.0.0.1
Jun 29 13:09:09 dnsmasq[28421]: query[A] iplayer-web.files.bbci.co.uk from 192.168.100.249
Jun 29 13:09:09 dnsmasq[28421]: forwarded iplayer-web.files.bbci.co.uk to 127.0.0.1
Jun 29 13:09:09 dnsmasq[28421]: query[A]
www.bbc.co.uk from 192.168.100.249
Jun 29 13:09:09 dnsmasq[28421]: forwarded
www.bbc.co.uk to 127.0.0.1
Jun 29 13:09:09 dnsmasq[28421]: query[A] iplayer-web.files.bbci.co.uk from 192.168.100.249
Jun 29 13:09:09 dnsmasq[28421]: forwarded iplayer-web.files.bbci.co.uk to 127.0.0.1
Jun 29 13:09:10 dnsmasq[28421]: reply iplayer-web.files.bbci.co.uk is <CNAME>
Jun 29 13:09:10 dnsmasq[28421]: reply iplayer-web.files.bbci.co.uk.edgekey.net is <CNAME>
Jun 29 13:09:10 dnsmasq[28421]: ipset add BBC_WEB1 104.74.37.53 e3891.dscf.akamaiedge.net
Jun 29 13:09:10 dnsmasq[28421]: reply e3891.dscf.akamaiedge.net is 104.74.37.53
Jun 29 13:09:10 dnsmasq[28421]: reply
www.bbc.co.uk is <CNAME>
Jun 29 13:09:10 dnsmasq[28421]: reply
www.bbc.co.uk.pri.bbc.co.uk is <CNAME>
Jun 29 13:09:10 dnsmasq[28421]: ipset add BBC_WEB1 212.58.233.251 uk.www.bbc.co.uk.pri.bbc.co.uk
Jun 29 13:09:10 dnsmasq[28421]: reply uk.www.bbc.co.uk.pri.bbc.co.uk is 212.58.233.251
Jun 29 13:09:10 dnsmasq[28421]: ipset add BBC_WEB1 212.58.237.251 uk.www.bbc.co.uk.pri.bbc.co.uk
Jun 29 13:09:10 dnsmasq[28421]: reply uk.www.bbc.co.uk.pri.bbc.co.uk is 212.58.237.251
Jun 29 13:09:11 dnsmasq[28421]: query[A] europe-west1-bbc-otg-traf-mgr-bq-prod-4591.cloudfunctions.net from 192.168.100.249
Jun 29 13:09:11 dnsmasq[28421]: forwarded europe-west1-bbc-otg-traf-mgr-bq-prod-4591.cloudfunctions.net to 127.0.0.1
Jun 29 13:09:11 dnsmasq[28421]: query[A] europe-west1-bbc-otg-traf-mgr-bq-prod-4591.cloudfunctions.net from 192.168.100.249
Jun 29 13:09:11 dnsmasq[28421]: forwarded europe-west1-bbc-otg-traf-mgr-bq-prod-4591.cloudfunctions.net to 127.0.0.1
Jun 29 13:09:11 dnsmasq[28421]: reply europe-west1-bbc-otg-traf-mgr-bq-prod-4591.cloudfunctions.net is 216.239.36.54