Site Tools



The Scripts page allows you to define certain commands to be run upon specific events. These events are predefined. Each event condition has its own tab.

  • INIT: A script entered here is run at boot time, before any connections are established.
  • Shutdown: Commands defined here are called when the device goes through the Shutdown or Reboot process.
  • Firewall: Often FreshTomato calls the firewall to restart. This happens due to configuration changes or certain internal events (such as a change of WAN IP).
  • WAN Up (Main): A script entered here is called every time the primary WAN (re)connects.
  • MultiWan Up: A script in this field is run every time a WAN is reconnected. Which WAN can be defined passing the $1 parameter within the script.

  • Word Wrap: This option wraps text exceeding the line length to the next line to make it easier to read/edit.
admin-scripts.txt · Last modified: 2022/01/11 06:28 by hogwild