I just installed x3mRouting in my U86 Merlin router using method 3. It seemed to go smoothly, although I have a few comments.
1. In the example scripts, I finally figured out that I needed to do a sh before each of the listed commands, otherwise I would get an error message when I just copied and pasted the line. Here's an example:
load_AMAZON_ipset_iface.sh 2 AMAZON-US US
should be
sh load_AMAZON_ipset_iface.sh 2 AMAZON-US US
This might be obvious to the experienced but was not to me.
Also, do I need to go to the Scripts sub-dir to run those commands, or would they work anywhere (before I figured out that I needed the sh, I did change to the scripts sub-dirs but I do not know if that was necessary)?
2. It would be nice if you updated the nat-start file as part of running each of the scripts that you provide. Not a huge deal, but the whole installation process is many steps, so in my excitement at getting this working, I might miss the instructions about this.
3. BTW, I am putting all of the Amazon, Netflix, BBC, etc, IPs to access my WAN, so my Amazon script line reads:
sh load_AMAZON_ipset_iface.sh 0 AMAZON-US US
But I am also running a VPN (1) that I want to use for all non-streaming non-video uses on all my devices. Are the IP address or AS numbers only the ones for streaming video, or are they also the ones for accessing Amazon normally? How can I tell? If they are all Amazon address, how can I separate only the ones for streaming?
4. Also in my case, with video coming from the WAN interface but normal browsing in the VPN, what do I do with the
/jffs/scripts/x3mRouting/vpnclient1-route-up example? Do the start-up commands go into the nat-start file or in the vpnclient1-route-up or both?
5. After doing the installation, do I need to reboot the router? In my case, I did not and it appears to be working, but what should be the best practice (I'm guessing I should do a reboot)?
6. I also need to do video for HBO NOW and Roku. Have you tried to do them, and what process works to get their IPs? If you do not know, that's OK, you seem to have provided enough info for me to try to figure it out. But if anyone has already done them, it might save me and others some work.
BTW, I just added the ASN number for Roku, and the command seemed to work, but there was no comment about adding a CRON job to update. Will that CRON happen and you just did not print out that message like you did in other cases? Also ditto for the Manual IP file command (I did it for HBO Now. We'll see if the 3 ranges I got from https://bgp.he.net/search are enough).
7. I would like the CRON job to update the address to run daily instead of weekly, at 4:35am. Where would I make that change? Or possibly you might consider making that an option at installation time?
8. Have you considered getting x3mRouting to be a part of AMTM? That is getting to be the standard for installing and maintaining scripts beyond what Merlin provides.
Otherwise, thanks for doing the work to get this working. I always worried about putting my smart TVs outside of the VPN just so that I could watch videos, especially with the recent article about Samsung TVs being a hackable potential that might compromise my network. Your excellent work hopefully plugs that hole.