Site Tools


access_restrictions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
access_restrictions [2023/05/24 21:36] – [Scripting Access Restrictions] -move cron job sentence below script hogwildaccess_restrictions [2023/07/02 16:23] – [Scripting Access Restrictions] -formatting hogwild
Line 12: Line 12:
  
 \\ \\
- 
- \\ 
  
 The returned string might look something like this: The returned string might look something like this:
Line 43: Line 41:
   * 1 = Sunday   * 1 = Sunday
   * 2 = Monday   * 2 = Monday
-  * = Tuesday +  * = Tuesday 
-  * = Wednesday +  * = Wednesday 
-  * = Thursday +  * 16 = Thursday 
-  * Saturday +  * 32 Friday 
-  * = Sunday+  * 64 = Sunday
  
-For multiple days, add the corresponding numbers for each day.+For multiple days, simply add together the corresponding numbers for each day.
  
-In the above example the fourth field is 62 which is equal to 2+4+8+16+32 . This means the rule should be active on Mon, Tue, Wed., Thu., and Fri. That is, only on weekdays. If you had checked the //Everyday// option, the value would have been 127.+In the above examplethe fourth field is 62which is equal to 2 + 4 + 8 + 16 + 32 . This means the rule should be active on Mon, Tue, Wed, Thu, and Fri. That is, only on weekdays. If you had checked the //Everyday// option, the value would have been 127.
  
 **Field 5:** shows the IP or MAC Address range on your network for which the rule should be applied. **Field 5:** shows the IP or MAC Address range on your network for which the rule should be applied.
Line 111: Line 109:
 done done
 </code> </code>
- 
- \\ 
  
 \\ \\
  
-If you have jffs enabled in FreshTomato, you can copy the script under the jffs directory and schedule it to run as a cron job, if you wish.+If you have JFFS enabled in FreshTomato, you can copy the script under the jffs directory and schedule it to run as a cron job, if you wish.
  
  \\  \\
Line 126: Line 122:
  
 [[http://web.archive.org/web/20160321090715/http://infinilogix.com/wordpress/network-programming/routers/how-to-control-access-restriction-rules-in-tomato-by-a-shell-script|Credit: Justin from "infinilogix.com" - original page which is now only accessible via archive.org]] [[http://web.archive.org/web/20160321090715/http://infinilogix.com/wordpress/network-programming/routers/how-to-control-access-restriction-rules-in-tomato-by-a-shell-script|Credit: Justin from "infinilogix.com" - original page which is now only accessible via archive.org]]
- 
- 
access_restrictions.txt · Last modified: 2023/10/26 17:20 by hogwild