[WICENS] WAN IP Change Email Notification Script

maghuro

Very Senior Member
Private IPs defeat the purpose of the script hence it fails on detection and should have logged as such

edit: Ill push an update with your suggestion, version 2 did break support for double nat (your scenario)
Thanks for your attention

Check your git.
I made a simple pull, maybe it'll do!
 

Maverickcdn

Senior Member
v2.80 added historical WAN IP changes to Email message, and reduced number of required nvram lookups to prevent potential hung nvram get processes
 

Andy1932

Senior Member
I seem to be doing something wrong. Not installing...
Code:
ASUSWRT-Merlin RT-AX86U 386.7_0 Wed Jun 22 18:47:23 UTC 2022
[email protected]:/tmp/home/root# curl --retry 3 "https://raw.githubusercontent.com/maverickcdn/wicens/master/wicens.sh" -o "/jffs/scripts/wicens.sh" && chmod a+rx "/jffs/scripts/wicens.sh"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  125k  100  125k    0     0   327k      0 --:--:-- --:--:-- --:--:--  373k
[email protected]:/tmp/home/root# sh /jffs/scripts/wicens.sh
/jffs/scripts/wicens.sh: line 125: F_default_update_create: not found
/jffs/scripts/wicens.sh: line 125: F_default_create: not found
sed: /jffs/addons/wicens/wicens_update_conf.wic: No such file or directory
sed: /jffs/addons/wicens/wicens_update_conf.wic: No such file or directory
sed: /jffs/addons/wicens/wicens_update_conf.wic: No such file or directory
sed: /jffs/addons/wicens/wicens_update_conf.wic: No such file or directory
sed: /jffs/addons/wicens/wicens_update_conf.wic: No such file or directory
sed: /jffs/addons/wicens/wicens_update_conf.wic: No such file or directory
/jffs/scripts/wicens.sh: source: line 125: can't open '/jffs/addons/wicens/wicens_update_conf.wic'
[email protected]:/tmp/home/root#
 

Maverickcdn

Senior Member
I seem to be doing something wrong. Not installing...
Wow :oops: sorry my bad, not yours

2.70-->2.80 broke new installs (misplaced function call)

2.82 is up addressing this. Let me know if you have issues.
 

Maverickcdn

Senior Member
v3.00 is finally up

I meant to push this awhile back but life has been crazy.

Brings AMTM Email settings import, Email forwarding user messages, and many other changes. See changelog on Github

Script was completely overhauled and lots was added/changed, no guarantees I didnt break something but I did test as best I could with time allowed, let me know of any issues and I will look to resolve as time allows.

Enjoy.
 

Maverickcdn

Senior Member
Wicens is more than ready for 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.

I need someone other than me to run through AMTM import testing, forwarding function testing, upgrading from v2.xx to v3 needs testing etc
 

Jack Yaz

Part of the Furniture
v3.00 is finally up

I meant to push this awhile back but life has been crazy.

Brings AMTM Email settings import, Email forwarding user messages, and many other changes. See changelog on Github

Script was completely overhauled and lots was added/changed, no guarantees I didnt break something but I did test as best I could with time allowed, let me know of any issues and I will look to resolve as time allows.

Enjoy.
when you refer to AMTM email import, does it then diverge from the amtm email settings, or are any updates to email settings made through WICENS reflected in AMTM/scripts using AMTM's settings?
 

maghuro

Very Senior Member
when you refer to AMTM email import, does it then diverge from the amtm email settings, or are any updates to email settings made through WICENS reflected in AMTM/scripts using AMTM's settings?
No.
As far as I tested, it only imports the values stored in amtm.

If you change something on amtm, you have to reset wicens and import email values again.


And if you change some mail settings through wicens, it won't reflect on amtm neither.
 
Last edited:

Jack Yaz

Part of the Furniture
No.
As far as I tested, it only imports the values stored in amtm.

I'd you change something on amtm, you have to reset wicens and import email values again.


And if you change some mail settings through wicens, it won't reflect on amtm neither.
hm that's not ideal. v3.1? :D
 

Nesalex

Regular Contributor
v3.00 is finally up

I meant to push this awhile back but life has been crazy.

Brings AMTM Email settings import, Email forwarding user messages, and many other changes. See changelog on Github

Script was completely overhauled and lots was added/changed, no guarantees I didnt break something but I did test as best I could with time allowed, let me know of any issues and I will look to resolve as time allows.

Enjoy.
Hi. Thanks for your work on the script. One observation: After updating the script, when I run the WICENS command, the BAD NUMBER message cycles. I don't know how to run wicens now or how to remove it so I can reinstall it...

2022-09-17 23_38_51-192.168.1.1 - PuTTY.jpg

2022-09-17 23_39_22-192.168.1.1 - PuTTY.jpg
 

Maverickcdn

Senior Member
hm that's not ideal. v3.1? :D
I can look at that, I can't remember why I settled on importing

Ill probably look at adding a config variable to set whether the user wants to use amtm settings and then just convert the var names in a function to work with wicens.

Hi. Thanks for your work on the script. One observation: After updating the script, when I run the WICENS command, the BAD NUMBER message cycles. I don't know how to run wicens now or how to remove it so I can reinstall it...
My apologies, thanks for testing... do you remember seeing these confirmations during update? and then when you ran it again it looped?
wicens1.PNG
To reinstall run (this will remove any saved backup if you don't move it)
Code:
rm -r /jffs/addons/wicens
And re-download wicens from the link in post 1
 

Nesalex

Regular Contributor
I can look at that, I can't remember why I settled on importing

Ill probably look at adding a config variable to set whether the user wants to use amtm settings and then just convert the var names in a function to work with wicens.


My apologies, thanks for testing... do you remember seeing these confirmations during update? and then when you ran it again it looped?
View attachment 44263
To reinstall run (this will remove any saved backup if you don't move it)
Code:
rm -r /jffs/addons/wicens
And re-download wicens from the link in post 1
I think I have seen 90% of this text. Only after clicking any button did it loop.
 

Maverickcdn

Senior Member
I think I have seen 90% of this text. Only after clicking any button did it loop.
What model of router do you have? Can you let me know the output of
Code:
which nvram

First glance it looks to be looping on the NTP check
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top