Forum

> > CS2D > Scripts > [ServerManager] Dev Blog.
Forums overviewCS2D overview Scripts overviewLog in to reply

English [ServerManager] Dev Blog.

52 replies
Page
To the start Previous 1 2 3 Next To the start

old [ServerManager] Dev Blog.

Marcell
Super User Off Offline

Quote
∗ Updates ∗

Some new mobile screenshot added

http://xde.hu/image/AK
http://xde.hu/image/AU
http://xde.hu/image/Ah
http://xde.hu/image/AI
http://xde.hu/image/Af

> Information:

Long time ago, i planning to make something really useful for this community. Today i show some information about currently and coming features of this panel.


> Trailer:
https://www.youtube.com/watch?v=77DS_T50scs

> It's have 3 parts:

• The quest page (where servers, blogs, prices, other thinks are listed, etc.)
• The client page (where client able to manage his server, pay his invoices, etc.)
• The admin area (where owner able to create new servers, post news, modify configurations, etc.)

Currently features:

> Server related:

• Managing Servers (create, delete, edit)
• Status of Servers
• Starting Servers
• Restarting Servers
• Stopping Servers
• Changing RCON Password
• OneClick LuaScript Installer

ADDED
New Features

• Ticket System
• Restarting Servers
• Stats::Extract and Old Stats Viewer
• Admin News (add, delete)
• Announcements (add, delete)
• Invoice System
• Package Manager
• New Home page
• Order Managment

Coming features:

• Client Area
• Web Based FTP (with FTP accounts)
• Server-Image Generator
• Web Based RCON
• RealTime In-Game Chat via Webinterface (you dont need to connect for talk)

Website: http://cs2d.hu
Version: 0.0.8

Supported OS:
√ Linux (x86, x64)
× Windows

Screens:
Home (Stats)
Orders
Clients
Servers
Invoice
Tickets
New Stats System Thanks to Nighthawk1037 ∗


Changelog
Spoiler >
edited 19×, last 30.11.15 12:46:26 pm

old Re: [ServerManager] Dev Blog.

Yates
Reviewer Off Offline

Quote
How will you protect servers from each other Lua based? Linux permissions can't stop Lua from going outside its own directory and into another.

Say I find out what dir a client uses, I could basically ruin their whole server without you knowing.

Just asking, I never was able to resolve that.

old Re: [ServerManager] Dev Blog.

_Yank
User Off Offline

Quote
easy, dirty and limited workarround :
1
2
os.execute = nil
io.popen = nil
make sure that's the first script being executed, chown it to root, make it read only for other users and boom.

old Re: [ServerManager] Dev Blog.

Yates
Reviewer Off Offline

Quote
@user _Yank: The cs2d_dedicated needs certain permissions which are enough to delete that file once found.

It's pretty hard if not impossible to stop it.

old Re: [ServerManager] Dev Blog.

Marcell
Super User Off Offline

Quote
user _Yank has written
easy, dirty and limited workarround :
1
2
os.execute = nil
io.popen = nil


It will not solve everything, it still requires a lot of configuration.

old Re: [ServerManager] Dev Blog.

Hajt
User Off Offline

Quote
Maybe scan *.lua files every 1 minute by cron. If os.execute has been detected, kill server. That'll be a little bit stupid but this problem is difficult to solve.

old Re: [ServerManager] Dev Blog.

Yates
Reviewer Off Offline

Quote
@user Hajt: That would still give me one minute, and Lua could ruin a whole server in just under a few seconds. Also, people will need os.execute and io.open for save files and map detection for map voting.

If there was a way to output what the cs2d_dedicated is doing, and stop it when it tries to go into a directory outside it's root.

old Re: [ServerManager] Dev Blog.

_Yank
User Off Offline

Quote
@user Yates: I don't get your point, if the file has the right permissions, the user will not be able delete it. (right ?)

@user Marcell: Why not ?

With that, you could make a system where you can only edit the server.lua through the manager (and it would ensure the script is the first being executed)

But again, this way, makes scripting even more limited.

old Re: [ServerManager] Dev Blog.

_Yank
User Off Offline

Quote
@user Marcell: No after you declare it nil, you'll not be able to use it. So as I said, if you could ensure that's the first thing being executed on the server, it would indeed work.

old Re: [ServerManager] Dev Blog.

Marcell
Super User Off Offline

Quote
Still problem with

Quote
Yates:

Also, people will need os.execute and io.open for save files and map detection for map voting.

old Re: [ServerManager] Dev Blog.

Starkkz
Moderator Off Offline

Quote
This is why I want developers to use DLL(s)/SO(s) for Lua and not actually static libraries.

@On-topic: Good luck on your project.

old Re: [ServerManager] Dev Blog.

Starkkz
Moderator Off Offline

Quote
Well, on the other hand it would still be necessary to block that DLL/SO because someone could replace it with one that is completely unblocked just with a simple Lua script.

old Re: [ServerManager] Dev Blog.

_Yank
User Off Offline

Quote
Quick suggestion,
an option to choose the administration script (along that automatic rank configuration).

If you're ever going to implement that, I would like if you implemented mine.
To the start Previous 1 2 3 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview