Go offline not functioning

Bug #1098755 reported by Bert Vorenholt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Haguichi
Fix Released
High
Stephen Brandt

Bug Description

Hi,

Whenever I select a network (gateway mode) with the right mouse-button and select to go offline, the network seems to go offline but immidiatly comes back online again.
I'm using Haguichi on Linux Mint Debian Edition (Debian testing) with all updates applied.

Sincerely,
Bert

Revision history for this message
Stephen Brandt (ztefn) wrote :

Hi Bert,

Please quit Haguichi (Client → Quit). Then open a terminal window and start Haguichi in debug mode by entering "haguichi -d". Then reproduce the error you just described. When done quit Haguichi, copy the output and send it to me by e-mail. You can find my e-mail address on https://launchpad.net/~ztefn and http://www.haguichi.net/about/#contact.

Changed in haguichi:
status: New → Incomplete
Revision history for this message
Stephen Brandt (ztefn) wrote :

Thanks Bert,

I have received your e-mail and I can easily spot the problem. Haguichi doesn't correctly scrape the network ID for the gateway network, because it has an unexpected property compared to "normal" networks (that's the [192.168.xxx.xx/xx] part).

I will fix this in the next release. For the moment being I'm affraid you'll have to use Hamachi's command line interface if you want to issue commands for this network. For example if you want to go offline enter "hamachi go-offline 123-456-789" in a terminal (replace 123-456-789 with the actual network ID). Enter "hamachi -h" to see all available commands.

Changed in haguichi:
status: Incomplete → Triaged
importance: Undecided → High
assignee: nobody → Stephen Brandt (ztefn)
milestone: none → 1.0.20
Revision history for this message
Bert Vorenholt (bert-vorenholt-nl) wrote :

Whow... another super quick answer... man, you are responsive :-)

Thanks for the tips. I'm using the CLI at the moment indeed. I "grew up" with CLI's, so that's no problem, but in the GUI era we're living in, it is very nice to use such easy to use GUI for my Hamachi networks.

Nice to read, you are willing to fix the issue.
Thanks for developing ánd supporting Haguichi!

Bert.

P.S.: I -and probably you also- know that in gateway mode you only can be connected to one concurrent network.

Revision history for this message
Stephen Brandt (ztefn) wrote :

I just commited a fix: http://bazaar.launchpad.net/~ztefn/haguichi/trunk/revision/309
If you're interested to test it out I can generate a package for you (source tarball or debian installer).

P.S.: Nope, I didn't know that. Honestly, I know hardly anything about network infrastructures... It's all Greek to me. :-\

Changed in haguichi:
status: Triaged → Fix Committed
Revision history for this message
Bert Vorenholt (bert-vorenholt-nl) wrote :

A debian installer would be great. Thank You very much!

P.S.: Ha ha... and I don't know much about programming :-)

Revision history for this message
Stephen Brandt (ztefn) wrote :
Revision history for this message
Bert Vorenholt (bert-vorenholt-nl) wrote :

Superb! It's working flawlessly now :-) Thank You!

If I may make an usability suggestion...

... it would be nice to have Haguichi detect if there is a connection with a gateway, whenever you try to connect to another gateway and prompts the user to accept (or not) to go offline with the already connected gateway and after acceptance, disconnect the one already connected and connect to the selected one.

Either way... I really appreciate Your terrific and very quick support!

Sincerly
Bert Vorenholt

Revision history for this message
Stephen Brandt (ztefn) wrote :

You're welcome!

I was wondering, is it physically impossible to connect to multiple gateways or is it just an artificial limitation set by Hamachi?

Anyway, for this scenario your usability suggestion makes a lot of sense. But i'm not totally convinced that it's worth the effort (my thoughts are also with the translators here). I mean, how many people are making use of a gateway type network, let alone multiple gateways? Traditionally, Hamachi is being used for mesh type networks. Maybe is going offline in the other gateways without user prompt a reasonable compromise?

Revision history for this message
Bert Vorenholt (bert-vorenholt-nl) wrote :

Hi Stephen,

AFAICT it's a limitation by Hamachi. If only Hamachi initiated another virtual interface (one per gateway network), it should be possible to be connected to more then one gateway network (it's a common case in normal VPN site-to-site situations).

My usability suggestion is just what it is... not a big deal, but only for easiness of operation. I don't know what effort it takes to implement, so... that's completely up to you. Translation into Dutch seems not to be the problem ;-)
I'm with you in your assumption there are not so many people using gateway mode.

Automatically going offline in the other network, without prompting is an option, but may not always be a good idea in the case there are running background-jobs (backups for instance). Manually disconnecting isn't such a big deal, but... when you try to connect to another gateway, Haguichi connects and disconnects, without error-message saying it's impossible to connect to multiple gateway networks with Hamachi VPN, as Hamachi CLI does (hamachi go-online ###-###-### gives: "Going online in ###-###-### .. failed, you are online in another gateway type network).

So, in short... maybe it takes less effort for you to "just" implement the error-message?

Revision history for this message
Stephen Brandt (ztefn) wrote :

Hi Bert,

Thanks for your detailed explanations.

For now, I have implemented a generic error message ("Could not go online in network {name}", "See output for details.", "> Hamachi output"). It's not as helpfull as your suggestion, but the good news is that it works for other errors too (like gateway offline, or no gateway present).

Revision history for this message
Bert Vorenholt (bert-vorenholt-nl) wrote :

Thanks Stefan,

That's quite enough for most people, I think. Most Hamachi/Haguichi linux users will/should know the CLI way anyway.
And again, thanks for Your efforts... It makes working with Hamachi so much easier.

Best regards,
Bert

Revision history for this message
Bert Vorenholt (bert-vorenholt-nl) wrote :

Oeps... sorry... I misspelled Your name Stephen :-( :-)

Stephen Brandt (ztefn)
Changed in haguichi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.