How to build a rust server for single player. Building a Rust mod server on your computer. Accessibility in the SteamCMD console

Introduction

NOTE: Before starting to create a server, make sure that 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 gives an endless loading screen (someone might say, everything works, it's just me being crooked. -Perhaps, but we did it 10 times and in total killed time, about two hours, but the loading screen didn't show the slightest sign of life). In this regard, it makes no sense to describe how to connect to the server to other people. (since there are other ways, I don't know.)

Server creation

We start by downloading from the official Steam website: SteamCMD (Steam console). After downloading SteamCMD, unzip it into the Steam folder. Next, go to the "Steam" folder and run this file (At this moment, the Steam itself must be turned off). Steam console comes off. After loading, we must log in - for this we write the command: "login anonymous" and press Enter.
After we logged in, we register this command in order to load the Rast files - " app_update 258550 -beta experimental"
It is logical that the game files will take a long time to load, depending on your internet speed.
I hasten to note that if you do not have an auto-update plugin, 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\u003e steamapps\u003e common and if you did everything right, then you should have a "rust_dedicated" folder.
Now we start Steam. It should update. (This is why it was so important that Steam was closed) In the meantime, Steam is updating, 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 we click on it with the right mouse button and select the "Change" item. Further in it we write the following:

  1. RustDedicated.exe -batchmode -load (this function will be responsible for saving 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 any).
  4. + rcon.port "28016" + rcon.password "11111" + server.seed "2200000" (server seed can be any).
We save. And so, if we did everything right, go to RUST. Open the Rast console and write: "client.connect"
That's all the server has been created, which means let's move on ...
P.S: throughout 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, then you will be immediately kicked from the server (or rather, the server will turn itself off). And after each exit from the server, it is advisable to write the command: "save", since RUST sometimes does not save data automatically.

Issuance of admin panel

Issuance of the Admin Panel After you have created a server, you probably want to be an administrator, because what is the point of creating a server if you are not the main server 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 be written there: which player joined and his ID.
If at the time when you gave yourself the admin panel, you were on your server, you will need to re-enter. 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 log into 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 (at least for me) here:
D: / Steam / steamapps / common / rust_dedicated / server / my_server_identity / cfg
2. Create a new test file.
And you write that very command. (ownerid X "Y")

So, the site has great things on the net. But it only takes a couple of lines to launch and configure 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 an archive containing all the necessary tools, and unpack to any location.

2. Now go to installation... Run the file Update-Rust-Server.bat from folder SteamCMD and wait while our server is downloading. The servers will boot 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, we perform the following steps:

Go to the folder SteamCMD and run the file Run-Rust-Server.bat (It was 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 is running.
- Now, in order to enter the server, we need to find out the address of our server. The classic option is
- We write our ip somewhere in a text file (so as not to forget).
- Next, start the game and press the F1 (console) key and enter the net.connect command there Your ip: 28015 (where your ip is your ip that you learned in advance). In theory, this should also be 127.0.0.1.

If done correctly, you will connect to your server. For friends to be able to connect to you, you need, of course, 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! Correct execution of all actions in some cases cannot guarantee your success. Since the reasons why you may not succeed are a great many. For solutions to the most common problems, see.

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

For this you need:
\u003e Log in to the server as an administrator. To do this, open the console in the game with the F1 key and enter the Rcon.login command 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 that you are logged in as admin. Now we enter the commands:
- To disable clothing wear: conditionloss.armorhealthmult "0.0"
- To disable wear on weapons / inventory: conditionloss.damagemultiplier "0.0"

Various mods can also be used to disable or enable different things. For example, disable decay on the server or adjust the flight interval of airplanes. The network already has both affordable and not very affordable mods. I recommend using the free mod Magma, due to its ease of customization and the large number of plugins.

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

Initial setup

This will probably be the longest part of the tutorial, but will help you in terms of configuring server security. Basically, this tutorial 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 create a 50+ random password and copy it. Then enter "passwd root" into the console, right click twice in the terminal.
  • Now that you have a secure password set, you can update the system: write in the terminal “apt-get update -y && apt-get upgrade -y”, press Enter, then “apt-get install fail2ban nano -y” and again Enter.
  • Now download the PuTTYgen program and generate a key. Now enter the following commands one after the other by pressing Enter to move to 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 box with more characters and click select all and 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 -\u003e enter -\u003e ctrl + x.

Now enter "nano / etc / ssh / sshd_config" then ctrl + w, then enter "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 (exit) and then type "service ssh reload".

Coming back to PuTTYgen, you need to store the public and private keys in a safe place. We close PuTTY and reopen it, on the left side, select Connection -\u003e SSH -\u003e 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. After you go to the app_update section, enter "app_update 258550". This is just the ID of the RUST server.

VANILLA

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

#! / bin / sh
clear while: do
exec ./RustDedicated -batchmode -nographics \\
-server.ip IPAddressHere \\
-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 "Website Here"
echo "\\ nRestarting server ... \\ n" done

You will need to fill in your own values \u200b\u200bsuch 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. If there are no problems during the start, then you can connect to the server via RCON. In game, you can connect to the server by pressing F1, selecting the console and typing the following: "connect Server IP: 28015". We will describe how to set up your administrator status in the game in the following guides.

Oxide

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

Update

It's very simple. You need to repeat the steps that you did when installing RUST via SteamCMD. If you are using Oxide, you will have to re-download it after the update. Use the link above, then unzip it. You may need to change the permissions for CSharpCompiler again.

Firewall (for advanced users)

For additional security of the RUST server, you can configure a firewall. Attention: Changes to the server settings on a Debian system can lead to complete inoperability, limited or complete lack of 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 enter "chmod u + ux iptables.sh", then enter "./iptables.sh". It will execute a bunch of commands that will eventually just open the standard ssh port (22) and then the two standard ports for the RUST server.

Many beginners and even experienced players one day are seriously wondering how to create a server in Rast? Before proceeding directly to its stage-by-stage creation, you should know exactly what you need it for and what are its personal differences from the already existing units. Since the server will be created by you, you will not be banned here - here you and only you will be in charge. However, it should be remembered that maintaining a server is not so simple.

For an illustrative example, consider the option of how to run the Rust server on a separate hosting, which can be constantly online for a number of players from 50 people. This will require simple, high-quality and reliable hosting. In view of the fact that currently the choice of hosting companies is more than impressive, we offer you 3 options that have proven themselves most efficiently. We are talking about such companies:

1. DeinServerHost.DE - very high quality and at the same time cheap hosting. True, sometimes malfunctions may occur, the elimination of which may take some time, since there is practically no support from the site administration as such.
2. PlayRust.EU is by far the most expensive and at the same time one of the best providers. Differs in reliability and the need for proficiency in English at a fairly high level.
3. HostingRust.RU is the official hosting in the Russian Federation. Differs in a satisfactory cost, responsive technical support, stable server operation. Various updates are regularly released, making the service as pleasant and convenient for users as possible.

After placing the order, go to the admin panel and set up the game server. After registering your account, you can see the main panel - server-600x331. There are also buttons to start, stop and restart the server, the amount of memory used, the selected communication channel, the current number of players. Next, we launch the Steam Update - Steam Update. In the Mod Manager tab, you can install the desired game mods. To configure additional touches, go to the Configuration Files tab, where we edit server.cfg, which contains the standard settings.

Further, when everything is ready, it remains only to launch the newly created server and test it in action. In order to check for operability, enter the server address into the net.connect console. After the first login, it will remain in the connection history. Next, log in as an admin. To do this, you need to register your RCON password in the console. Rcon.login xxxxxxx is specially prescribed for these purposes, where xxxxxxx means the password you invented. After such rather simple manipulations, your server is completely ready for work. Hopefully, thanks to this article, you now know exactly how to create a licensed Rust server.

Server creation video