Ah I see, so these are issues via command line? I think i'll do a bit of reading up on this firmware as you can see I am a novice
So I take it you can't currently access/use the command line, and you don't know how to copy'n'paste the script onto the router correctly? see
https://github.com/RMerl/asuswrt-merlin/wiki and the section about User scripts
However, I think you may find that you become stuck very quickly in resolving your requirement.
Unfortunately, RPDB rules cannot use domain names as the target.
So if you try
Code:
ip rule add from 192.168.1.110 to www.hbo.com via table 99 9000
Error: an inet prefix is expected rather than "www.hbo.com".
So depending on the time of day, which DNS server responds first etc.,
'www.hbo.com' will resolve to a CDN address list, that 49 times out of 50 could be the same but not necessarily so
e.g. for me just now
Code:
nslookup www.hbo.com
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost.localdomain
Name: www.hbo.com
Address 1: 52.42.218.150 ec2-52-42-218-150.us-west-2.compute.amazonaws.com
Address 2: 34.208.245.59 ec2-34-208-245-59.us-west-2.compute.amazonaws.com
Address 3: 52.43.34.171 ec2-52-43-34-171.us-west-2.compute.amazonaws.com
So which Address should you use or perhaps you should add all three RPDB rules
Code:
ip rule add from 192.168.1.110 to 52.42.218.150 via table 99 9000
ip rule add from 192.168.1.110 to 34.208.245.59 via table 99 9001
ip rule add from 192.168.1.110 to 52.43.34.171 via table 99 9002
but
www.hbo.com has probably hundreds of actual I/P addresses in various subnets.
If you search the forum, you will see that the most successful tracking method of ALL the current streaming service I/P addresses is using
ipsets.
So in theory once the ipset (say we call it HBO) is created and populated then you would simply have 1 RPDB rule to redirect those hundreds of HBO I/P addresses correctly.
But that is for another thread.