Quantcast
Viewing all articles
Browse latest Browse all 60861

Re: Enable/Dissable a rule based on an external condition (internet on/off switch)

You can't use configure mode just like that, it'll give you errors.

You have to create scrip like this

 

#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
configure
set firewall name ParentalControlRules rule 70 disable
commit
save
exit

For enable use 2nd script or add parameter and one if statement to above.

 


Viewing all articles
Browse latest Browse all 60861

Trending Articles