PDA

View Full Version : Alternative to Hamachi: Opensource and no network limits!


pieterbaarlo
03-26-2009, 03:43 PM
Hello!

After reading several threads about hamachi, i noted that you use Hamachi very often for matches.
The only problem is that networks are very quickly full, and nobody really administrate them.
This results in several threads with hamachi-network names & passwords which is very inconveniant.

Therefore i wanted you to know about a new vpn tool on the block called n2n.
n2n is a opensource layer2 p2p-vpn tool created by the guys at ntop.org.


http://www.ntop.org/n2n/2.png
* diagram of a n2n network with 2 supernodes.



Unlike hamachi, n2n doesnt have a spiffy gui or contact lists.
n2n is very minimalistic, without bells and whistles, it gives only the needed network functionality and it works everytime.

I have setup a n2n supernode on my linux-server at the datacenter, and hooked up a dhcp-server in the vpn network.

This means that everybody can join the network without any configuration. Every user gets a class c ipadress, and can join/leave whenever they like without "full networks or Network administration" problems.
Now you can be connected with the vpn with 2-254 people, who are playing several silent hunter sessions, which you could browse and join anytime!

However, per network the dhcp can issue 254 ipadresses which means there can be a maximum of 254 concurrent users. (which should be enough )

If there is some handy ict-guy here at subsim, you could setup your own supernode and have your own private lan.
Untill then, you could try my pre-configured n2n vpn client.
There is a downside. public vpns are risky so always have a firewall enabled.

I have packed up a complete new version which you can download here:

http://www.xs4all.nl/~igrabo/hell/HK_MultiplayerLanV2.rar

To use the tool, you must installs a TAP adapter which is located in the /drivers/ folder.

feel free to test it out.
i hope this solution will finally put an end to your hamachi network madness.

Cheers,

pieter


Official n2n homepage : http://www.ntop.org/n2n/
Compiled Windows version : http://www.xs4all.nl/~igrabo/hell/HK_MultiplayerLanV2.rar

note: if you wonder why i am promoting this tool, it because i spend the last week bugtracking n2n for windows.
by finding & fixing a few bugs in n2n, i never have to create/share hamachi networks again!
Next to that, n2n just kicks all the competition's butt!

!! UPDATE !!
Added vista x64 compatibility! - manually install the TAP adapter.
Added Profiles for custom networks. - now you can create & host a network yourself!



!! UPDATE 2 !!

The installations is essentially 2 steps.

1 :: Install a virtual network adapter - also known as a TAP-Adapter. If you already have some sort of TAP adapter installed (beside Hamachi), you can skip this step. ( many VPN programs use virtual network adapters like OpenVPN or other opensource vpn packages. )

2 :: Start our VPNtool, right-click on connect, and click on the connect button.

3 :: Start your favorite game, goto the LAN gamelobby and host or join a game.

Okey, that's 3 steps but that last one doesnt really count huh?


!! UPDATE 3 !!


We noticed that Windows Vista has some problems with installing the tap-adapter.
Therefore i describe the most fail-safe install instructions per Operating System.

Howto install:


Download this : http://www.xs4all.nl/~igrabo/hell/HK_MultiplayerLanV2.rar


:: Windows XP

Unpack the Rar-file.
Open the directory /drivers/ and click on 'Addtap.bat'
This should start the installation of a virtual ethernet adapter.
Accept the hardware installation and you are good to go.


:: Windows Vista x86/x64

Download:
http://www.openvpn.net/release/openvpn-2.1_rc15-install.exe
Start openvpn-2.1_rc15-install.exe as administrator.
When asked what components to install, choose ONLY the
'TAP Virtual Ethernet Adapter'
So, untick all options and select only the 'TAP Virtual Ethernet Adapter' and click next.
The installer will add new hardware, which you should allow to install.
When this installer exits, download and unpack the file HK_MultiplayerLanV2.rar to a location of your choice.

:: Start VPN

start hellskitchen.exe and a tray icon appear. right-click on connect, and click on the connect button.
You should now be connected to the public vpn.

:: Start Gaming

If your friends are connected too, fireup your favorite lan-game and start playing lan games online!

:: Notice

The tool is in essence a network-adapter. Firewalls or other protection software might need reconfiguration ( opening ports ) to successfully see lan game-sessions.

owner20071963
03-30-2009, 08:16 AM
Thank you pieterbaarlo,
that is a Tool we are currently
looking at for Lan Solutions,
for Silent Hunter 3 and 4,
we will keep you posted on
the tests which we will start soon :up:

Graf Paper
03-30-2009, 09:03 PM
Although I see nothing wrong with n2n itself, at least in theory, I cannot give any endorsement to your EPC-Virtual Multiplayer Lan client.

This software should be considered alpha quality, unstable and untested at best.

In fact, I strongly caution anyone considering using this application to only do so if they have a good working knowledge of how network adapters and LAN connections work in Windows as well as good trouble-shooting skills when things inevitably go wrong.

Although it is appreciated that you have gone to the trouble, your installer is flawed and faulty, pieterbaarlo. In testing this, there have been issues reported with firewall conflicts, broken network connectivity, and system instabilities.

Serious compatibility issues are reported for Vista 64-bit and you should avoid attempting to install this application if this is your OS.

When uninstalling EPC-Virtual Multiplayer Lan, neither the virtual network adapter nor the network connection it creates to use with it are uninstalled. They remain behind despite the application itself being removed.

Fix the uninstaller so it completely removes all traces, without breaking the user's regular network connectivity or firewall application. Make sure there is an acceptable compatibility with the user's existing network adapter/connection and any security software they have implemented. Provide better documentation for less tech-savvy players to properly and more easily use the client. Include an explicit disclaimer and warning about the security risks with opening their systems up to an unrestricted network.

It would also help if there was a similarly packaged server application. Most people just want to play their game, not spend hours or days figuring out how to set up a DHCP server under Apache.

For all of you kaleuns and skippers here...Use at your own risk.

pieterbaarlo
03-31-2009, 07:05 AM
If people have a issue, it would be nice to have it reported.
this way i can work on the issues, and hopefully resolve them.

let me make a few things clear :

1. The TAP adapter is from the OPENVPN package. ( there are some vista 64 issues afaik )
2. the DHCP server & network is a service provided by me.
3. the Gui is only a gui written in realbasic, and a frontend to the following tools.
4. the n2n core is created by ntop.org
5. forcebindip is created by r1ch.net

There have been issues reported with firewall conflicts

The program adds a Network adapter, and doesnt touch the firewall settings.
i would like a detailed writeup of what happened, and with what fw software.

broken network connectivity
The software is tested on 14 different configs, and none suffered from broken connections.
This is probably possible when a network-gateway is set by the DHCP, or the wrong network adapter removed. (note: NEVER enable a gateway by dhcp on the network. this ends up in all traffic routed thru the gateway ip.)
Again, for this specific problem is the same rule : more details are welcome.


system instabilities.
The TAP adapter is a 'stale' disconnected device, which is only active when an 'edge' process runs. this process is responsible for the VPN connection. the GUI is a plain realbasic .exe which can be shut down when not needed.
What kind of system instability are you talking about? - bluescreens? and on what OS.
This information is important to resolve the problems.

Fix the uninstaller so it completely removes all traces, without breaking the user's regular network connectivity or firewall application. Make sure there is an acceptable compatibility with the user's existing network adapter/connection and any security software they have implemented. Provide better documentation for less tech-savvy players to properly and more easily use the client. Include an explicit disclaimer and warning about the security risks with opening their systems up to an unrestricted network.

Arrrrr! that installer was a quicky. im sorry!
although i updated the installer, i havent checked the removed files.
Before the end of this day, i will check and fix the installer where i can.
Ofcourse you must understand that im only doing this for fun and as a hobby. im human too - forgive my flaws.


It would also help if there was a similarly packaged server application. Most people just want to play their game, not spend hours or days figuring out how to set up a DHCP server under Apache.

Pls note that the Apache webserver does not have anything to do with dhcp.
But i understand what you mean. this is why i setup a server in the first place.
Although i havent compiled the supernode code for windows, this will inevitablity happen.
Please keep in mind that the supernode is ONLY a mediator, where you register your network community.
If you want to know how to bind dhcp on a edge node in linux :

edge -d n2n0 -c mynetworkname -k mynetworkpass -a mydhcpserverip -l supernodeip:supernodeport
dhcpd n2n0
(* where n2n0 is the network adapter name )

You could use my supernode, and choose a complete seperate network.
this however, implies that you use static ip's - or run a DHCP server on 1 node.

Alternatively if you want to help and test, i could setup a seperate private network for subsim with dhcp where only subsim people have the password.

Also, I could add a small opensource DHCP server to the client, which allows you to create your own private network with dhcp whenever you choose ( on windows )


--

All in all, im very happy that you guys took the time in testing a bit.
The only thing im missing is : Did you guys succeeded in playin sh3/4 via the lan?
I know sh3-4 works, as i play regularly with my uncle thru it.

Today i will check the installer, and add a small opensource DHCP server in the tools package which enables you to create a small private network.
You still have to use my supernode, or the one from www.vpnhosting.cz (http://www.vpnhosting.cz) ( i know my supernode has low load, and is located in DE )





*** UPDATE 30-9-2009 ***

updated installer & gui released. See forum attachement for new version.
this version has a more stabile connection due to use of 'unique' mac adress & outgoing upd port.

Added : auto macadress setting (clones the mac from a real network adapter to the vpn mac), preferences screen and added some options to the connection log ( verbose logging and used edge cmdline options )
-
*** UPDATE 29-9-2009 ***

New installer & gui released. See forum attachement for new version.
Added : Connection Log, gui for ForceBindIP.
Removed : old gui + settings.
-

UNTILL THERE IS A PROPER VISTA 64BIT TAP ADAPTER FOR OPENVPN, THIS TOOL IS NOT COMPATIBLE WITH VISTA64


If there are people that dont wanna use my tool, or is looking for Hamachi alternatives, here is a small list of vpntools.
http://virtualmultiplayerlan.blogspot.com/2009/03/lan-over-internet-hamachi-replacements.html



regards,

Pieter



*UPDATE*************************

I have a few versions of the Vista 64/32 Tap-adapters, but i dont have any xp64 to test with.
i would greatly appreceate if someone would want to test them out. - send me an pm if interested.

pieterbaarlo
03-31-2009, 02:58 PM
Hello people!

* notice *
If you not a expirience windows user, you might wanna quit reading and start playing games.

*

If you are not having a problem with testing BETA software, read on.

i have updated my installer with drivers for vista 64.

The installer will not install a TAP device.
This has to be done by hand. see the shortcuts for specific versions.

Furthermore the preferences allow you to host your own network, using my supernode.
This will activate a small DHCP server. ( dont install dhcp as service when doing this.)
After that, you have a complete secure and private network with DHCP server which can hold 255 computers :)

The security is as secure as you like it to be. you decide to pass the login details.
i hope you like the improvements, and i'll be back in a few days to checkout if there are issues.

The download link is in the first post.

Graf Paper
03-31-2009, 03:22 PM
pieter, you're definitely on the right track with using a GUI and the simple one you have created for the EPC client is already very good.

I hope you understand that at least 90% of the players who would use this client use Windows exclusively. Also, you must assume that the average user can install and use software but not possess the skill or desire to learn anything more technical than "point-and-click".

I do not know the exact details, but the following have been reported back to me:


Kapersky Security Suite is broken when the EPC client is uninstalled in Windows XP. This might be more an issue with Kapersky as many AV suites tend to entwine themselves too deeply into Windows as it is.
Vista 64 will not allow installation of the virtual network adapter.
The uninstaller is non-functional with Vista 64.
Windows XP SP2 becomes unstable, resulting in frequent system lockups after the EPC client is uninstalled normally. User has reported similar problems prior to this but it seems uninstalling the client exacerbated these issues.
Connectivity issues with Windows XP. The virtual network adapter seems to "confuse" Windows as to which network connection should be in use for primary internet connection.

It would be very useful if more specifics can be given. Users who have reported troubles, please give details of exactly what occurred along with the following:


Operating System version: Windows XP, Vista, or Vista 64? Specify service pack.
System Hardware: Make and model# for motherboard, video card, sound card, network card (many motherboards have this built in), etc.
Hardware Drivers: Version numbers for video card, sound card, etc.
Security Software: This means especially firewalls, antivirus, and network security apps.

You heard the man, folks!

Report your experiences and any problems you have had with the EPC-Virtual Multiplayer LAN Client.

For those of you willing to take the risk and know what you're doing, this is an opportunity to have a hand in creating a multiplayer client that has great potential!

Let's help him make it better! :up:

pieterbaarlo
04-01-2009, 10:10 AM
Thank you very much for the details.

i'll lock myself up for a few days, and report back.

Graf Paper
04-20-2009, 09:31 PM
What news, pieter?

Haven't heard a peep out of you in nearly three weeks. :06:

pieterbaarlo
04-28-2009, 04:33 AM
Hi guys,

i have been away for a while, due to a sickness in the family.
This next week, i will release a thouroghly tested version of the Multiplayer-lan tool. ( which works on vistax64 too! )

expect more news before friday!

owner20071963
04-29-2009, 06:50 AM
Thank you pieterbaarlo,
Wish your family well,
Looking forward to the Multiplayer- Lan tool,
Vista 64bit too?
A great step forward :salute:

pieterbaarlo
05-06-2009, 10:05 AM
!! UPDATE !!
Added vista x64 compatibility! - manually install the TAP adapter.
Added Profiles for custom networks. - now you can create & host a network yourself!

This version uses no installer/setup!

http://www.xs4all.nl/~igrabo/hell/HK_MultiplayerLanV2.rar

Howto install:

1 - Make sure you have a TAP adapter installed, or install the tapadapter with addtap.bat in the /drivers/ folder. ( Vista users must have admin rights to install this hardware )
2 - start hellskitchen.exe

Graf Paper
05-06-2009, 10:23 AM
Thank you for continuing to work upon and improve your project, pieter! :up:

Perhaps we can find some volunteers at ComSubsPac to help test this. It would be very helpful if you were able to discuss any, bugs, issues, and problems directly with the testers. Would you be willing to log in to our TeamSpeak server and using a microphone to talk to our members, if we can find enough volunteers to test the software?

I hope all is well with the family and look forward to seeing more of you here at Subsim! :salute:

pieterbaarlo
05-06-2009, 10:32 AM
yes, but later tonight.

i have to go visit the hospital in 40 minutes.

a quick howto:

Connect to the epcgaming network ( or create a new one with the same supernodeip/port and Share the login-details with your friends )

Start playing lan-games.
its really that easy!

pieterbaarlo
05-07-2009, 04:22 AM
Aaaah! last night was great!

Props to all the people that helped testing the lan-tool.
Unfortunatly not everything worked like it should, but we are on the right road.

1. we got the vistax64 installation figured out.
2. we have problems 'seeing' eachothers lan games, which needs more investigation.

My best guess is that there is something wrong with the udp broadcasting.

UPDATE: I have setup a permanent vanilla SH3 game, which should be visible in the LAN LOBBY.
this might help out testing, as it should be visible to all users of the lan-tool.


to Graf peper :
i will modify the client so it saves log-files in verbose mode.
Can we try test again with static ip's today to ruleout the dhcp server.


/me will digg into (fragmented) UDP packets & network broadcasting

:arrgh!: thanks for helping sailors!


I'll keep this post updated while i dump my brainfarts, other technical nonsense and wild ideas below this line.
-------------------------------------------------------------
(taken from hamachi wiki : http://logmeinwiki.com/wiki/Hamachi:Gaming_over_Hamachi )

Re-prioritize your network adapter order:
For XP/2000: Start > Control Panel > Network Connections, then, on the menu bar, click Advanced > Advanced Settings and put the VPN adapter at the top of the list.
For Vista: Start > Control Panel > Network and Sharing Center, then, on the left side panel, click on 'Manage Network Connections'. Now press Alt, click on Advanced > Advanced Settings and put the VPN adapter at the top of the list.

If you're running Vista disable TCP/IPv6 (untick it in the VPN adapter's properties)

If you're running Vista ensure that VPN adapter appears in the 'Network and Sharing Center' as a 'Private Network' .
If it doesn't, then press customize and set it to 'Private Network'.


Configure the gateway and metrics:
In Network Connections right click on theVPN adapter > Properties, select TCP/IP(v4) > Properties > Advanced. Ensure that the default gateway is 192.168.200.1, if not, then add/edit it and set its metric to Automatic (this is the Gateway Metric).
Below 'Default gateways' tick 'Automatic metric' (this is the Interface Metric).

Quick notice: Some users have reported that their internet connection fails when the VPN is turned on. Removing the VPN gateway (192.168.200.1) should resolve the problem. It is not known why this is happening, but it might be the ISP's fault. Entering a Gateway Metric manually (for example, the default "1500") can restore the internet connection, but gaming functionality may still not be available.


Another problem (usually with the Vista x64 editions) might be the fact that your routing table hasn't been flushed since installing the VPN adapter.
You can correct this by opening the command prompt (just type cmd in start > run...), then type route print and if you can't see 255.255.255.255 in the IPv4 Route Table type route -f and reboot. This might fix your problem.
If you get the error The requested operation requires elevation, ensure that your account has administrative privileges and UAC (in Windows Vista) is turned off.





technical info + possible fixes
----------------------------------------------------

Large UDP broadcast packets may not be received in Windows XP or in Windows Server 2003
http://support.microsoft.com/kb/824838

Windows XP incorrectly forwards UDP broadcast packets
http://support.microsoft.com/kb/835979

Q:my laptop will not broadcast packets back to the loopback device
A:you can easily find the fix if you search for "disable windows media sense"
http://support.microsoft.com/kb/239924

Test UDP connections between machines : http://www.pcausa.com/Utilities/pcattcp.htm or http://www.simplecomtools.com/udptesttool.html



++++++++++++++++++++++++++++++
Capture SH3 traffic : http://aluigi.altervista.org/mytoolz/proxocket.zip
dump ws2_32.dll and wsock32.dll in your SH4 Directory, and it will create network capture files of sh3.exe

owner20071963
05-07-2009, 06:16 AM
Thank you pieter,
did the above,
yep last night was tough testing this,
but worth the effort :salute:
we will be on later to test it,
I'm sure we will resolve the issue for XP & Vista
See you on TeamSpeak then :up:

owner20071963
05-08-2009, 10:15 AM
Testing looks positive,
Hosting is visible from Vista 64 so far :yeah:
any breakthrough as to why that 4th computer could not see
the Host?
We'll continue over the weekend,
its looking good :salute:

Speedo
05-08-2009, 02:46 PM
!! UPDATE !!
Added vista x64 compatibility! - manually install the TAP adapter.
Added Profiles for custom networks. - now you can create & host a network yourself!

This version uses no installer/setup!

http://www.xs4all.nl/~igrabo/hell/HK_MultiplayerLanV2.rar (http://www.xs4all.nl/%7Eigrabo/hell/HK_MultiplayerLanV2.rar)

Howto install:

1 - Make sure you have a TAP adapter installed, or install the tapadapter with addtap.bat in the /drivers/ folder. ( Vista users must have admin rights to install this hardware )
2 - start hellskitchen.exe
Trojan detected :\ i'm using avast.
And i want to play in mp but don't have cd_key
any ideas?

pieterbaarlo
05-08-2009, 03:04 PM
There is no virus in the tool.
Your AntiVirus program is reporting a false positive.

More info about the 'infected' tool : http://www.r1ch.net/stuff/forcebindip/
And some info from the creator of that tool, who responds on the 'infection'
http://www.r1ch.net/forum/index.php?topic=1758.msg9877

Additional third party technical info :
http://www.virustotal.com/analisis/8ea236e42e6f04b4662c3beac6457a92
http://research.sunbelt-software.com/partnerresource/MD5.aspx?md5=8aa202bea0bef569ba474776a04ecea5



The ForceBindIP tool that is bundled in the RAR file is a process hook.
these tools are many times reported as virusses.
you can safely delete the file, as its not affecting the core functionality.

in the future i will distribute only the lan-tool, and have certain 'plugin tools' available for seperate download.

owner20071963
05-08-2009, 10:11 PM
Trojan detected :\ i'm using avast.
And i want to play in mp but don't have cd_key
any ideas?


First
this is a Test Phase,
For Multiplay,
Second,
Please ask Via TeamSpeak,
This Programme is at a Test Phase,
Until the Proper Final Release,
By pieter and the Tool Admins,
Please do not try this,
Until the Final Release,


We will Provide Final Results,
Stick with Us :salute:

Speedo
05-09-2009, 03:38 AM
Ok i will wait till final version:salute:

Graf Paper
05-09-2009, 04:41 AM
Owner's advice is solid but don't take it as law. Anyone that wants to test Pieter's work on this multiplayer LAN client is more than welcome to, provided you keep in mind that this software is still an early work in progress.

There are still many bugs and flaws to be corrected but nothing that appears to cause any permanent harm. The worst report we've had so far with this round of testing is a loss of internet connection due to improper installation of the TAPI VPN adapter.

Results are encouraging. Once this utility is completed, it will mean having a gaming client similar to Hamachi, GameRanger, or XFire but with two critical differences. It will be completely free to use and accommodate about 250 players on the same server. Your eyes aren't playing tricks. No more paying for having more than eight players per game!:yeah:

If you would like to take part in the testing, I encourage you to join the testing program we have initiated at ComSubsPac so you can provide real-time feedback and receive support from the developer. Otherwise, keep detailed, step-by-step diary of your experiences with testing the software. Be sure to follow Pieter's instructions for installation and usage to the letter!

Post your testing diary entries here for Pieter to review. Every bit of information helps! :up:

pieterbaarlo
05-10-2009, 12:17 PM
FYI

I found that the network problems are related to DHCP specifically.

tests show that with static ip & routing off, all works stable as it can be.
i would like to test this with ~8 people to make sure the stability is 100%.

owner20071963
05-16-2009, 08:55 PM
Give us a time and date pieter :D
We will arrange 8 plus to Test :salute:

touche36
05-17-2009, 05:27 PM
I don't mind testing this, let us know a time.

I would recommend unbinding 'File and Printer Sharing' from this network as a security precaution.

owner20071963
05-24-2009, 09:33 PM
We will reply soon :yeah:

owner20071963
05-25-2009, 09:09 PM
I'm sure Testing will continue,
As soon as Pieter is back,
Some personal issues may have arrived,
as We know him being the Gentleman He is,
We wish him Well,
come back soon:salute:

genkis
05-29-2009, 10:21 AM
hey guys, have you tried tunngle?
Hamachi in comparison sucks big time
There is a famous feature comparison here http://kissmyrank.2kool4u.net/station/index.php?topic=4
and a network list here http://kissmyrank.2kool4u.net/tunngle/
tell me what you think after you tried it

owner20071963
05-29-2009, 10:12 PM
hey guys, have you tried tunngle?
Hamachi in comparison sucks big time
There is a famous feature comparison here http://kissmyrank.2kool4u.net/station/index.php?topic=4
and a network list here http://kissmyrank.2kool4u.net/tunngle/
tell me what you think after you tried it

Well worth a look :up:
Lan Players? Post Here,
Sales on all New Games Depend on Multiplayer Attraction :yeah:
Big Companys now see this,
As a Sale in the current Recession,
Worldwide,
As with All Future Games,
The Silent Hunter 5 Dev Team will see,
Multiplay Is The Future,
In Gaming Online,
Success Depends on Sales,
Without Development On Multiplay in Silent Hunter 5?
The Dev Team may lose their jobs,,,,
Hamachi Sucks,very true,
On Lan,
Ubisoft's Server Cost money,
what was done with SH2,
will be done with SH3,maybe SH4 too,,
Without Your Support?
Online Gaming with Ubisoft for The Silent Hunter Series
Will Die,
We Cannot Blame Ubisoft,
To Close Down the Server Or Both,
On Lan,
We Must Continue to Support The Ubisoft Game Servers Online.
Our Lan Tool is Only an Alternative :arrgh!:

Graf Paper
06-05-2009, 11:03 PM
Project temporarily mothballed while the developer takes time off for personal matters.

Send either myself or owner a PM to re-open this thread when you do return, pieter. Godspeed to you.

Until pieter returns, this thread will be closed.