Geyser

Information about using Geyser with TCPShield

Bedrock support is a strictly Premium Plan only feature. To update, please go to our plans page.

Setup

Panel Setup

First, create a separate backend set which points to your instance.

To avoid lengthy debugging process, make sure you can login to your IP:Port on the Minecraft Bedrock client first i.e., please don't come to us with a broken Geyser instance.

An example for a Geyser backend set

After you've created a backend set, you can head to the Bedrock section on our panel and create a Bedrock tunnel:

Creating Bedrock Tunnel

Select the backend set that you have created:

Select the appropriate backend set

Click 'Done,' and you will be able to create your Dedicated Bedrock CNAME. Here's what it does:

  • Since Minecraft: Bedrock edition does not support virtual hostname routing, we cannot offer a shared anycasted IP as we can with Java. To overcome this limitation, each IP must be provisioned statically per tunnel.

  • This IP address will efficiently redirect all traffic from Minecraft: Bedrock edition to the backend set you created above. Therefore, you don't need to attach a domain to this backend set on the TCPShield panel.

You can now proceed to the next step: DNS Setup.

Copy your Bedrock CNAME and use it for the next step

DNS Setup

The DNS setup is quite similar to the setup one normally goes through to setup TCPShield.

You need to point a new CNAME to the Bedrock CNAME target we've provided you.

An example how to setup the CNAME

Using the same domain to connect to both Geyser and Java Edition

If you want to use, for example, play.example.tld to connect to both your Java Edition and Bedrock server, we need some special configuration.

Setup a SRV record which points to your Java Edition server

In order to get the SRV record setup, you can follow the guide here.

Change the name of your Geyser CNAME

If you have already created the CNAME as described above, change its name to the subdomain you want your players to be able to connect to. If you haven't created the CNAME yet, you can follow the steps as outlined above with the difference to set your name to, in this example, play.

An example of a full setup

Proxy Protocol Setup

When using Geyser in combination with Java it's highly recommended that you switch to proxy protocol. Detailed instructions can be found here. After this is done, you should be able to connect to both your Java Edition and Bedrock server with play.example.tld!

Plugin Setup

If you decide to use the plugin instead of proxy protocol, it should be noted the plugin does authorize incoming Geyser connections directly. Please create a new file under plugins/TCPShield/ip-whitelist. In this example, we will call this name geyser.list.

Add these lines to the file:

10.0.0.0/8
172.16.0.0/12
192.168.0.0/16

After you have saved the newly-created file and restarted your server, the plugin has been setup.

Firewall Setup

If you are using proxy protocol or want to use improve the secure your backend: You should considered block all incoming connections using a firewall solution. For this example, iptables is used.

ipset -F tcpshield
ipset -X tcpshield
ipset -N tcpshield nethash

for IP in $(curl -q https://tcpshield.com/v4/); do
    ipset -A tcpshield $IP
done

iptables -t raw -F
iptables -t raw -A PREROUTING -m set --match-set tcpshield src -p udp --dport 19132 -j ACCEPT
iptables -t raw -A PREROUTING -p udp --dport 19132 -j DROP

Last updated

Was this helpful?