Securing Velocity Proxy

As the titles say, any recommendations on having the best possible secure velocity proxy?
77 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by cobrawalker#0
Penguin Terminal
Following these steps (https://docs.papermc.io/velocity/security) is essential, then add a whitelist plugin and you are good to go. In all honestly, just make sure your backends are not reachable at all by outsiders and your 99% there.
Securing Your Servers | PaperMC Documentation
It is vital that you secure your backend servers. As part of setting up Velocity, you will put your
Penguin Terminal
Also if your running 1.13+ use modern forwarding.
Penguin Terminal
For whitelisting, check out LibertyBans (https://www.spigotmc.org/resources/libertybans.81063/)
SpigotMC - High Performance Minecraft
LibertyBans
Zaid
ZaidOP2y ago
No description
Zaid
ZaidOP2y ago
my velocity uses 25565 then other serves like lobby for example 25566
Penguin Terminal
Yeah, just configure in your firewall to only have 25565 open to the outside and the rest closed
Zaid
ZaidOP2y ago
if i try to connect to other servers directly
No description
Zaid
ZaidOP2y ago
this showing up would be correct right?
Penguin Terminal
Are you using velocity or bungeecord?
Zaid
ZaidOP2y ago
velocity
Penguin Terminal
Then why is there a bungeecord message?
Zaid
ZaidOP2y ago
thats if im just trying to directly join servers without going thru proxy but other than that looks like i did everything ok
Penguin Terminal
Right, but it says bungeecord config. Are you sure you are running velocity? Maybe send logs of the server using mclo.gs !logs
Carl-bot
Carl-bot2y ago
Please check your server log for errors from your plugins.
If you need further help understanding the errors, please send us the whole log file. Where can I find the server log? Logs are stored in <server_directory>/logs/. Search for a file explorer in your server's management interface and navigate to that directory. Once you've opened that up, search for the latest.log file. Some providers have a separate page for logs and may hide the "logs" folder. On Aternos: • Go to https://aternos.org/log/. On Minehut and server.pro: • Go to the "files" tab in the left menu. • Navigate to the root directory of your server. • From there navigate to /logs/latest.log. What should I do with the log? • First of all, read it! I mean, that's what you do all the time when you run a server, isn't it? Try to locate any errors that have anything to do with the issue you are facing. • If you got the latest.log file or created a .txt file with the necessary errors you can upload these directly to the channel, but we prefer if you upload them to https://mclo.gs/. • If you have trouble downloading the log file, copy/paste the text to a paste service (like mclogs). Copy the link that it gives you and send it to us. (Don't worry, McLogs hides your users' IPs.)
Admincraft Canned Responses
Penguin Terminal
Do you know how a firewall works? (Totally fine if you don't, no shame, will just explain it)
Zaid
ZaidOP2y ago
No description
Penguin Terminal
Oh ok good. What server software is the backend running?
Zaid
ZaidOP2y ago
paper
Zaid
ZaidOP2y ago
No description
Zaid
ZaidOP2y ago
No description
Zaid
ZaidOP2y ago
would it be because of this?
Penguin Terminal
Do you want to use modern forwarding? It is a second layer. If your server only supports Minecraft 1.13 and above, Velocity's modern forwarding can forward player information to your servers and provide a second layer of protection against someone trying to impersonate as your proxy.
Zaid
ZaidOP2y ago
this is how it used to be done with bungee but i completely stopped using it
Penguin Terminal
right, now days, paper has a velocity option, so you can turn off bungecord and enable velocity in the paper config
ProGamingDk
ProGamingDk2y ago
yes turn that off
Zaid
ZaidOP2y ago
ok its off now
Penguin Terminal
follow theese steps for modern forwarding
No description
Zaid
ZaidOP2y ago
No description
Zaid
ZaidOP2y ago
this is my first time seeing this a lot has changed since 2015...
Penguin Terminal
Legacy forwarding is fundamently insecure. Modern forwarding is much better, if you can't see the screenshot, check here https://docs.papermc.io/velocity/player-information-forwarding#configuring-legacy-bungeecord-compatible-forwarding
Configuring player information forwarding | PaperMC Documentation
Velocity supports forwarding information about your players to your servers, such as IP addresses,
Penguin Terminal
set the secret to the velocity secret on your server. do not share the secret, think of it as your proxy's password
Zaid
ZaidOP2y ago
I understand now looks like imma have to re-learn all of this
Zaid
ZaidOP2y ago
i set key, anything to do here?
No description
Penguin Terminal
Don't worry, now days its well documented and super easy. I will get you through it all, just listen to what I'm saying
Zaid
ZaidOP2y ago
ok im listening
Penguin Terminal
Turn online mode back on if you don't have cracked players. Copy what this config looks like on each server
Zaid
ZaidOP2y ago
i didn't turn it off it was like that
Penguin Terminal
Ok, turn it on if your players are legit (if they bought actual mc and aren't pirating the game) Once you have configured each server, you are going to want to add them as a backend in velocity. Tell me when you are ready
Zaid
ZaidOP2y ago
ohhh
Zaid
ZaidOP2y ago
No description
Zaid
ZaidOP2y ago
i see... that's nice got it
Penguin Terminal
Nice job! Are you ready for the next steps?
Zaid
ZaidOP2y ago
sure
Penguin Terminal
Ok, go to your velocity proxy and open the velocity.toml file
Zaid
ZaidOP2y ago
im there
Penguin Terminal
There you will find servers and just edit them to have the correct ports and names.
Zaid
ZaidOP2y ago
i saw
Penguin Terminal
Ok, do you have it all set?
Zaid
ZaidOP2y ago
mhm only what i need rn
Zaid
ZaidOP2y ago
No description
Penguin Terminal
I kinda forgot a step sorry, go to your backend servers (lobby, ect) and in server.properties set online-mode: false
Zaid
ZaidOP2y ago
that's done
Penguin Terminal
Ok, try to connect via velocity Does it work?
Zaid
ZaidOP2y ago
yeah it prevents me from directly joining other servers with their port so i guess it works
Penguin Terminal
Perfect, now just make the only port acessable from the outside be the velocity 25565 port and the rest not visible or reachable
Zaid
ZaidOP2y ago
done yep
Penguin Terminal
Nice, that should be pretty much done. Slap liberty bans plugin (https://www.spigotmc.org/resources/libertybans.81063/) and epic guard (https://modrinth.com/plugin/epicguard) and your there
SpigotMC - High Performance Minecraft
LibertyBans
Modrinth
EpicGuard - Minecraft Plugin
Bot protection system for Minecraft servers and proxies
Zaid
ZaidOP2y ago
is this for velocity or backend servers
Penguin Terminal
Velocity
Zaid
ZaidOP2y ago
already got that epicguard plugin
Penguin Terminal
Liberty bans is for whitelisting and banning throught the proxy (meaning proxy-wide whitelist and banning) Cool beans, just config each to your liking and you are set Also add a whitelist if its just you and your friends If you need anything else, just ping or dm me! If I answered your question, just run /close and your question will be automatically closed.
Zaid
ZaidOP2y ago
if libertybans is on velocity how do admins use ban cause it doesnt seem to exist on backend
Zaid
ZaidOP2y ago
No description
Zaid
ZaidOP2y ago
No description
Zaid
ZaidOP2y ago
i guess imma need a database? @Penguin Terminal
Penguin Terminal
No, since there is no operator on velocity, it can't tell who owns the server, thus who should have commands
Penguin Terminal
So what you need is a permissions plugin, like Luckperms (https://luckperms.net/)
LuckPerms - A permissions plugin for Minecraft servers.
LuckPerms
LuckPerms is a permissions plugin for Minecraft servers. It allows server admins to control what features players can use by creating groups and assigning permissions.
Zaid
ZaidOP2y ago
got that
Penguin Terminal
Make sure to install the velocity version
Zaid
ZaidOP2y ago
oh so remove it from backend servers and just keep it on velocity
Penguin Terminal
You can have both The velocity one just only manages the velocity one and the paper one only manages paper, but you can config them to sync Then just run /lpv editor and click on the link and add all permissions that are for liberty bans
Zaid
ZaidOP2y ago
how would i sync them
Penguin Terminal
LuckPerms - A permissions plugin for Minecraft servers.
LuckPerms
LuckPerms is a permissions plugin for Minecraft servers. It allows server admins to control what features players can use by creating groups and assigning permissions.
Penguin Terminal
They can't really sync as much as just handles the plugin checks So it should be setup fine out of the box, mb If you need anything else, just ping or dm me! If I answered your question, just run /close and your question will be automatically closed.
Zaid
ZaidOP2y ago
ok thanks !close
Admincraft Meta
post closed!
The post/thread has been closed!
Requested by cobrawalker#0

Did you find this page helpful?