View unanswered posts | View active topics
|
Page 9 of 29
|
[ 432 posts ] |
|
| Author |
Message |
|
steamCooker
|
Post subject: Re: MasterServer (win32/linux) Posted: Sunday, 05 Dec 2010, 17:44 |
|
| Cooking Steam for CS RIN! |
 |
Joined: Monday, 16 Oct 2006, 18:52 Posts: 2933
|
released the latest win32 version. no more updates for some time 
|
|
| Top |
|
 |
|
benak
|
Post subject: Re: MasterServer (win32/linux) Posted: Wednesday, 08 Dec 2010, 12:31 |
|
Joined: Wednesday, 09 Apr 2008, 19:40 Posts: 17
|
Hi, I really like this work but i have serveres at linux and i have no windows server. Please, can you make lastest version to work @ linux? And please, i am not able to test it on myself but exactly what data are saved in sql .db file? Is there IP + PORT of every server that is currently registered and active at MasterServer? And last question - would be possible to "BAN" servers from SQL? (instead of file (now you "deny" servers in file "masterserver.ini" but i would like to do this with database)). Please, can you do this little upgrade? I really like this work a lot. Thumbs up  Thank you.
|
|
| Top |
|
 |
|
steamCooker
|
Post subject: Re: MasterServer (win32/linux) Posted: Wednesday, 08 Dec 2010, 22:08 |
|
| Cooking Steam for CS RIN! |
 |
Joined: Monday, 16 Oct 2006, 18:52 Posts: 2933
|
i think i wont have to work on the linux build or new features before 2011 ... at least in the .db is the ip+port + meta data of servers registered and active. u can open it using a sqlite compatible clint such as sqlitespy. to "ban" servers from the database, you should configure master server to use an .db file and use an external client (a command line one is available on sqlite.org) to run a script to delete servers would be smth like : - delete from game_servers where _ip=123456789 and _port=27015
the ip is the integer form of the 4 bytes ip.
|
|
| Top |
|
 |
|
benak
|
Post subject: Re: MasterServer (win32/linux) Posted: Thursday, 09 Dec 2010, 16:29 |
|
Joined: Wednesday, 09 Apr 2008, 19:40 Posts: 17
|
Then i guess i will wait with my project until you make new release at linux too  So in DB are saved all servers ever registered at my masterserver (both active and inactive servers)? I Don't quite understand that part about 4 bytes ip. It's decimal IP without dots version (so 192.168.123.231 = 3232267239)? Thank you
|
|
| Top |
|
 |
|
steamCooker
|
Post subject: Re: MasterServer (win32/linux) Posted: Thursday, 09 Dec 2010, 21:40 |
|
| Cooking Steam for CS RIN! |
 |
Joined: Monday, 16 Oct 2006, 18:52 Posts: 2933
|
|
in the db are only the active servers. the inactive are deleted. only the ones configured in the .ini are kept.
yeah 192.168.123.231 would be 0xC0.0xA8.0x7B.0xE7 => 0xC0A87BE7 = 3232267239
|
|
| Top |
|
 |
|
benak
|
Post subject: Re: MasterServer (win32/linux) Posted: Thursday, 09 Dec 2010, 21:44 |
|
Joined: Wednesday, 09 Apr 2008, 19:40 Posts: 17
|
|
Ok but if i just remove server from DB it's not banned, just removed - and when new heartbeat comes it will be added to DB again - or not? (because masterserver checks if is this IP+Port already in DB - if yes it updates DB with actual data - if no it looks like new server so it will be added to DB again). Is my understaning good or does it work differently?
|
|
| Top |
|
 |
|
steamCooker
|
Post subject: Re: MasterServer (win32/linux) Posted: Thursday, 09 Dec 2010, 22:02 |
|
| Cooking Steam for CS RIN! |
 |
Joined: Monday, 16 Oct 2006, 18:52 Posts: 2933
|
it should refuse it theorically as the original registration is deleted. - the server register on master server and gets a challengeId - the server then sends status update periodically for this challengeId if the challengeId is not found, the update updates nothing. else, u can block the server from accessing using the .ini or u can even disable game server join/update and update the server manually in the db using the .ini or your own method 
|
|
| Top |
|
 |
|
benak
|
Post subject: Re: MasterServer (win32/linux) Posted: Thursday, 09 Dec 2010, 23:22 |
|
Joined: Wednesday, 09 Apr 2008, 19:40 Posts: 17
|
Yes that's true, i can block updates by blocking IP & PORT in firewall, but i don't like this way.. (on linux it's easy to do but hard to manage (i would like to manage whole DB thru webpage (and managing linux thru webpage is security risk))). So i will be very happy if it would be possible to block servers from updating thru DB. So instead of using .ini file (this part:) - [Access]
- ;deny=127.0.0.1 192.168.1.1
- ;allow=127.0.0.2 192.168.1.2
Do the same thing with DB. Because it's easier, faster and much more efficient to update DB table instead of file. So i would be very happy for very easy table like [ID = integer auto_increment; IP = integer; PORT = integer; AUTH = boolean] so DB data would look like this: - ID = 1; IP = 127.0.0.1; PORT = 27015; AUTH = true
- ID = 1; IP = 192.168.1.1; PORT = 27015; AUTH = true
- ID = 1; IP = 127.0.0.2; PORT = 27015; AUTH = false
- ID = 1; IP = 192.168.1.2; PORT = 27015; AUTH = false
What do you thing about it? Is it possible to do this in next release?  Because i want to use your masterserver in my personal project. And part of this project will be web-based masterserver control environment programmed in PHP and i think i can share it (publicly) when it will be done. But it would be much better if denying and allowing access is done with DB. (and of course i can't start work until it will be released for linux).  To sum up, when you release new version for linux (and at best with server auth access with DB) i will start working at web-based configuration panel (delete server, ban server, browse servers in DB etc.) that everyone can use and makes working with your masterserver easier, faster and it adds new features to your work (browsing server in DB etc..).
|
|
| Top |
|
 |
|
steamCooker
|
Post subject: Re: MasterServer (win32/linux) Posted: Friday, 10 Dec 2010, 21:32 |
|
| Cooking Steam for CS RIN! |
 |
Joined: Monday, 16 Oct 2006, 18:52 Posts: 2933
|
|
yes i could change the "firewall" to block ip/ports based on a db table. i'll do it next time i'll work on this project (not within the next weeks)
|
|
| Top |
|
 |
|
benak
|
Post subject: Re: MasterServer (win32/linux) Posted: Friday, 10 Dec 2010, 23:45 |
|
Joined: Wednesday, 09 Apr 2008, 19:40 Posts: 17
|
Ok, thanks. Thats great 
|
|
| Top |
|
 |
|
chinavjstar
|
Post subject: Re: MasterServer (win32/linux) Posted: Sunday, 19 Dec 2010, 11:08 |
|
Joined: Sunday, 19 Dec 2010, 10:56 Posts: 5
|
|
2010/12/19 15:23:15 - INFO : HL Master Server started 2010/12/19 15:23:15 - ERROR : SocketException (10048) : Error binding socket to bind address 2010/12/19 15:25:01 - INFO : HL Master Server started 2010/12/19 15:25:01 - ERROR : SocketException (10048) : Error binding socket to bind address 2010/12/19 15:36:57 - INFO : HL Master Server started 2010/12/19 15:36:57 - ERROR : SocketException (10048) : Error binding socket to bind address 2010/12/19 15:45:13 - INFO : Registring game server 127.0.0.1:27015 on SourceMasterServer 2010/12/19 15:45:13 - DEBUG : Setting game server 127.0.0.1:27015 info : \protocol\7\challenge\1\players\0\max\16\bots\0\gamedir\left4dead2\map\c2m4_barns\password\0\os\w\lan\0\region\4\gameport\27015\specport\0\dedicated\1\gametype\coop,empty\appid\550\type\d\secure\1\version\2.0.5.4\product\left4dead2 2010/12/19 15:45:13 - DEBUG : Setting game server 127.0.0.1:27015 gamedata : \protocol\7\challenge\1\region\4\gamedata\g:l4d2bgp,coop,realism,survival,versus,teamversus,scavenge,teamscavenge,key:2011\gdversion\1 2010/12/19 15:45:13 - INFO : Source Master Server started 2010/12/19 15:45:14 - INFO : ----------------------------- 2010/12/19 15:45:14 - INFO : Server status : 2010/12/19 15:45:14 - INFO : Source Master Server (0.0.0.0:27015) : Online 2010/12/19 15:47:24 - INFO : Allowed IP : 127.0.0.1:0 2010/12/19 15:47:24 - INFO : Allowed IP : 202.85.215.1:0 2010/12/19 15:47:24 - INFO : Denied IP : 127.0.0.1:0 2010/12/19 15:47:24 - INFO : Denied IP : 202.85.215.1:0 2010/12/19 15:47:24 - INFO : Registring game server 127.0.0.1:27015 on SourceMasterServer 2010/12/19 15:47:24 - DEBUG : Setting game server 127.0.0.1:27015 info : \protocol\7\challenge\1\players\0\max\16\bots\0\gamedir\left4dead2\map\c2m4_barns\password\0\os\w\lan\0\region\4\gameport\27015\specport\0\dedicated\1\gametype\coop,empty\appid\550\type\d\secure\1\version\2.0.5.4\product\left4dead2 2010/12/19 15:47:24 - DEBUG : Setting game server 127.0.0.1:27015 gamedata : \protocol\7\challenge\1\region\4\gamedata\g:l4d2bgp,coop,realism,survival,versus,teamversus,scavenge,teamscavenge,key:2011\gdversion\1 2010/12/19 15:47:24 - INFO : Source Master Server started 2010/12/19 15:47:24 - INFO : ----------------------------- 2010/12/19 15:47:24 - INFO : Server status : 2010/12/19 15:47:24 - INFO : Source Master Server (0.0.0.0:27015) : Online 2010/12/19 15:48:39 - INFO : Allowed IP : 127.0.0.1:0 2010/12/19 15:48:39 - INFO : Allowed IP : 202.85.215.1:0 2010/12/19 15:48:39 - INFO : Denied IP : 127.0.0.1:0 2010/12/19 15:48:39 - INFO : Denied IP : 202.85.215.1:0 2010/12/19 15:48:39 - INFO : Registring game server 127.0.0.1:27015 on SourceMasterServer 2010/12/19 15:48:39 - INFO : Source Master Server started 2010/12/19 15:48:39 - INFO : ----------------------------- 2010/12/19 15:48:39 - INFO : Server status : 2010/12/19 15:48:39 - INFO : Source Master Server (0.0.0.0:27015) : Online
this is word now ?my edit config files:
;MasterServer - by SteamCooker
[Servers] ;HLMasterServer=202.85.215.35:27015 SourceMasterServer=202.85.215.35:27015 ;RDKFMasterServer=202.85.215.35:27015
[Access] deny=127.0.0.1 202.85.215.1 allow=127.0.0.1 202.85.215.1
[Database] ;HLMasterServer=HLMasterServer.db SourceMasterServer=SourceMasterServer.db ;RDKFMasterServer=RDKFMasterServer.db
[Options] ;disableJoin=true enableRating=true ;traceProtocol=true
[Logs] ;trace = 0, debug = 1, info = 2, warn = 3, error = 4, fatal = 5, off = 6 Level=(int32)2 LogFile=MasterServer.log
;Static manualy defined game servers, challenge must be configured as %u
;[HLMasterServer] ;default server info ;info=\protocol\47\challenge\%u\players\0\max\24\bots\0\gamedir\cstrike\map\de_nuke\type\d\password\0\os\w\secure\0\lan\0\version\1.1.2.5\region\255\product\cstrike
;[HLMasterServer/127.0.0.1:27015] ;sample CS server ;info=\protocol\47\challenge\%u\players\0\max\24\bots\0\gamedir\cstrike\map\de_nuke\type\d\password\0\os\w\secure\0\lan\0\version\1.1.2.5\region\255\product\cstrike
[SourceMasterServer/127.0.0.1:27015] ;sample L4D2 server info=\protocol\7\challenge\%u\players\0\max\16\bots\0\gamedir\left4dead2\map\c2m4_barns\password\0\os\w\lan\0\region\4\gameport\27015\specport\0\dedicated\1\gametype\coop,empty\appid\550\type\d\secure\1\version\2.0.5.4\product\left4dead2 gamedata=\protocol\7\challenge\%u\region\4\gamedata\g:l4d2bgp,coop,realism,survival,versus,teamversus,scavenge,teamscavenge,key:2011\gdversion\1
;[RDKFMasterServer]
so help me please...
|
|
| Top |
|
 |
|
steamCooker
|
Post subject: Re: MasterServer (win32/linux) Posted: Sunday, 19 Dec 2010, 12:07 |
|
| Cooking Steam for CS RIN! |
 |
Joined: Monday, 16 Oct 2006, 18:52 Posts: 2933
|
the 27015 port seems to already be in use (maybe user by your game server already running on the same computer ?), use another one. your configure the allow = deny in the [access] section, it doesn't make sense : you should allow or deny access but not both 
|
|
| Top |
|
 |
|
chinavjstar
|
Post subject: Re: MasterServer (win32/linux) Posted: Sunday, 19 Dec 2010, 14:02 |
|
Joined: Sunday, 19 Dec 2010, 10:56 Posts: 5
|
|
oh,what your mean. server online before use this ?
i make server online and use this tool...so almost work fine...thanks
|
|
| Top |
|
 |
|
aaarnas
|
Post subject: Re: MasterServer (win32/linux) Posted: Monday, 20 Dec 2010, 22:29 |
|
Joined: Sunday, 01 Mar 2009, 16:29 Posts: 10
|
Waiting for linux build, because there isn't any use of windows build 
|
|
| Top |
|
 |
|
steamCooker
|
Post subject: Re: MasterServer (win32/linux) Posted: Thursday, 23 Dec 2010, 23:11 |
|
| Cooking Steam for CS RIN! |
 |
Joined: Monday, 16 Oct 2006, 18:52 Posts: 2933
|
here is a linux build. can someone please test the new access.db feature ? thx 
Last edited by steamCooker on Tuesday, 28 Dec 2010, 20:48, edited 1 time in total.
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 9 guests |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|