I recently bought a D-Link DIR-822 router and I can telnet into it and issue Linux commands. The thing is, say I issued random commands like;
iptables -P FORWARD DROP
iptables -I INPUT -p tcp --sport 23 -j DROP
It works, but after reboot, everything goes back/changes to default. I tried editing the /etc/hosts
file as well for some ad blocking, but it just changes back to default on reboot.
There's of course OpenWrt that could do the job right, but I was wondering if it was possible to do it on the stock firmware version.
/etc/lsb-release
file? Or anything*release*
under/etc
?