AntiDirectConnect
AntiDirectConnect v2.0
AntiDirectConnect prevents your BungeeCord network servers from being hacked into by offline-mode hackers.
NOTE: DO NOT INSTALL THIS ON A NON-BUNGEE SERVER AS NO-ONE WILL BE ABLE TO CONNECT
BungeeCord by md_5 is brilliant, but its only flaw is that each individual server connected to it needs to be in offline mode, allowing hackers to connect as any user using Minecraft's offline mode feature.
This plugin aims to prevent this, by preventing all incoming traffic that isn't from BungeeCord's connection from logging in.
The plugin is currently known to be working.
Installation
- Install this plugin on all Bukkit / Spigot servers on your network (NOT the BungeeCord proxy)
- Restart your server, and if you can't direct connect, then it's working, otherwise comment down below because something went wrong...
Configuration
In version 2.0, a config.yml was added to the plugin!
Default config.yml:
allowed: - 127.0.0.1
Add any IPs you want to allow (usually just the bungee server's IP) to the allowed section in the same form as the example above.
Permissions
There are no permissions, as an offline mode hacker could easily bypass the checks by logging in as op.
Commands
There are no commands, as there is no reason for there to be.
DISCLAIMER
If you are using Spigot, and you set:
bungee: true
in the spigot.yml, this plugin will not work.
Hello, my plan is to set up AuthMe on lobby, and disable online mode on every server, if I enable the option of people only getting from the proxy IP, I will not need this plugin?
@ChrisMintjes
I will add that functionality.
It would be great if we can edit the line that players see when they try to direct connect... So we can give them the IP they have to use for example ...
When I installed the plugin I directed dirrectly but nothing happens! Then I changed allowed in the config to my bungecord ip but now I can't connect to the bungeecord server
Where possible I encourage that you use iptables or another firewall to prevent access to the Minecraft port from any IP that isn't your BungeeCord server.
@hitech95
Added that in v2.0
This plugin see if the connection is from localhost. Can you add a config? Because the proxy may be in an other server.
Or you could just not port forward your server's internal IP...?