Backends
Server and firewall configuration
A backend is your real Java Edition server, where MineGuard forwards filtered traffic. For Bedrock Edition, use Bedrock tunnels.
Adding a backend
Open the network and find the Servers section. To add a backend:
- Click + Set to create a Backend Set (server group) and give it a name
- Click Add and enter the IP address, port, and select the Backend Set group
IP: 185.100.50.25
Port: 25565MineGuard
Filtered
Backend Set
185.100.50.25
Primary
185.100.50.26
Fallback
Passing the player's real IP
By default, your server sees MineGuard's filter IP instead of the player's real IP. There are two ways to pass the real IP:
Proxy Protocol v2
The standard way to pass the real IP via a proxy protocol header. Enable it in the backend settings using the Proxy Protocol v2 toggle.
The downside is that you need to configure Proxy Protocol support on the Minecraft server side, which isn't always straightforward.
MineGuardRealIP plugin (recommended)
The easiest approach — install our MineGuardRealIP plugin. It passes the real IP without configuring Proxy Protocol and blocks direct connections that bypass the filter. Learn more in the MineGuardRealIP plugin article.
Hide your IP
Protection becomes pointless if an attacker knows your real IP. Make sure:
- Your IP isn't published anywhere (old DNS records, forums, Shodan)
- Your server has a firewall configured to only accept traffic from MineGuard
- You aren't using the same IP for a website or other public services
Server firewall setup
On your server you need to allow connections only from MineGuard's IP addresses. You can find our IPs in the control panel on the network page.
The current list of MineGuard IP addresses for whitelisting is available at:
https://mineguard.pro/api/filter-ipsA plain-text format is also available — one IP per line, convenient for bash scripts and direct firewall imports:
https://mineguard.pro/api/filter-ips/txtAdd each IP from the list to your allow rules. Example for iptables:
# For each IP in the list:
iptables -A INPUT -p tcp --dport 25565 -s <IP_FROM_LIST> -j ACCEPT
# Block all other connections on the server port
iptables -A INPUT -p tcp --dport 25565 -j DROPMultiple backends
If you have multiple servers (e.g. a lobby and game servers behind BungeeCord/Velocity), you can add multiple backends with weights for load balancing.