ManualFtp

As of v5.1, the GameCreate client includes a built-in FTP server that can be used to transfer files to or from each host. The FTP server is disabled by default.

  1. Enabling FTP servers
  2. Permissions
    1. Example
    2. Basic FTP: Uploads and Downloads
    3. Advanced FTP: Permissions based on access lists
    4. Per-User Configuration
    5. Per-Host Configuration
    6. Speed Limit Control

Enabling FTP servers

To begin using GameCreate FTP, you must first enable the FTP service. Click on the Domain tab to access the domain configuration area. Click on the FTP Admin tab. The checkbox labelled "Allow users with suitable permissions to FTP to hosts" and a section to control Uploads and Downloads will appear if running in Basic FTP Mode (chosen by default).

basic-ftp.png

At this point, you may opt to click Save to enable restricted FTP to all your hosts. Alternatively, read on for further information on the configuration choices available including restricting which hosts will have FTP access.

Each host's FTP server runs on port 2121. A Server's Files page will show the correct IP and Port combination to use to access that server's files over FTP.

In order to access FTP for a given Host or Server, you first locate which Host a given Server is located on and then FTP to that Server's Host Address on port 2121. You do not enter your GameCreate URL (such as example.au.gamecreate.com) as the FTP server in your FTP Client, rather, you enter the Host computer's IP Address (Found on the Server Overview page) that is running your game Server.

GameCreate's FTP server only supports passive transfers. Most modern FTP clients will use passive transfers by default, but others may need to be configured explicitly. Consult your FTP client's documentation for further details.

When FTP support is disabled, new FTP connections will be denied immediately, and any active FTP sessions will be disconnected within a few moments.

Permissions

GameCreate's built-in FTP server is tightly integrated with GameCreate's permission system. GameCreate's FTP access uses the following rules:

There are two important points to note here about how GameCreate handles game installations:

Example

This may be easier to understand with an example. Consider the following domain setup:

If FTP were enabled:

Note that John and Beth can both access C:\GameCreate\quake3 on "Host B", despite them being different game types. In particular, this means that John could download the "Test Me" configuration file. IF you have different sets of user permissions for a game versus its modifications (and you do not trust your users), take one of the following steps:

In the above example, a few directories were inaccessible:

If a user does not have permission to access any servers on a host, FTP login attempts will be rejected.

Basic FTP: Uploads and Downloads

You may add additional restrictions to user's abilities to upload and download beyond the standard read/write permissions described in the previous section. The choices available for uploads are:

The default upload option is Allow non-executable uploads, which provides some basic security against users trying to take control of a host by uploading executable code. This is particularly useful in a server rental environment.

The choices available for downloads are:

The default download option is Allow text-file downloads, which lets user retrieve configuration and logging information without allowing users to download copyrighted game files that may not be distributed.

If "Do not permit uploads" and "Do not permit downloads" is selected, FTP servers will be turned off entirely. This is useful if you wish to use the per-host configuration (see next section) to allow access to only one or two of your hosts.

Advanced FTP: Permissions based on access lists

Advanced FTP Mode allows you to control access permissions to specific resources (both uploads and downloads) on a per host, user and global basis.

Permissions are defined on the 'Default Permissions' and 'User Permissions' tabs found at the top while running in Advanced FTP Mode.

On the FTP Overview section, you can choose what action GameCreate should take when a user requests a file to be uploaded or downloaded that has no matching FTP Rule. The default action is to Deny any attempt that was not explicitly permitted in the Default/User Permission sections.

Default Permissions Permissions for Advanced FTP access are controlled via FTP Access Control Lists (ACLs).

ACLs allow you to define permitted uploads and downloads based on file/folder names and using wildcards.

The permission list is evaluated from the top down, and as soon as a matching rule is found to permit or deny a user's request, that result is used.

Access control may be defined on a per game, package or global level.

Game level permissions are applied to a users FTP session when they have permission to read/write that game. Package level permissions are applied when a user has read/write access to a game which uses that particular package. Default level permissions are always applied.

advanced-ftp.png

For a user to be permitted to (for example) download a file called 'server.cfg' under the 'cstrike/cfg' folder, you would need to:

A user may now login to FTP and download .cfg files from the cstrike/cfg folder.

Paths are relative to the game's installation directory, in this case it would be (for example) c:\games\hlserver.

It's also possible to restrict only downloading .cfg files from the cstrike/cfg folder (regardless of what is listed in the Permitted list of extensions) based on a Permit rule for 'cstrike/cfg/*.cfg' in the 'Path' type drop down. You still require an extension of '.cfg' to be downloaded however.

Do not show files in directory listing that have a Deny Download rule When a Deny rule is explicitly defined for the active permission group, files/folders matching a Deny rule will be hidden from the directory listing of a user's FTP session.

User Permissions The same rules apply to this area as the Default Permissions, except that a user may have specific permission's replaced instead of using the Default Permissions for the chosen Game or Package.

Rules that are not overridden are still inherited from the Default Permissions area.

Per-User Configuration

While running in Advanced FTP mode (See above for details) user permissions may be defined on a per user basis by accessing the User Permissions section of FTP Admin.

Per-Host Configuration

Each host defaults to using the FTP settings as configured on the Domain FTP Admin page. You are also able to change the FTP settings on a host-by-host basis. Advanced FTP allows per-user permissions to be defined.

To change the FTP settings for a host, visit the host's Overview page and click on Configuration. Click the "Override the default FTP settings" checkbox to display the host's FTP settings. Uploads and Downloads can be configured in the same manner as the Domain FTP Admin screen (see the previous section "Uploads and Downloads" for details).

If FTP has not been enabled for the domain, the message "FTP is currently disabled for this domain." will appear instead. FTP access must be enabled via the Domain FTP Admin screen - even if "Do not permit uploads" and "Do not permit downloads" are the selected options.

When FTP support is disabled on the Domain FTP Admin page, it is disabled on every host, regardless of any overridden configuration.

Speed Limit Control

GameCreate Client can enforce an overall combined upload/download transfer speed per host. This value is not per user, but per host. This allows you to throttle the total bandwidth used by the FTP Server for file transfers to prevent the host from using up too much bandwidth from user FTP sessions, which may interefer with game servers running on the host.

With a transfer limit speed of 128KB/sec, two users may be uploading/download files at the same time, and they will be allocated half of this bandwidth during their transfers. If a user's transfer completes, their reserved bandwidth is given back to any other connected users to allow them to complete their transfers faster.

FTP Speed throttling may be disabled by selecting No Limit.

last edited 2007-09-27 23:31:13 by AndrewArmstrong

© Mammoth Media 2001-2007.
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.