VPN for Games
Posted: Sun Apr 14, 2013 5:09 am
Hey,
maybe someone can help me with my project
I want to setup a OpenVPN-Server for playing some games with LAN-play.
I know there are alternatives like Hamachi, Tunngle, Garena and so on, but it should be possible with OpenVPN too or not?
As far as I have read, I´ll have to use TAP for this, because games need broadcast-messages, which are only transferred in layer-2.
So I´ll have to focus on the bridged-solution.
The next thing and my first question would be, if the games use UDP and TCP traffic, do the clients have to establish more than one connection?
Due to the fact I read this line in the HOWTO-section(http://openvpn.net/index.php/open-sourc ... ml#vpntype) I found out, that I have to run two OpenVPN instances
If so the clients would need more adapters, which would not be able to handle by the games?
The next thing, would be the IP-ranges.
2. Which ones would you recommend for that?
Usually my friends use 192.168.178.0/24 for their LAN, so am I.
Is it possible to create a new LAN with layer-2, which is not directly accessable(only via VPN) for me?
If it helps, I can set static routes in my router(192.168.178.1)
I dont know exactly what they do.
3. If it is possible, what kind of settings do I have to make for eth0, br0 and tap0 and the server.conf(especially the server-bridged- ... and push- part)?
4. If everything would be configured fine. Do I have to still use a tool like http://www.hanksoft.de/service/46-udpbroadcastforwarder which copies the UDP-broadcasts to the client-tap-adapter? Or is it gamespecific?
5. Do I have to change the priority of the network adapters in windows(client)?
I think 4. and 5. influence themselves.
The server would run on Debian 6.0.7 i386 for the beginning in a (bridged) vm provided by virtualbox.
The clients would mostly use Windows 7 x64.
As for now I was able to create a OpenVPN setup with routing(non bridged) config and a OpenVPN setup with bridged config.
But the bridged one ran in a 192.168.179.0/16 network. So the clients got a warning, because the subnets(friends lan and vpn) would conflict.
Maybe there was a configuration mistake by me though.
But we were able to access smb-fileshares and other services like http of each other.
Sadly we were not able to play games with it or browse in the internet(probably an dns error, because ip´s(google) could be browsed... Or it was cached, if I think about it now... hmmm)
Maybe this problem was discussed more often than I think in this forum, but I can´t search for it because searching for "game" or "games" or "game bridged" are too common words it says. If so a Link would be nice, too
Anyway I would be very thankful for any help or suggestions.
maybe someone can help me with my project

I want to setup a OpenVPN-Server for playing some games with LAN-play.
I know there are alternatives like Hamachi, Tunngle, Garena and so on, but it should be possible with OpenVPN too or not?
As far as I have read, I´ll have to use TAP for this, because games need broadcast-messages, which are only transferred in layer-2.
So I´ll have to focus on the bridged-solution.
The next thing and my first question would be, if the games use UDP and TCP traffic, do the clients have to establish more than one connection?
Due to the fact I read this line in the HOWTO-section(http://openvpn.net/index.php/open-sourc ... ml#vpntype) I found out, that I have to run two OpenVPN instances
1. So I think they handle the authentication and so on seperatly or am I wrong?If you want OpenVPN to listen on both a UDP and TCP port, you must run two separate OpenVPN instances
If so the clients would need more adapters, which would not be able to handle by the games?
The next thing, would be the IP-ranges.
2. Which ones would you recommend for that?
Usually my friends use 192.168.178.0/24 for their LAN, so am I.
Is it possible to create a new LAN with layer-2, which is not directly accessable(only via VPN) for me?
If it helps, I can set static routes in my router(192.168.178.1)
I dont know exactly what they do.
3. If it is possible, what kind of settings do I have to make for eth0, br0 and tap0 and the server.conf(especially the server-bridged- ... and push- part)?
4. If everything would be configured fine. Do I have to still use a tool like http://www.hanksoft.de/service/46-udpbroadcastforwarder which copies the UDP-broadcasts to the client-tap-adapter? Or is it gamespecific?
5. Do I have to change the priority of the network adapters in windows(client)?
I think 4. and 5. influence themselves.
The server would run on Debian 6.0.7 i386 for the beginning in a (bridged) vm provided by virtualbox.
The clients would mostly use Windows 7 x64.
As for now I was able to create a OpenVPN setup with routing(non bridged) config and a OpenVPN setup with bridged config.
But the bridged one ran in a 192.168.179.0/16 network. So the clients got a warning, because the subnets(friends lan and vpn) would conflict.
Maybe there was a configuration mistake by me though.

But we were able to access smb-fileshares and other services like http of each other.
Sadly we were not able to play games with it or browse in the internet(probably an dns error, because ip´s(google) could be browsed... Or it was cached, if I think about it now... hmmm)
Maybe this problem was discussed more often than I think in this forum, but I can´t search for it because searching for "game" or "games" or "game bridged" are too common words it says. If so a Link would be nice, too

Anyway I would be very thankful for any help or suggestions.