How to restart firewall on command line (without reboot)?

Discussion in 'HyperWRT Firmware' started by Michael E. Stora Ph.D., Dec 11, 2012.

  1. Michael E. Stora Ph.D.

    Michael E. Stora Ph.D. Serious Server Member

    I've created a nice web interface on my home server to enable and disable SSH, user FT, anon FTP, web access to folders, etc. It's done in config files for the various deamons and I'd like to add a second level of security by turning on and off various port forwards and port redirects on the router as well.

    I've got ssh set up and my server's public certificate is on the router and working. I've taught myself to manipulate and commit nvram and everything works as expected after a reboot command. Reboot takes too long (2+ min) and my web interface times out before reporting the results of the request. The router's own menu seems to be able to restart the firewall without rebooting. Does anyone know what I can do on the command line to restart the firewall without rebooting?

  2. mstombs

    mstombs Network Guru Member

    Are you really still using HyperWRT?

    Later developments in Tomato on similar codebases have a "service" command, I don' t remember exactly what HyperWRT had but something like

    service firewall restart

    service wan restart
    might work, "service" likely symlinked to "rc" binary
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice