Can someone please tell me how to get this into a script, that is run with 'init':
nvram get wan_gateway
ip route add default via (what i got from line 1) table 10
ip rule add from (the IP address I want to filter) table 10
I usually do this in the tools—>command, but it would be terrific if it was done on router startup.