How to setup and secure a BungeeCord network

First, lets explain what a BungeeCord network is:

BungeeCord networks normally have at least 4 servers, you can add as many servers as you want:

  1. Proxy - This is the main connection point
  2. Hub - This is the server that players first connect to
  3. Server 1 - This would be the first server that players will be playing on - example would be: Survival Server
  4. Server 2 - This would be the second server that players will be playing on - example would be: Games Server

The reason you would want a BungeeCord over just adding extra worlds to a single server, is that Minecraft runs on a single thread, so adding worlds to a single server will force all worlds into a single thread, causing lag.  A BungeeCord network will spread this across multiple threads, causing the server to run much smoother, as well as giving the ability to stop and start servers at different times, making it so the network is playable during restarts.

Follow these steps to set up your BungeeCord network:

1. Set the proxy to: BungeeCord Latest

2. Save and Restart the server

3. In the BungeeCord config.yml, change ip_forward: false to ip_forward: true 

4. Add your servers to the BungeeCord config.yml

4-1. Find the section that loooks like this:

servers:
  lobby:
    motd: '&1Just another BungeeCord - Forced Host'
    address: localhost:25565
    restricted: false

4-2. Coppy from "lobby" to "restricted: false" and paste it directly below "restricted: false" for each server, be sure to keep the formatting.

Example:

  lobby:
    motd: '&1Just another BungeeCord - Forced Host'
    address: localhost:25565
    restricted: false
  lobby:
    motd: '&1Just another BungeeCord - Forced Host'
    address: localhost:25565
    restricted: false
  lobby:
    motd: '&1Just another BungeeCord - Forced Host'
    address: localhost:25565
    restricted: false

4-3. Change the address and name for each server.

Example:

  lobby:
    motd: '&1Just another BungeeCord - Forced Host'
    address: 123.123.123123:25565
    restricted: false
  creative:
    motd: '&1Just another BungeeCord - Forced Host'
    address: 123.123.123.124:25565
    restricted: false
  vanilla:
    motd: '&1Just another BungeeCord - Forced Host'
    address: 123.123.123.125:25565
    restricted: false

5. Restart your proxy

6. Set the rest of your servers to Spigot

7. Edit the following config file settings on all Spigot servers:

  • In the bukkit.yml, change connection-throttle: 4000 to connection-throttle: -1
  • In the server.properties, change online-mode=true to online-mode=false
  • In the spigot.yml, change bungeecord: false to bungeecord: true

8. Secure your Network by adding a plugin that disallows connection from anywhere except your proxy.

This plugin works by securing your network with a token sent from the proxy:

https://www.spigotmc.org/resources/bungeeguard.79601/

  • Install the plugin on both your proxy and each server connected through the proxy.
  • Download and install ProtocolLib on your servers: https://www.spigotmc.org/resources/protocollib.1997/
  • Restart the proxy and all servers to generate the config files.
  • Navigate to Server_BungeeCord/plugins/BungeeGuard/config.yml in the proxy and take note of the value of token.
  • Navigate to Server_Spigot/plugins/BungeeGuard/config.yml and add the token to the allowed-tokens list.
  • Restart all servers, or run bungeeguard reload from the console of all servers.
  • 32 Users Found This Useful
Was this answer helpful?

Related Articles

How do I use Dynmap with my server (VA Hosting LLC)

There are 2 settings that need to be changed in your dynmap configuration.txt, this file will be...

I need help with a plugin

Getting help with a pluginThe first step to getting help with a plugin is to check the plugins...

Should I back up my files/server

At VA Hosting LLC we do our best to protect your files/serverIt is always a good idea to back up...

Cannot connect to my server "authentication servers are down"

Cannot connect "authentication servers are down" This is normally cause by mojang being down or...

How do I update my vanilla server (VA Hosting LLC)

With VA Hosting LLC, it is easy to update your Vanilla server to the latest version. In this...

Powered by WHMCompleteSolution