Maverickcdn
Senior Member
Thanks, I had the path hardcoded to /bin for nvram lookups. Pushed a hotfix... please download and let me know. I may go back to removing all the hard coded paths if you encounter other errors
Thanks, I had the path hardcoded to /bin for nvram lookups. Pushed a hotfix... please download and let me know. I may go back to removing all the hard coded paths if you encounter other errors
And now I did it. After using the command to remove the flood script, I installed version 3.0 and the gmail import from AMTM went without problems. Everything works...GreatThanks, I had the path hardcoded to /bin for nvram lookups. Pushed a hotfix... please download and let me know. I may go back to removing all the hard coded paths if you encounter other errors
I'll be ready to add WICENS to amtm whenever you are. Just make sure to change the import mail function to just include the files when present in amtm.Ill approach him when Im comfortable and if he's willing.... for now lets just make sure I didnt bork it, and works as it should.
If you are interested in this test, send me the previous version of the script and I can test the update..
curl --retry 3 "https://raw.githubusercontent.com/maverickcdn/wicens/v2.85/wicens.sh" -o "/jffs/scripts/wicens.sh" && chmod a+rx "/jffs/scripts/wicens.sh"
Thanks, I decided with setting a flag AMTM is being used and just sync the configs every run and update if changes are detected, was easier to code with the time I have... Ill get it up soon hopefullyI'll be ready to add WICENS to amtm whenever you are. Just make sure to change the import mail function to just include the files when present in amtm.
I just tried it. Now the update worked great and everything is functional. Great work..Uninstall any pre-existing wicens script through the wicens menu and use this for the last version before 3.00
Sorry the script redundancies/features are too heavily dependent on cron.However, I'd like to make a request. Is it possible to create an option to disable the cron job (for those that want to)? I only need the script for email notification when the wan IP changes and not through a cron job and thus, I only need it to run during a wan-event and not at intervals. Once again, I appreciate your great work. Many thanks.
Thanks for the prompt reply sir. I understand what you mean with being careful with the cron. I rely on the system log a lot (addiction maybe) and the cron job is filling up the log with the default 10 minutes interval. My issue is that my custom smb.conf gets replaced with the default everytime the wan IP changes but I have resolved this in another wan-event script. For my use case, I can live with the wicens script getting triggered by just the wan-event. Even if I miss the email because of the less frequent cron, I will know from the logs anyway. However, I think its cool to be able to recieve an email anytime the wan IP changes. Keep up with the good works.Sorry the script redundancies/features are too heavily dependent on cron.
Careful changing cron in this script, specifically regarding WAN IP change notifications, if the Email fails to send for whatever reason during the call from wan-event it relies on the cron calls to re-attempt sending the notification.
Are you saying wicens is spamming the log with cron runs? Can you share what the log message is so I can look into it?I rely on the system log a lot (addiction maybe) and the cron job is filling up the log with the default 10 minutes interval.
You need to set up an app password if 2FA is enabled.goodevening, i found this script in the new Amtm 3.5, and try to use it.
but i cant send any test email by gmail account
i dont get a 2mfa message on my phone.
i tried every options with smtp
smtp.google.com
gmailadres
smtp_start_tls (option1)
do i forgot something ?
any help or example how to fill in would be appriciate
thx
i have a 2mfa app on my phone for google, and normally when i login with a other unknow pc on my gmailaccount i get a message for accept, but now i dont get any message for approve loginYou need to set up an app password if 2FA is enabled.
Google App Password: "App passwords let you sign in to your Google Account from apps on devices that don't support 2-Step Verification."i have a 2mfa app on my phone for google, and normally when i login with a other unknow pc on my gmailaccount i get a message for accept, but now i dont get any message for approve login
Thank you very much, i didnt know thisGoogle App Password: "App passwords let you sign in to your Google Account from apps on devices that don't support 2-Step Verification."
When I try that link above, it tells meGoogle App Password: "App passwords let you sign in to your Google Account from apps on devices that don't support 2-Step Verification."
The setting you are looking for is not available for your account.
Do you have 2FA enabled?When I try that link above, it tells me
[FAIL] Current WAN IP is : x.x.x.x Test Mode --- No Match
[ OK ] Internet check : 6 successful pings, appears up
[FAIL] Error, failed to send Email notification 1 of 1
[-##-] Are your Email settings in this script correct? and password?
[-##-] Or maybe your Email host server was temporarily down?
< 235 2.7.0 Authentication successful
} [5 bytes data]
> MAIL FROM:<AsusWRT-Merlin> SIZE=658 <----------------------
{ [5 bytes data]
< 550 5.7.0 From address is not one of your addresses <--------------------
* MAIL failed: 550
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
} [5 bytes data]
> QUIT
{ [5 bytes data]
< 221 2.0.0 Bye
* Closing connection 0
{ [5 bytes data]
* TLSv1.3 (IN), TLS alert, close notify (256):
{ [2 bytes data]
* TLSv1.3 (OUT), TLS alert, close notify (256):
} [2 bytes data]
> MAIL FROM:<wouldntyouliketoknow@icloud.com> SIZE=284 <---------------------
Yes we have one difference in our curl commands in --mail-from. After reading the man page I see I have it incorrectCan you please check this? Of course I can configure WICENS manually, but it would be preferable to keep things in sync with amtm.
Thanks in advance.
Best regards,
Marco
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!