Hello directnupe. I have always used @yazdan scripts with my additions.
3 of the lines of code you refer to relate to the WG AUTHENTICATION KEY UPDATE and syslog logread -e SSWG when wg auth key refresh successfully updates. You see this on the CLI when you run the script, or redirect the output to a log file.
This code has now been merged into @yazdan repository so our two scripts are now synced.
The other two lines of code was not part of the PR and exists only on my local repository. It lets me send a daily update to my gmail address with same information.
Thanks - @RurlRoots I appreciate the information. Regarding this below :
The other two lines of code was not part of the
PR and exists only on my local repository.
It lets me send a daily update to my gmail address
with same information.
Is there anyway that I can modify the SSWG SCRIPT so that I can have a daily update sent to an email address of my own ? Just asking - not a deal breaker - and as always thank you for being so helpful and instructive.
Either way, it’s out of scope for @yazdan script as well and ergo not included in the PR. Anybody that can set up msmtp and successfully send/receive to their desired SMTP account via CLI should be able to attach the log as message body.
And your additions were an eye opener for me even before I joined, I had added the lines to the base @yazdan script and enjoyed the foresight provided. Having logs to the System Log and a well thought out Cron Job, you provided the basis for my attempt to evolving @patrickm script prior to creating a GitHub account; which is my way of apologizing for 'Jumping the Shark' on the account of other's hard earned creds and work.
We have in the community users posting all sorts of ideas, queries and suggestions, and a great movement to think outside the box. Desire is everything. Ideas are born from it and results are paved by it.
Another form of notification is not desired as the work is done, logged, and enjoyed.
The problem existed in the firewall settings. I have thus made the change and it works now. Only thing is that now although I am using US-MIA ..... from Surfhsark files, I cannot use the freevee app. Any suggestions?
You leave so much to be assumed; however, I will offer this.
I have a valid Surfshark account, my firewall is good, my DNS is good, my device is supported, my Wireguard install on said device is unchanged since 4/15/2022.
However!! Thursday was a bad day for the WireGuard Client app on my pc.
Log shows, and results were no connection out. By Friday morning it was back to normal without me changing anything.
4 unique peers were all not handshaking over the course hours. With the Wireguard App on PC, I can assign the Surfshark DNS servers exactly as assinged from say the Surfshark OpenVPN .ovpn connection. And to that point OpenVPN to Surfshark worked where Wireguard did not for this period of time below.
2022-06-23 14:47:19.413694: [MGR] [us-dal.prod] Trying again to stop zombie tunnel
2022-06-23 16:00:41.575181: [MGR] [nl-ams.prod] Trying again to stop zombie tunnel
2022-06-23 17:01:37.582344: [MGR] [ca-tor.prod] Trying again to stop zombie tunnel
2022-06-23 17:10:21.627157: [MGR] [nl-ams.prod] Trying again to stop zombie tunnel
2022-06-23 17:11:03.165115: [MGR] [pl-waw.prod] Trying again to stop zombie tunnel
2022-06-24 09:43:08.220643: [MGR] [nl-ams.prod] Trying again to stop zombie tunnel ```