Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Modflared

Modflared

Automatically connects you to a Cloudflare tunnel without having to install cloudflared separately.

14.8k
58
Utility

Compatibility

Minecraft: Java Edition

1.21.x
1.20.6
1.20.4
1.20.1–1.20.2
1.19.2
1.18.2
1.16.5

Platforms

Fabric
Forge
NeoForge

Supported environments

Client-side

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source

Creators

HttpRafa
HttpRafa Owner

Details

Licensed MIT
Published 2 years ago
Updated 2 months ago
DescriptionChangelogVersions

Modflared

Automatically connects you to a Cloudflare tunnel without having to install cloudflared separately.

This mod has not yet been fully tested!

How to use

To be able to use the mod you have to be on the operating system Windows, Linux, or MacOS.

Other resources

For more detailed instructions, you can also read Varun A's blog post. The blog post can be found here.

Configuring Cloudflared

You need to set up cloudflare on your server for this to work. There's plenty of guides on how to do this elsewhere.
Make sure in your config file (possibly in /etc/cloudflared/config.yml) you have the lines:

- hostname: example.domain.net
  service: tcp://localhost:25565

Replace example.domain.net with the correct subdomain you want to use. If you're running multiple instances (eg. with docker), change the port 25565 to whatever port you're using.
Restart the cloudflare daemon (sudo systemctl restart cloudflared) to apply the changes. Add the correct DNS entry: go to Cloudflare dashboard, go to your website and DNS entries, then add a new CNAME DNS entry with your subdomain and set the target to <tunnelID>.cfargotunnel.com, with the tunnel ID found in the cloudflare config.yml file.

Example DNS Entries

Example CNAME Example TXT

For Players

If your server admin has properly configured their server you should be able to connect to the server as usual. No extra configuration is needed.

If your server admin has not properly configured their server, you will need to add their server to the forced_tunnels.json file in the modflared config folder.

Example configuration (modflared/forced_tunnels.json)

["example.domain.net", "example2.domain.net"]

Server Admins (Setting Up cloudflared)

Install Cloudflared as described in the “Configuring Cloudflared” part above.

Telling modflared to use connect to your server using cloudflared

For the hostname that you want your players to connect to (eg. example.domain.net), create a TXT dns record with either of the following values:

  • cloudflared-use-tunnel - This will make modflared connect to the tunnel on the hostname itself (eg. example.domain.net)
  • cloudflared-route=<route> - This will make modflared connect to the tunnel under the hostname of <route>. (ex. setting cloudflared-route=example2.domain.net will make modflared connect to the tunnel on example2.domain.net instead of example.domain.net)

Modrinth is open source.

main@bd61f5d

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.