steelskinz
Regular Contributor
J'ai remarqué qu'il y avait des Francais sur le forum snb il y a quelques temps..
J'ai remarqué qu'il y avait des Francais sur le forum snb il y a quelques temps..
no, I am not french....
Poslano z mojega EVA-L09 z uporabo Tapatalk
I believe @RMerlin is at the minimum bilingual.Les oiseaux volent dans toutes les directions
I believe @RMerlin is at the minimum bilingual.
A Wizard?I thought (he/she) was an alien
ipBLOCKer Version 1.1 available now.
See Post #1 & Post #2 for Changelog and Upgrade Instructions
will try this new version if i still have problems when router reboot....
no luck for me with this script...I very like it but I have to remove it....probably this script not working just for me.....thanks anyway to author for helping me to solve my problem....
Poslano z mojega EVA-L09 z uporabo Tapatalk
no luck for me with this script...I very like it but I have to remove it....probably this script not working just for me.....thanks anyway to author for helping me to solve my problem....
Poslano z mojega EVA-L09 z uporabo Tapatalk
All of ipset related scripts in snbforums don't have the init file.
echo "sh /tmp/mnt/sda1/ipBLOCKer/ipBLOCKer.sh setup" >> /jffs/scripts/services-start
echo "sh /tmp/mnt/sda1/ipBLOCKer/ipBLOCKer.sh refresh all" >> /jffs/scripts/services-start
Try rebooting test with this.
# This will check if firewall-rules are missing
# and adds them
30 * * * * . /tmp/mnt/USBDIR/ipBLOCKer/.ipBLOCKer.config; /tmp/mnt/USBDIR/ipBLOCKer/ipBLOCKer.sh synch #ipBLOCKer-synch#
I am testing it now. Mine is AC1900P.
Scripts doesn't work properly.
It has a problem with Entware-ng's cron package.
ipBLOCKer: Restoring firewall from saved state ....
You (my admin name) are not allowed to use this program (crontab)
See crontab(1) for more information
You (my admin name) are not allowed to use this program (crontab)
See crontab(1) for more information
ipBLOCKer: ERROR: Unable to Create refresh Schedules
Additionally, './ipBLOCKer.sh refresh all' command load saved data, but it doesn't apply the program. (I cut the middle.)
ipBLOCKer: Grand Totals: 0 0 0 0
ipBLOCKer: ######################################################################
ipBLOCKer:
Option: refresh all .... Done
where to put this? didn`t find how and where to insert this line in cron?The user has some USB issue (i think from his posts)
after the router is restarted,
files seem to be present on the USB but file content is inconsistent across boots.
FYI
ipBLOCKer.sh setup will start the Setup Menu
and wait for user to select or change system configuration.
ipBLOCKer.sh refresh all will refresh all selected categories.
Assuming ipBLOCKer is installed on a USB,
you would have timing issues if the mount is not available
when you invoke the program.
The 1.1 changes specifically address this issues.
A better approach would be to add cron job like below
which takes care of unexpected firewall restarts and
missing firewall rules
Code:# This will check if firewall-rules are missing # and adds them 30 * * * * . /tmp/mnt/USBDIR/ipBLOCKer/.ipBLOCKer.config; /tmp/mnt/USBDIR/ipBLOCKer/ipBLOCKer.sh synch #ipBLOCKer-synch#
you can use cruwhere to put this? didn`t find how and where to insert this line in cron?
cru a ipBLOCKer-synch "30 * * * * . /tmp/mnt/USBDIR/ipBLOCKer/.ipBLOCKer.config; /tmp/mnt/USBDIR/ipBLOCKer/ipBLOCKer.sh synch"
You (my admin name) are not allowed to use this program (crontab)
See crontab(1) for more information
ipBLOCKer runs with the current $USER privileges.
It seems the $USER running ipBLOCKer does not have
privileges to access crontab.
Have you followed this guide
https://github.com/Entware-ng/Entware-ng/wiki/Using-Cron
See also @ryzhov_al post #2 in
https://www.snbforums.com/threads/cron-different-to-usual-linux-cron.17088/#post-118335
The issue seems that Entware's '/opt/bin/crontab' looks specifically for user "root". Since "admin" (or anything else) won't match, it complains and quits very early.
I think a better fix is for Entware to compile in support for "/opt/etc/cron.allow" and "/opt/etc/cron.deny" which I don't find it in effect with my brief trial.
Check the name of super user on your system. If it's other then root, please fix it at /opt/etc/crontab.
As an example, asuswrt(-merlin) uses admin:
sed -i 's/root/admin/g' /opt/etc/crontab
NOTE:
Since entware has the vixie's version and as
@ rhyzhov_al pointed out $USER needs to be part of the job description
i.e.,
0 * * * * $USER scriptcall
you can use cru
Code:cru a ipBLOCKer-synch "30 * * * * . /tmp/mnt/USBDIR/ipBLOCKer/.ipBLOCKer.config; /tmp/mnt/USBDIR/ipBLOCKer/ipBLOCKer.sh synch"
cru d ipBLOCKer-synch
cru a ipBLOCKer-synch "*/30 * * * * . /tmp/mnt/sda1/ipBLOCKer/.ipBLOCKer.config; /tmp/mnt/sda1/ipBLOCKer/ipBLOCKer.sh synch"
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!