How would you customize a DD-WRT configuration throught a ANDROID device paired to it? What I need is to modify a IPTABLES onstart script which forwards all traffic from one ip to another, and those two IP's are what I need to modify them from the android device in a easy way like an APP, accessing via web is not as easy as needed.
I'm thinking about creating an APP with a TELNET implemented on it, then connect via telnet and try to modify that onstart script to meet my requeriments. I've researched a little and onstart scripts are saved on NVRAM and I think that I should modify that file or add more lines to it... that's my actual idea.
How would you solve this problem?
The script is this one
iptables -t nat -A PREROUTING -i ath0 -s $IP1 -d $IP2 -j DNAT --to-destination $IP3 iptables -t nat -A POSTROUTING -o br0 -d $IP3 -j MASQUERADE iptables -t nat -A PREROUTING -i br0 -s $IP3 -d $IP4 -j DNAT --to-destination $IP1 iptables -t nat -A POSTROUTING -o ath0 -d $IP1 -j MASQUERADE