TunSafe Forum

Welcome to the TunSafe Community Forum. This is open for discussions related to TunSafe and the WireGuard protocol.

You are not logged in.

#1 2020-01-12 16:26:44

pickles
Member
Registered: 2020-01-12
Posts: 3

PostUp is not .. up, really?

Hi,

im using Pre/PostUp and Pre/PostDown for some stuff I want to happen when the connection is lost or gained.

All are working fine, except PostUp seems to not really mean exactly that, that the connection is UP (since its PostUp) because in my case I set a script that needs internet connection to be up and alive. But the script is ran before its really up. It seems the last handshake and the connection is completely made is _after_ the script is ran and done.

I would assume that postUp is just that, after a full connection is made?

In the log:

[16:18:33] Loading file: C:\Program Files\TunSafe\Config\Integrity.conf
[16:18:33] Resolved wireguard.5july.net to <ip-addy>
[16:18:33] TAP Driver Version 9.21
[16:18:33] Run: C:\Users\Media\Desktop\VPN\uppie_preup.cmd
[16:18:33] Success!
[16:18:34] Using IPv6 address: <ipaddy>
[16:18:35] Run: netsh interface ipv6 set dnsservers name=8 static <ipaddy> validate=no
[16:18:35] Run: netsh interface ipv6 add dnsservers name=8 <ipaddy> validate=no
[16:18:35] Blocking standard DNS on all adapters

[16:18:35] Added Route <etc><snip snip a few lines>

[16:18:35] Run: C:\Users\Media\Desktop\VPN\uppie_postup.cmd
[16:18:36] Trying to email..
[16:18:48] Exception calling "Send" with "4" argument(s): "Failure sending mail."
[16:18:48] At C:\Users\Media\Desktop\VPN\uppiemail.ps1:9 char:1
[16:18:48] + $SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)
[16:18:48] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[16:18:48]     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
[16:18:48]     + FullyQualifiedErrorId : SmtpException
[16:18:48] 
[16:18:48] Sending handshake...
[16:18:48] Connection established. IP <ipaddy>

Am I completely wrong and an utter fool? What am I missing?

//P

Last edited by pickles (2020-01-12 16:29:24)

Offline

Board footer

Powered by FluxBB