Internet Windows Android

How to create your own Rust server. How to create your own RUST server under Linux How to run a local server in Rust

If you have landed on this page, you are wondering how to create your own server in Rust, as well as how to configure it to work.

Initially, we will talk exclusively about the Steam version of the game, which costs 800 rubles for this period of time, if necessary, it can be simulated on a pirated game. During various holidays make decent discounts. Therefore, we will not consider pirated client-servers much, because Rust is not so expensive. Now let's talk about the purpose of the server in the game itself.

The purpose of your server in the game Rust

  1. With the help of the server, you can play with your friends, where no one will interfere with your gameplay.
  2. For experimental activities, this means that anyone can build houses, traps to test it in real time.
  3. To benefit from this, that is, the creation of a server for the game of dozens of people.

There may be other reasons why Rust Experimental servers are created, but these were just the most popular ones.

How to create (make) your Rust Experimental server on Steam

The Rust server is, first of all, an incredibly good place to do a lot of experiments in the game. Where you can look at new updates from a different angle, that is, find out what items have been added to the game, as well as check the stability of your own house, which will not be easy to raid. At the same time, the most banal reasons were named for which they create their own server.

It is worth remembering that servers sometimes have their own shops with things where you can buy items for a raid, building a house, weapons and much more, in fact, for real money. In this aspect, there is constant competition, where some people still buy these items.

It is better to play the game process together with friends on other people's servers, because it will add adrenaline and raise team spirit, thereby you will understand that it is better to survive together with friends on other people's servers. But there are also cases when the server is filled not only by ordinary players, but also by cheaters who do not allow you to play normally. If you know how to raise your server from its knees, then feel free to create your own and invite friends there, but do not use admin rights, this will aggravate the situation of other players.

System Requirements for Rust Server Hardware

No matter how ridiculous it may sound, but there are no specific system requirements that can be recommended to everyone. Where in the equipment the most important element is RAM, which can be the highest in terms of parameters, because when the server is loaded, the entire flow loads RAM, and then freezes occur on the server. If there are a lot of objects and players on the server, then the load on RAM will only increase. For a full-fledged game, 8 GB of RAM and an i5th processor are suitable, which will stably support your server at the proper level. With this equipment, you are able to withstand an attack of 20 helicopters, while shooting at them from a 15-story building, which will be 15 blocks in diameter. Thus, no hang-ups should occur. As soon as a serious load appears on the server, the RAM begins to use its own strength to the maximum in order to save the server's work. In normal mode, only 4-6 percent of the RAM is used.

Accessibility in the SteamCMD Console

SteamCMD is a special utility that is designed to instantly update your own servers, and this is done through the client version, using the command line. But initially, in this way, you can install the Rust server itself. Undoubtedly, it is important to download such a console from the official site, and only there you need to download it, because you can catch dangerous viruses. The site itself also has installation information, but this instruction is probably not enough for you to create a full-fledged server.

The distribution itself is in the archive, in order to install, you need to unpack all the files into one of the necessary directories. It is worth remembering that if your server is on Linux, then you need to download just such a distribution. Now let's try to completely disassemble OS such as Windows 10 and Debian 8 GNU, Linux.

Installing a Distribution for Rust Server on Windows 10

Perhaps this distribution installation process can differ little from previous versions of Windows, where everything is done in the same way. Moreover, this process can be carried out on the core version, which is undemanding to a license, which can be ideal for all servers.

Initially, it is better to create a specific folder on your hard drive. For example, D:\SteamCMD, such a name was made so as not to get confused in the future, and it was clear what she would do in the future. In this folder you should unpack your distribution. After unpacking all the files, you will see stemcmd.exe among the files, which is exactly what you need to run. After the program is launched, it will automatically download the current version, if necessary, so that your server is up to par. You must remain idle until you are prompted to enter any commands.

Thus, we now have the right to update Steam applications. Below is a detailed instruction on how to create and update your own game server.

IMPORTANT: All commands are entered without these "" quotes, keep this in mind in the future.
  1. The first step is your own authorization on the service. This can be done with a good team "login anonymous". Of course, you can specify your own login with a password, but anonymous authorization does not require you to enter any password. Its use is simpler than other authorization systems.
  2. The second important step is to specify the real path to the directory where the server will be fully installed. You can do this with "force_install_dir<Путь каталога>» . In this case, it is worth remembering that when choosing a hard drive, you need to pay attention to its workload and bandwidth. The highest bandwidth is only with an SSD drive, which is worth buying, if not. Thanks to him, speed is increased by 90 percent, as well as access to it. Therefore, this must be taken into account when creating a server. The path along with the command will look something like this, "force_install_dir D:\srv001"(the name of the directory was specified in an arbitrary way, where you can name it in your own way, after which it will be automatically created).
  3. One of the equally important steps is to launch the installation or update of the game. Undoubtedly, all programs and applications have their own identifier, in Rust it has this ID: "258550". In this step, you do not need to think about it, where you can boldly enter the following data into the console: "app_update 258550". After entering this command, the download will be performed, as well as the required unpacking of the downloaded files to the catalog server, which was just indicated by us in the previous step. Of course, if you look on the Internet, you can come across such a command "app_update 258550 -beta public". She, of course, has a full team summary. The majority lies in one thing, that the game was previously divided into two different games, and these are Legacy and Experimental. Where a new version was in testing that was not added to the main game and distributed in free roam. Now the Legacy has been officially shut down, where the Experimental has come to replace it. Keys like "-beta" are required to install a specific version of the game, in our case, this is not necessary. After all, she will download a full-fledged client of the game itself, which is up-to-date.

After your client has downloaded all the required files for the server, you can proceed to the official launch of the server.

This article will cover the complete concept of creating, opening and even managing your own server, which will have only standard files without any modifications to it. After all, modifications are a completely different topic, about which you can also tell a lot.

To start our server, we need a batch file (batch file). Moreover, in its launch, you have the right to substitute several of your own functions, which it will be forced to perform, and this is indicated in the launch command itself.

Of all the minimal commands, it is required to include such a line in the batch file RustDedicated.exe –batchmode. This is only the smallest part of the possible-connected commands that can be used.

If anyone is interested, you can run your server under such commands that should be in your batch file "RustDedicated.exe -batchmode +server.hostname "MyNameServerRExP" +server.port 28016 -logFile "output.txt". In the command line, not particularly necessary settings were shown, which indicate the name of your created server, port numbers, log file, it will record all the log actions performed by the server, where you can find out what errors occurred in its work. But for this you need to create a file in the directory of the created server, and it will be "D:\srv001\ruststart.bat".

An important factor in this step is the choice of port, if you have several other servers on the same server, then you need to use completely different ports. That is, you yourself need to set other port parameters "+server.port 28017".

After running this command, the whole world will be generated. But also in this batch file you have the right to specify any commands that will be directly used for the server.

Now we need to launch the Rust game itself, by launching the game, open the console with using the F1 key, where we enter such a line "connect localhost:28016". That is, we enter the same port that we indicated in the batch file itself, and we will go to our server. But "localhost" will only run on your machine where the server was running. If you did the same, but already on the purchased server, then you only need to enter the ip-address and port of the server, and then go to it. But we initially made a server for our OS with local access. Thus, having registered the connection command, after a while it will be possible to run around the wild island.

Automated update process for Rust Experimental server

At this moment, each person designates his own framework, how best to update the entire server for an updated version of the game. That is, you can set specific values ​​that your system will follow. To do this, it is important to create a batch file again with this path "D:\SteamCMD\upd_rs001.bat". It should contain something like this:

echo "Update server Rust: SRV001"

start /wait/high steamcmd.exe +login anonymous +force_install_dir D:\SRV001 +app_update 258550 validate +quit"

Now you will have to suspend the server yourself, and open this bat file, which will update your server client to the current version. As soon as the updates are downloaded, you can safely run it again.

If you understand console commands, then you can bring everything to automatism. Where if a new update arrives, then the server stops working and downloads the updates itself, without your participation in all these moments. Of course, if you have a server with modifications, then they may stop working and be able to be more supported. As for the original servers, this will be just a great option that is simply irreplaceable.

Installing the server on a Debian Squeeze machine

Undoubtedly, the process of this installation is very difficult, and requires significant explanations of what relates to what. Therefore, you need to act carefully.

  1. Log in to the linux system as the superuser, it is referred to differently as "su". Next, you need to execute the command "apt-get install lib32gcc1". This step installs the libraries specifically required for GCC, or more specifically, for compilation.
  2. For SteamCMD, a new profile is created completely separately so that it does not constantly run as root, which will consume more time to start. Then we calmly create a steam user, where we immediately log in, while using commands such as: “useradd -m steam”, after “su - steam”.
  3. Next, you need to create a directory called "steamcmd", and go into it using "mkdir ~/steamcmd", and then "cd ~/steamcmd". Where to create a directory in the economic directory of the steam profile.
  4. Immediately download the distribution in the console: "wget ​​http://media.steampowered.com/client/installer/steamcmd_linux.tar.gz".
  5. We unpack the archive: "tar -xvzf steamcmd_linux.tar.gz". Next, enter "ls" and see which files have been added.
  6. With the help of "./steamcmd.sh" we launch the shell script. Where we will create an invitation to the Steam console command. Undoubtedly, in the future we simply enter commands intended for steam, which we have already seen when installing the Windows version.

"login anonymous"

"force_install_dir ./res02"

"app_update 258550"

  1. As everything is installed, then boldly go to the “res02” folder, but for this you first need to exit the “quit” Steam console. Enter further "cd ./res02", and enter "ls". We look at all the files and among the acquaintances we see that the file "RustDedicated" is present.
  2. In this step, it remembers the Windows version again, where we already use the batch file. We do the same here, running the batch file under the following parameters “./RustDedicated –batchmode”. After that, the console starts to display various messages about some information, in which there should be no errors.

Then we quickly start the game and write, as usual, in the console "connect 192.168.0.75:28016". Here, the address of the machine itself is already initially indicated, as well as its port. Then we see that the connection to the server is established. Unfortunately, without optimization, the server will consume most of the RAM, which is about 5 out of 8 GB. Indeed, on Windows, the use of RAM did not even reach 1.3 GB.

So, the site has a wonderful network. But in it, only a couple of lines are devoted to starting and configuring the server.
I will try to help users who would like to play on their local server with friends and with your own settings. In this short article, I will try to show the whole process: from installing the server to configuring it, including using mods.

1. The first thing we need is to switch to running Rust over the network and download archive containing all the necessary tools, and unzip to any location.

2. Now let's move on to installation. Run the file Update-Rust-Server.bat from a folder SteamCMD and wait while our server is downloading. The servers will be loaded into the RustServer folder.

Everything, we have installed the server, proceed to the next steps.

3. Now we will start the server, customize it and invite friends. In order to connect to the created server, perform the following steps:

I go to the folder SteamCMD and run the file Run-Rust-Server.bat(It is him, not Rust_server). To start the experimental Rust server, run the file Run-Rust-Exp-Server.bat
- After starting, the command line will contain lines with information about the download, we are waiting for the moment when the inscription appears "server initialized".
- Everything, the server works.
- Now, in order to enter the server, we need to find out the address of our server. Classic version -
- We write down our ip somewhere in a text file (so as not to forget).
- Next, start the game and press the F1 key (console) and enter the net.connect command there. Your ip: 28015 (where Your ip is your ip, which you learned in advance). In theory, it should also be 127.0.0.1.

If everything is done correctly, you will connect to your server. In order for friends to be able to connect to you, it is of course necessary that the server is running on your computer, and that your friends correctly enter the connection command that you tell them.
Now you can start playing. BUT! The correct execution of all actions in some cases cannot guarantee you success. Since there are a lot of reasons why you might not succeed. The solution to the most common problems is written in.

4. Well, now, if everything worked out for you, and you liked it, you can play around with server settings.
For example, in the latest update, the developers added such an interesting thing as the wear of weapons (I immediately remembered the Dead island series), as well as the wear of clothes and equipment.
This did not suit many, and here is the opportunity to disable this feature.

For this you need:
> Log in to the server with admin rights. To do this, open the console in the game with the F1 key and enter the command Rcon.login your password (your password is set in the server.cfg file and by default it looks like 123456). After entering, an inscription should appear (in the console) "logged as admin", which means you are logged in as an admin. Now enter the commands:
- To disable clothing wear: conditionloss.armorhealthmult "0.0"
- To disable weapon/inventory wear: conditionloss.damagemultiplier "0.0"

With the help of various mods, you can also disable or enable different things. For example, disable disintegration on the server or adjust the flight interval for airplanes. The network already has both affordable and not very affordable mods. I recommend using a free mod magma, due to its ease of customization and a large number of plugins.

Introduction

NOTE: Before you start creating a server, make sure you have enough disk space, computer power, nerves and time.

Also, in the recent "Updates/Fixes", they killed the command to connect to the server to other people (namely: "client.connect: 28015" (by default)). Now, this early "vital" command produces an endless loading screen (someone might say, they say, everything works, it's just me being crooked. -Maybe, but we did this 10 times and in general killed time, about two hours, but the loading screen showed no signs of life). In this regard, it makes no sense to paint how to connect to the server to other people. (because I don’t know other ways.)

Server creation

We start by downloading from the official Steam website: SteamCMD (Steam console). After downloading SteamCMD, unzip it to the Steam folder. Next, go to the "Steam" folder and run this file (At this point, Steam itself must be turned off). The Steam console opens. After loading, we must log in - for this we write the command: "login anonymous" and press Enter.
After we logged in, we write this command in order to download the Rasta files - " app_update 258550 -beta experimental"
It is logical that the game files will take a long time to load, depending on what Internet speed you have.
I hasten to note that if you do not have an auto-update plugin, then you will have to write this command "app_update 258550 -beta experimental" after each update.
After the files have downloaded, we can close the console. Then go to the folder: Steam > steamapps > common and if you did everything right, then you should have a "rust_dedicated" folder.
Now let's launch Steam. It must be updated. (That's why it was so important that Steam was closed) In the meantime, Steam is being updated, we again go to the rust_dedicated folder and create a text document, which we will call "start" and change its format from ".txt" to ".bat". As a result, we should have got a file: "start.bat". Now right-click on it and select "Edit". Next, we write the following:

  1. RustDedicated.exe -batchmode -load (this function will be responsible for saves on your server)
  2. +server.hostname "NazvanieServera" +server.port "28015" +server.identity (the name of your server can be anything, as long as it is written in English).
  3. "my_server_identity/save" +server.maxplayers "10" (the number of players can also be arbitrary).
  4. +rcon.port "28016" +rcon.password "11111" +server.seed "2200000" (server seed can be any).
We save. And so, if we did everything right, we go to RUST. Open the Rasta console and write: "client.connect"
That's all the server is created, which means we move on ...
P.S: during the entire operation of the server, the program must be running: RustDedicated.exe, and if you are on the server and you close this program, you will immediately be kicked from the server (or rather, the server will turn itself off). And after each exit from the server, it is desirable to write the command: "save", since RUST sometimes does not save data automatically.

Issuance of the admin panel

Issuing an Admin Panel After you have created a server, you probably want to be an admin, because what's the point of creating a server if you are not the main one on it, right?
And so for this we again need to go to RustDedicated and write the following command:
ownerid X "Y", where X is your SteamID and Y is your nickname.
In order to find out your ID, you need to go to your profile, but if you have already changed your original ID, then go to your server and open RustDedicated, it will say there: which player has joined and his ID.
If at the time when you gave yourself an admin panel, you were on your server, you will need to re-login. And in order to make sure that we did everything right, press F1 and go to the Item list, if everything was done correctly, then you can give yourself the required amount of resources.

So that every time you enter the server, you do not have to re-write all these zloebuchie numbers and letters, you can do the following:

1. Open the cfg folder, which is located (at least for me) here:
D:/Steam/steamapps/common/rust_dedicated/server/my_server_identity/cfg
2. Create a new test file.
And write the same command. (ownerid X "Y")

Have you ever wondered how to make your own RUST server but ran into the limitations of Windows OS? There is no point in worrying anymore! In this guide, we will focus on setting up a server under Linux, especially the Debian 8 x64 distribution. Instead of focusing only on RUST VANILLA, we will describe the settings for Oxide and teach you how to secure your server.

Initial setup

This will probably be the longest part of the guide, but will help you in terms of setting up server security. Basically, this manual is aimed at people who are not familiar with the concepts of server security and Debian in general.

  • Connect to the server using an SSH client (we recommend using PuTTY).
  • Go to the Password Generator website and generate a random password 50+ long and copy it. Then type "passwd root" into the console, right-click twice in the terminal.
  • Now that you have a secure password set, you can upgrade the system: type “apt-get update -y && apt-get upgrade -y” in the terminal, press Enter, then “apt-get install fail2ban nano -y” and Enter again.
  • Now download the PuTTYgen program and generate a key. Now enter the following commands one after the other by pressing Enter to enter a new line in PuTTY:

Mkdir ~/.ssh
chmod 0700 ~/.ssh
touch ~/.ssh/authorized_keys
chmod 0644 ~/.ssh/authorized_keys
nano ~/.ssh/authorized_keys

Now go back to PuTTYgen, then right click inside the window with more characters and click select all then copy. Now go back to PuTTY where you opened the nano editor and right click to paste your public key then press ctrl + o -> enter -> ctrl + x.

Now type "nano /etc/ssh/sshd_config" then ctrl+w then type "PasswordAuth". Now remove the hash and change yes at the end to no. Now scroll down the page and change UsePAM to no. Now ctrl + w and type PermitRootLogin and just change it to "without-password". Now press ctrl+p (save) and ctrl+x (quit) and then type "service ssh reload".

We return back to PuTTYgen: we need to save the public and private keys in a safe place. Close PuTTY and open it again, on the left side select Connect -> SSH -> Authorization, and specify the file with the private key that you just saved. After returning to the session, click "Default Settings", then "Save", then "Open" to log in without a password.

SteamCMD

Valve has its own documentation for configuring SteamCMD which you can find here. After you go to the app_update section, enter "app_update 258550". This is just the RUST server ID.

VANILLA

After you have completed all the steps with SteamCMD, you can proceed to setting up VANILLA. Do "cd SteamCMD Directory" and then write nano startrust.sh and paste this: "258550".

#!/bin/sh
clear while: do
exec ./RustDedicated -batchmode -nographics \
-server.ipIPAddressHere \
-server.port 28015 \
-rcon.ip IPAddressHere \
-rcon.port 28016 \
-rcon.password "rcon password here" \
-server.maxplayers 75\
-server.hostname "Server Name" \
-server.identity "my_server_identity" \
-server.level "Procedural Map" \
-server.seed 12345 \
-server.worldsize 3000 \
-server.saveinterval 300 \-server.globalchat true \
-server.description "Description Here" \
-server.headerimage "512x256px JPG/PNG headerimage link here" \
-server.url "WebsiteHere"
echo "\nRestarting server...\n" done

You will need to fill in your own values ​​such as seed (you can use the map preview generator for this), etc. Now do "chmod u + x startrust.sh" then "./startrust.sh" and your server will start up. If there are no problems during the start, then you can connect to the server via RCON. In the game you will be able to connect to the server by pressing F1, selecting the console and typing the following: "connect IPServerAddress:28015". We will describe how to set up your administrator status in the game in the following guides.

oxide

This Rust server add-on is very popular. Here we describe the process of setting it up. First of all you need to do "wget ​​https://github.com/OxideMod/Snapshots/raw/master/Oxide-Rust_Linux.zip". Then, if you haven't already installed unzip "apt-get install unzip -y", after "unzip Oxide-Rust_Linux.zip". This must be done in the directory of the RUST server that you installed via SteamCMD (you need to agree with everything that will be offered). Then you need to set up permissions for the compiler to run: “chmod u + x CSharpCompiler” so that it can compile plugins for the RUST server with the cs extension (remember the Kits plugin). Congratulations on creating a fully working RUST Oxide server. In the following guides, we will cover aspects such as "Permissions" and the current problems of RUST servers.

Update

It's very simple. You need to repeat the steps you did when you installed RUST via SteamCMD. If you are using Oxide, you will need to redownload it after updating. Use the link above, then unzip it. You may need to change permissions for CSharpCompiler again.

Firewall (for advanced users)

For additional security of the RUST server, you can configure a firewall. Attention: Making changes to the server settings on a Debian system may result in complete inoperability, limited or no access to the server.

Write "nano iptables.sh" then copy the following:

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 28016 -j ACCEPT
iptables -A INPUT -p udp --dport 28015 -j ACCEPT
iptables -I INPUT 1 -i lo -j ACCEPT
iptables -P INPUT ACCEPT
iptables -A INPUT -j DROP
apt-get install iptables-persistent -y
invoke-rc.d iptables-persistent save

Then type "chmod u+ux iptables.sh" then type "./iptables.sh". It will run a bunch of commands that will eventually just open the standard ssh port (22) and then the two standard ports for the RUST server.