therealsaumil / emux

EMUX Firmware Emulation Framework (formerly ARMX)
Mozilla Public License 2.0
683 stars 87 forks source link

Set settings from telnet #37

Open c1tyguide opened 2 months ago

c1tyguide commented 2 months ago

Hello, I have Tenda AC6 with similar firmware. Is it possible to set settings from webinterface i e enable\disable wan ping(firewall.pingwan=1 parameter in default.cfg file) from internal router console connecting by telnet? I think must be a way to changing NVRAM directly executing some commands like on alternate firmware on other routers:

nvram set url_rulelist="<1>ALL>snbforums<1>ALL>porn"
nvram commit
service restart_firewall

From https://www.snbforums.com/threads/asus-rt-ac68-nvram-commit-not-applying.71510/

But my "nvram show" output have not any ping or firewall string :(

c1tyguide commented 1 month ago

Did it this way: echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all