10444 questions

12453 answers


21853 members

0 votes
73 views 0 comments
Hi. Is there any command to reset firewall to default?

I made some custom firewall configuration and there was some type error and now i cant connect to router via OpenVPN anymore..

I can configure router via sms but didn't found any command to only reset firewall to default.

1 Answer

0 votes


To reset all firewall settings to their factory defaults, login to the router via the CLI (SSH) and run the following command:

cp /rom/etc/config/firewall /etc/config/firewall && reload_config

This will set your firewall settings to factory defaults, meaning that if you have any custom port forwards configured or if you had SSH/HTTP(S) rules enabled to accept input to the router from WAN, these custom (or modified) rules will become either wiped or disabled.

Logging in via CLI can be done in two ways - either using WebUI or via third party tools. To login to the CLI via WebUI, please login to WebUI and navigate to System > CLI. To login, enter "root" as the username and WebUI password.

If you need additional details about logging in to the router via CLI, please follow the instructions provided in our wiki page:


Best regards,