Recent content by GorkyVVV

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

  1. G

    [TUTORIAL] OpenVPN Connection/Disconnection Email Notifications

    Sir! I am sorry, I did not transfer enough. In the end this made it work as well: $((bytes_received / 1048576)) Thanks a bunch for all your help! Have a very good night!
  2. G

    [TUTORIAL] OpenVPN Connection/Disconnection Email Notifications

    No joy, it returns 0. This is the part of the script: time=$(echo $(date +"%c")) message=$(echo "<b>Username:</b> $username<br> <b>Time Down:</b> \ $time<br><b>Bytes Received:</b> \ $(expr $bytes_received / 1048576)<br><b>Bytes Sent:</b> \ $bytes_sent<br><b>Real Address:</b> \...
  3. G

    [TUTORIAL] OpenVPN Connection/Disconnection Email Notifications

    Ha! That worked! Thank you soooo much! Now I am on to tweaking the script. How would I use the following. I am trying to display the data in Megabyte. However the Environmental Variables exports bytes_received. I have tried a bit, this did not work: $(bytes_received / 1048576) Any tips in...
  4. G

    [TUTORIAL] OpenVPN Connection/Disconnection Email Notifications

    Thanks for the reply! However when I do that the Export OpenVPN configuration file section of OpenVPN keeps displaying: Initialinzing the settings of OpenVPN server now, please wait a few minutes to let the server to setup completed before VPN clients establish the connection. The system logs...
  5. G

    [TUTORIAL] OpenVPN Connection/Disconnection Email Notifications

    When using the following code: #!/bin/sh echo "Client connected!" | sendmail -H"exec openssl s_client -quiet -CAfile /jffs/configs/Equifax_Secure_Certificate_Authority.pem -connect smtp.gmail.com:587 -tls1 -starttls smtp" -f"FROM" -au"USER" -ap"PASS" TO Saving it as up.sh with permissions 0777...
Top