Snarl v4 beta5 subscribe and forwarding

133 views
Skip to first unread message

Karel Moen

unread,
Sep 26, 2015, 1:49:12 AM9/26/15
to Snarl Discussion
Hi Chris,

Firstly, let me thank you for your handy work, its the best thing ever. I am involved with security related systems, IP surveillance to be precise, and Snarl powers almost all my notifications by now. I do however, have some issues with the latest v4 beta 5... I cant get it to redirect or subscribe...

1) Redirect works perfectly using the current release v3, but not 4

2) I don't manage to get v4  or v3 subscriptions to work, the transport is correct, the connection is established, but testing fails...

What am I doing wrong? Is there a guide? The redirect is a bug, I'm pretty sure... Please point me in the right direction...

Chris

unread,
Sep 26, 2015, 1:51:17 AM9/26/15
to snarl-...@googlegroups.com

Hi Karel 

Can you send me an example of what you're trying to  do so I can troubleshoot?

Thanks 

Chris
full phat products
__________________________
Twitter: @snarlhappens
--
You received this message because you are subscribed to the Google Groups "Snarl Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snarl-discus...@googlegroups.com.
To post to this group, send email to snarl-...@googlegroups.com.
Visit this group at http://groups.google.com/group/snarl-discuss.
For more options, visit https://groups.google.com/d/optout.

Karel Moen

unread,
Sep 28, 2015, 5:16:52 AM9/28/15
to Snarl Discussion
Hi Chris,

I want to generate Snarl events on a machine (Machine A) and then have a remote PC (Machine B) subscribe to events generated by machine A. On Machine A I have setup a transport GNTP on the correct port, and also completed port forwarding. On Machine B I added the address of machine A under subscriptions...

Current Status:

Machine A, status is listening with 1 connection.
Machine B, status connected, but when I press the test link, it fails.

My alternative setup when this didn't work was to push messages to server B, but this would be less ideal since I don't control port forwarding rules on machine B. When I add a forward to machine B, it also doesn't work, but it works if I use Snarl v3 instead of 4 beta5. Tested this on a different set of computers tho.

Please let me know if anything is unclear...

Karel Moen

unread,
Oct 1, 2015, 6:58:31 PM10/1/15
to Snarl Discussion
Hi Chris,

I sent you the Teamviewer details... did you receive the message? 

Chris

unread,
Oct 10, 2015, 3:57:59 AM10/10/15
to snarl-...@googlegroups.com

Hi Karel

Just to confirm a few things:

- Does this work ok on a LAN?

- Can you try it using SNP 3 rather than GNTP?  My implementation of GNTP is still a bit incomplete 

Thanks 

Chris
full phat products
__________________________
Twitter: @snarlhappens
--

Karel Moen

unread,
Oct 10, 2015, 4:20:47 AM10/10/15
to Snarl Discussion
Hey Chris, awesome to hear from you.

1) I did try all the protocols. I may have done something wrong somewhere tho, but i doubt it. You should still be able to access those machines on TeamViewer...

Chris

unread,
Oct 10, 2015, 5:28:34 AM10/10/15
to snarl-...@googlegroups.com

A quick check shows Beta 6 isn't working right - I need to look at the code to see what's going on.


Chris
full phat products
__________________________
http://getsnarl.info
Twitter: @snarlhappens

> On 10 Oct 2015, at 09:20, Karel Moen <karel...@gmail.com> wrote:
>
> Hey Chris, awesome to hear from you.
>
> 1) I did try all the protocols. I may have done something wrong somewhere tho, but i doubt it. You should still be able to access those machines on TeamViewer...
>

Chris

unread,
Oct 10, 2015, 11:56:20 AM10/10/15
to snarl-...@googlegroups.com

Quick update...

I've had a look at the latest code and I remember now that I'd removed subscription support as it was very unstable, especially around handling when a remote machine unexpectedly disconnected.

Sorry about this. I'm adding the functionality back in right now and will get you a version to test ASAP.

Thanks

Chris
full phat products
__________________________
http://getsnarl.info
Twitter: @snarlhappens

Chris

unread,
Oct 11, 2015, 4:01:04 AM10/11/15
to snarl-...@googlegroups.com

Further update. V46.90 EXE uploaded here as a zip:

https://fullphat.net/support/snarl/

Key points:

- Now shows subscribed machines in network page
- Can list consumers of a transport in network page
- Subscribing machine will now reset and wait if the machine it's subscribed to disappears
- Made it more obvious in network page that subscriptions are waiting to connect
- Added notifications when a machine subscribes and unsubscribes
- Notifications are now broadcast to subscribers
- Notifications from Snarl itself are not broadcast to subscribers

All this applies to SNP 3 only at the moment; GNTP support will follow.

To test:

1. Install EXE on both machines
2. Create transport on machine A
3. Create subscription to machine A on machine B
4. Run heysnarl on machine A and create a test notification

Thanks

Chris
full phat products
__________________________
http://getsnarl.info
Twitter: @snarlhappens

Karel Moen

unread,
Oct 12, 2015, 2:39:18 AM10/12/15
to Snarl Discussion
Hey Chris,

This was my inlaws weekend ;)

I am starting testing immediately and will update you. Thanks for this !!!

Karel Moen

unread,
Oct 12, 2015, 4:55:10 AM10/12/15
to Snarl Discussion
Hi Chris,

subscribe works, great job!

I did however run into a problem, but it may be resolved by parenthesis:

This URL used to work:

notify?app-sig=Office-MD&title=Office - MD event triggered...&text=Event ocurred:2015/10/12 10:40:18, You may view this event by following the relevant URL\n\nNetwork:\nhttp://11.0.0.73:3080/protected/ViewEvent.htm?uuid%3Df4c7f4b1-67fb-45f6-b0f5-b664ca878117\n\nInternet:\nhttp://197.86.211.240:3080/protected/ViewEvent.htm?uuid%3Df4c7f4b1-67fb-45f6-b0f5-b664ca878117&timeout=6&icon=C:\PROGRA~2\COMMON~1\DRACON~1\Snarl\Img\DRTRIG~1.PNG&sound=-1&action=View event using local network,http://11.0.0.73:3080/protected/ViewEvent.htm?uuid%3Df4c7f4b1-67fb-45f6-b0f5-b664ca878117&action=View event using internet,http://197.86.211.240:3080/protected/ViewEvent.htm?uuid%3Df4c7f4b1-67fb-45f6-b0f5-b664ca878117&action=View your Webplatform using local network,http://11.0.0.73:3080&action=View your Webplatform using the internet,http://197.86.211.240:3080

Now I get the heading, but everything past the \n seems to go missing. I also tested using bestest tester, same results. Must I wrap the text somehow?



On Sunday, 11 October 2015 10:01:04 UTC+2, Chris wrote:

Chris

unread,
Oct 12, 2015, 7:00:49 AM10/12/15
to snarl-...@googlegroups.com

How are you generating the notification?  I just tried using heysnarl and it worked fine...


Chris
full phat products
__________________________
Twitter: @snarlhappens

Karel Moen

unread,
Oct 12, 2015, 7:48:40 AM10/12/15
to Snarl Discussion
Hi Chris,

I'm not being specific enough here, apologies!

If you setup a redirect, and then generate that event, it works fine on the sending machine, but not on the receiving machine. I am using bestest-tester.exe to generate events, and the included message causes snarl to crash without a specific error message.

Chris

unread,
Oct 12, 2015, 4:55:18 PM10/12/15
to snarl-...@googlegroups.com

Understood - that'll be me rushing the SNP 3 forwarding - it's likely not escaping things correctly - will take a look tomorrow if I get chance...


Chris
full phat products
__________________________
Twitter: @snarlhappens

Karel Moen

unread,
Oct 13, 2015, 11:43:03 AM10/13/15
to Snarl Discussion
Hey Chris,

I did some additional testing, and Snarl doesn't crash ALL the time, but it does it fairly regularly, as in every few minutes.

You should have no problems replicating the issue...
  

Chris

unread,
Oct 13, 2015, 2:06:12 PM10/13/15
to snarl-...@googlegroups.com

Found and fixed - will upload for you to test but might be towards end of the week now.

Thanks 

Chris
full phat products
__________________________
Twitter: @snarlhappens
--

Chris

unread,
Oct 13, 2015, 2:40:34 PM10/13/15
to snarl-...@googlegroups.com

Ignore last - new EXE available to test from same location.

Thanks 

Chris
full phat products
__________________________
Twitter: @snarlhappens
On 13 Oct 2015, at 16:43, Karel Moen <karel...@gmail.com> wrote:

--

Karel Moen

unread,
Oct 14, 2015, 10:01:52 AM10/14/15
to Snarl Discussion
Hi Chris,

I can confirm that \n causes the messages to be truncated still. I did not get Snarl to crash tho, which is good.

You have been pressed a bit, so are you sure you uploaded the right file? ;)

Chris

unread,
Oct 14, 2015, 2:52:18 PM10/14/15
to snarl-...@googlegroups.com

Damn - that was specifically what I fixed (and URL encoding everything).  Is the EXE actually version 46.92?


Chris
full phat products
__________________________
Twitter: @snarlhappens

Karel Moen

unread,
Oct 14, 2015, 4:04:32 PM10/14/15
to Snarl Discussion
Hi Chris,

LOL... Its because its done under pressure ;)

I double checked on both sides:
v46.0.0.90
Date and Time: 2015/10/11 8:42 AM
MD5: c403dd69e1b5169ddb22083fd90209c4
Web page says: Snarl R4.0 RC-2 (V46.90) on VDMGC ©2005-2015 full phat products

Chris

unread,
Oct 14, 2015, 4:16:09 PM10/14/15
to snarl-...@googlegroups.com


Chris
full phat products
__________________________
Twitter: @snarlhappens

Karel Moen

unread,
Oct 14, 2015, 4:23:23 PM10/14/15
to Snarl Discussion

*FACEPALM*

WinRAR, UAC on... I believed I overwrote that file, but clearly the file properties aren't the same, so it didn't overwrite.

My bad. I'm testing now....

Karel Moen

unread,
Oct 14, 2015, 4:48:36 PM10/14/15
to Snarl Discussion


OK, updated file, checked, and checksummed every side and then did the test:


File properties:

MD5:54f7a786e5ab5309d7cd9c134f5e0d75
Date and time, last modified: ‎11 ‎October ‎2015, ‏‎14:00:12 PM

web interface details:

ReleaseR4.0 RC-2
Version46.91
Running since2015/10/14 22:34:56
Registered applications5
Administration settings(None)

Chris

unread,
Oct 15, 2015, 2:52:25 PM10/15/15
to snarl-...@googlegroups.com


Chris
full phat products
__________________________
Twitter: @snarlhappens

Karel Moen

unread,
Oct 15, 2015, 3:40:49 PM10/15/15
to Snarl Discussion
Hey Chris,

You nailed it! YAY!

This one works according to my previous (Admittedly superficial) test case...Now lets see how it does on a production server with real world challenges. Don't worry, the client has been notified were testing ;)

Out of absolute curiosity, what is the advantages of the different transports?

Chris

unread,
Oct 15, 2015, 4:00:48 PM10/15/15
to snarl-...@googlegroups.com

At last! :)

So, win32 uses the Windows messaging system and is therefore the fastest but also limited to the machine you're running snarl on.  SNP and GNTP are network based so will work within and without the machine running snarl (but they're not multi-user*).

SNP is my protocol so it's under my control; GNTP is controlled by the Growl guys hence doesn't support everything snarl can do, but it does have much better app take-up.

SNP 4 is under development.  It'll be a lot more lightweight and will support subscribing, notifying and forwarding better.  It will also likely require encryption and hashing by default.

GNTP is traditionally bound to port 23053 but it can be changed, although whether the sending app supports that is down to it of course.  Snarl 4.0 abstracts the port number for all transports leaving you free to decide what communicates with what, and how.

* Snarl 4.0 does allow multiuser GNTP in a rather clunky way by creating GNTP transports on different ports. 


Chris
full phat products
__________________________
Twitter: @snarlhappens

Karel Moen

unread,
Oct 15, 2015, 4:41:53 PM10/15/15
to Snarl Discussion
OK, very informative. Thx!

In our environment multiuser isn't immediately critical, so you're off the hook completely with multiuser systems in the foreseeable future. At least from our world ;)

BTW, this is us: http://www.draconian.co.za/ We have officially started using Snarl beginning 2014 at all our sites. I'm pretty dumbstruck why were the first IP surveillance crowd to embrace snarl tho. I can only think that you need more exposure. Please make a nice 'Supports Snarl' banner so we can stick it in our website, software brochure etc.

Chris

unread,
Oct 15, 2015, 6:07:55 PM10/15/15
to snarl-...@googlegroups.com

Funnily enough, I was going to ask if you could do a testimonial, so thank you that info!  I'll see what I can do about a banner, but just mentioning us is great - I have even less time for marketing ;)

Chris
full phat products
__________________________
Twitter: @snarlhappens

Karel Moen

unread,
Oct 15, 2015, 6:31:03 PM10/15/15
to Snarl Discussion
Hey Chris,

There is an intermittent crash on the subscriber snarl. Just says stopped responding. It looks like a buffer overflow or something, because I replayed all the events and none of them made Snarl crash. I replayed them a couple of times just to be sure. The generating machine is completely stable. In the test/Live setup, it survived about 80 events since testing started 2.5 hours ago. If you want to send me a debug one, I'll test happily enough.

Chris

unread,
Oct 15, 2015, 6:35:03 PM10/15/15
to snarl-...@googlegroups.com

Will take a look 


Chris
full phat products
__________________________
Twitter: @snarlhappens

Karel Moen

unread,
Oct 15, 2015, 6:55:31 PM10/15/15
to Snarl Discussion


Faulting application name: snarl.exe, version: 46.0.0.92, time stamp: 0x561d4836

Faulting module name: OLEAUT32.dll, version: 10.0.10240.16384, time stamp: 0x559f3b0b

Exception code: 0xc0000005

Fault offset: 0x00024556

Faulting process id: 0x81d8

Faulting application start time: 0x01d1077fc5936792

Faulting application path: C:\Program Files (x86)\full phat\Snarl\snarl.exe

Faulting module path: C:\WINDOWS\SYSTEM32\OLEAUT32.dll

Report Id: f4393343-31e7-4600-a77f-16c12f22cb10

Faulting package full name:

Faulting package-relative application ID:

Karel Moen

unread,
Oct 19, 2015, 6:36:05 PM10/19/15
to Snarl Discussion
Hey Chris,

So far so good. I have experienced a few crashes in Snarl since, so there is almost certainly an issue somewhere. The notifications associated with the crash all displayed normally on both computers. Apart from this issue, the end client is ecstatic about this function. I am too ;)

I put a watchdog process in place that monitor snarl and will re-launch as required. A second similar test have just been commissioned, so lets see if this is an isolated incident or maybe machine specific. Who knows. Will report back...
 

Karel Moen

unread,
Oct 28, 2015, 6:51:26 PM10/28/15
to Snarl Discussion
Hi Chris,

I have some updates on this issue...

  • I still get occasional crashes.
  • Under 'Network' I get lots of the same connecting client as in below image.
  • On the client I get "Waiting..." and obviously nothing happens anymore because it reached (I guess) the connection limit..


On Friday, 16 October 2015 00:35:03 UTC+2, Chris wrote:
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Karel Moen

unread,
Jan 2, 2016, 7:40:27 AM1/2/16
to Snarl Discussion
Hi Chris,

The intermittant crashing is stopping us from using subscribe in a production environment. Please take a peek at it when you have some time, THX!

On Saturday, 26 September 2015 07:49:12 UTC+2, Karel Moen wrote:
Hi Chris,

Firstly, let me thank you for your handy work, its the best thing ever. I am involved with security related systems, IP surveillance to be precise, and Snarl powers almost all my notifications by now. I do however, have some issues with the latest v4 beta 5... I cant get it to redirect or subscribe...

1) Redirect works perfectly using the current release v3, but not 4

2) I don't manage to get v4  or v3 subscriptions to work, the transport is correct, the connection is established, but testing fails...

What am I doing wrong? Is there a guide? The redirect is a bug, I'm pretty sure... Please point me in the right direction...
Reply all
Reply to author
Forward
0 new messages