Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Recommended WAMP package [Re: SchokoKeks] #312190
02/23/10 16:33
02/23/10 16:33
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
That's very interesting. I don't have any prior experience with MySQL. What about a WAMP package makes it insecure? Or is it just that trouble-makers could potentially access my database without going through my game? I guess that would be pretty easy if they have a peek at what information my game would be putting out.

Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Re: Recommended WAMP package [Re: JibbSmart] #312196
02/23/10 17:04
02/23/10 17:04
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
A MySQL server is also included in wamp packages. Trouble-makers aren't able to access the database, as long as you have the newest most secure MySQL version and you don't give the username and password to anyone. Additionally, you can configure the mySQL server to not accept connections from the internet. When doing all of the above, the mySQL data should be pretty save (as long as your game doesn't have sql injection vulnerabilities, but thats up to you to program it to be save).

It's apache and php that make a wamp-packet insecure. In the past, there have been quite a few so called "remote exploits" in apache or php.
In the worst case, they can give "trouble-makers" full access to your system. That is unlikely if using Linux, but likely when using a stock windows (server 2003) installation with any WAMP.

In order to be moderately save you'll have to install updates ASAP after they get released, and run the apache-server as a non-privileged user.

Re: Recommended WAMP package [Re: SchokoKeks] #312220
02/23/10 18:59
02/23/10 18:59
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Quote:
Trouble-makers aren't able to access the database, as long as you have the newest most secure MySQL version and you don't give the username and password to anyone
My concern was more that they'd sniff outgoing packets from the game communicating with the server, and figure out how to have the apache server manipulate the database. This is less a concern for an A7 server, which can more easily take into account data that it receives from the game on a much more regular basis. Or at least, that's how I imagine it would work laugh
Quote:
It's apache and php that make a wamp-packet insecure. In the past, there have been quite a few so called "remote exploits" in apache or php.
In the worst case, they can give "trouble-makers" full access to your system. That is unlikely if using Linux, but likely when using a stock windows (server 2003) installation with any WAMP.
Wow. That's bad!

Thanks for that. I have two types of use for online databases planned, and with your advice in mind I'd probably set them up like so:
1. Persistent online worlds in which case I'll need to host the game on a Windows machine with A7, but I'll have A7 interact with MySQL directly; no Apache (or other) server on the system.
2. Lobby systems -- I think the easiest way to have a good lobby-system with which other servers can communicate (update their status, such as how many players are in the game, and so on) while still hosting a game would be to use the up-coming http functions from the beta page. For this I'll set up a Linux system with a LAMP-stack. This would also use very little bandwidth on my side, and I could probably comfortably have lobbies for several different multiplayer games (if I ever make that many) on the same machine without much trouble.

Does that make sense?

Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Re: Recommended WAMP package [Re: JibbSmart] #312270
02/23/10 23:20
02/23/10 23:20
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
Both 1 and 2 sound pretty solid.
For 1, I hope you're planning a system like that:


MySQL <------> A7 Server <------> A7 Client

Its important that the clients don't have direct access to the mySQL database. As long as the A7 Server checks all incoming data from the clients for validity, the MySQL database and thus the "game world" is save.

Same with the lobby system. As long as the php-scripts running on the apache server are save, the whole system will be save (except for the mentioned "exploits", but when you keep the system up to date the risk will be minimal).

Re: Recommended WAMP package [Re: SchokoKeks] #312275
02/23/10 23:37
02/23/10 23:37
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Quote:
For 1, I hope you're planning a system like that:

MySQL <------> A7 Server <------> A7 Client
Yes, I am. Thanks very much, I've seen your multiplayer work and appreciate your help laugh

Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Page 2 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1