I think I
Ok I think I understand but to confirm, are you saying that my firewall-start file needs to be
instead of just
?
I'm sorry if I'm still not understanding you correctly I havent done scripting before especially not with routers/modems so I'm trying to learn as I go.
I appreciate you taking the time to help.
YES, as clearly you did not actually physically perform the two commands that you say you used
There is a difference between
andCode:./IPCamsBlock.sh status
Code:./IPCamsBlock.sh init status
The 'init' directive wipes ALL existing rules (i.e. deletes the MyIPCAMs chain) , then recreates the chain using the directives you specifiy, so is mandatory when the script is first called after a reboot i.e. from firewall-start/nat-start.
The script will always display the rules it creates when the 'init' keyword is used so the 'status' directive is always implied.
Have you now understood what you are doing wrong?
Ok I think I understand but to confirm, are you saying that my firewall-start file needs to be
Code:
#!/bin/sh
/jffs/scripts/IPCamsBlock.sh init mail=smtp.gmail.com:587
instead of just
Code:
#!/bin/sh
/jffs/scripts/IPCamsBlock.sh init
?
I'm sorry if I'm still not understanding you correctly I havent done scripting before especially not with routers/modems so I'm trying to learn as I go.
I appreciate you taking the time to help.