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 read Adalie's blog post.
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

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. settingcloudflared-route=example2.domain.netwill make modflared connect to the tunnel onexample2.domain.netinstead ofexample.domain.net)
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 1mo ago | 1 | ||||
| 1mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
|
B
1.0.0
|
last yr. | 1 |
Changelog:
- [c1314f78](https://github.com/HttpRafa/modflared/commit/c1314f784bd4f97ad485e2160ee4b53eda6a9ebd) feat: Update to 26.3 - HttpRafa
Changelog:
- [9a47a00e](https://github.com/HttpRafa/modflared/commit/9a47a00e1c942e6eaadcb9a70249627dc02709e6) feat: Update to 26.3 - HttpRafa
Changelog:
- [26e34942](https://github.com/HttpRafa/modflared/commit/26e3494228f7d15ed4f290e42a9953485e0eb211) fix: Use jar task instead of remapJar - HttpRafa
- [0bd28b50](https://github.com/HttpRafa/modflared/commit/0bd28b50e676aab3b4aea81793dd991d2625e958) Merge branch 'fabric/26.1' into fabric/26.2 - HttpRafa
Changelog:
- [3080ddb3](https://github.com/HttpRafa/modflared/commit/3080ddb3ba2c09f732eaf4306fcd1d1787453ec0) feat: Switch to more modern curseforge uploader - HttpRafa
- [06f904c5](https://github.com/HttpRafa/modflared/commit/06f904c5bda88de9caeb06982cdbe70485f3857f) fix: Merge conflicts - HttpRafa
- [68cfc740](https://github.com/HttpRafa/modflared/commit/68cfc7403e9764330f6ec883b285f1ad883584e0) fix: Ups - HttpRafa
- [a73a749c](https://github.com/HttpRafa/modflared/commit/a73a749c3ddc1dcf4c96098f5b7bd4617c96be8a) fix: Merge conflicts - HttpRafa
Changelog:
- [6ba4ced3](https://github.com/HttpRafa/modflared/commit/6ba4ced309f17a4863098ecabbfb74138f567565) chore: Allow 26.1.x in version range (#98) - makaseloli
Changelog:
- [882b92f6](https://github.com/HttpRafa/modflared/commit/882b92f6a8e42bfa8163149c7f36b0e807a0b8af) Fix typo in authors list in gradle.properties - Rafael
Changelog:
- [ea3fad63](https://github.com/HttpRafa/modflared/commit/ea3fad63e884ec22b91e0b399df3cbe3463971b7) fix: Broken workflow - HttpRafa
Changelog:
- [186791ef](https://github.com/HttpRafa/modflared/commit/186791ef831cd52f073a8d94a8d3f725b254d45f) fix: Broken workflow - HttpRafa
Changelog:
- [32a706f0](https://github.com/HttpRafa/modflared/commit/32a706f0cacd60fdeef0ecfb1c620bb323767bf3) Fix entry point name in fabric.mod.json - Rafael
Changelog:
- [d6337bdc](https://github.com/HttpRafa/modflared/commit/d6337bdc73fec94085ba00b2ef791ff6eb383f45) fix: Naming of uploaded file - HttpRafa
Changelog:
- [1499a5d5](https://github.com/HttpRafa/modflared/commit/1499a5d5c12c4173bc3d4608965913edb9f6f449) Change blog post reference in README (#84) - Adalie Ahuja
- [56e5e262](https://github.com/HttpRafa/modflared/commit/56e5e262b1d7ab7651e9a119d25eacb4c81196ba) feat: Update gradle wrapper - HttpRafa
- [d567b4c5](https://github.com/HttpRafa/modflared/commit/d567b4c5541cfbaae74a6e7cc344b1033a504aa9) Revert "Fixed hash logic on macOS (#82)" (#87) - Rafael
- [5650bfd3](https://github.com/HttpRafa/modflared/commit/5650bfd34d0ac05ad56d0dfecbb87b9c6f9ae3d3) fix: Merge conflicts - HttpRafa
- [82601418](https://github.com/HttpRafa/modflared/commit/8260141853272a585e58834f8f675108e3fbf773) Merge branch 'multi/1.21.8' into multi/1.21.9 - HttpRafa
Changelog:
- [1499a5d5](https://github.com/HttpRafa/modflared/commit/1499a5d5c12c4173bc3d4608965913edb9f6f449) Change blog post reference in README (#84) - Adalie Ahuja
- [56e5e262](https://github.com/HttpRafa/modflared/commit/56e5e262b1d7ab7651e9a119d25eacb4c81196ba) feat: Update gradle wrapper - HttpRafa
- [d567b4c5](https://github.com/HttpRafa/modflared/commit/d567b4c5541cfbaae74a6e7cc344b1033a504aa9) Revert "Fixed hash logic on macOS (#82)" (#87) - Rafael
- [5650bfd3](https://github.com/HttpRafa/modflared/commit/5650bfd34d0ac05ad56d0dfecbb87b9c6f9ae3d3) fix: Merge conflicts - HttpRafa
- [82601418](https://github.com/HttpRafa/modflared/commit/8260141853272a585e58834f8f675108e3fbf773) Merge branch 'multi/1.21.8' into multi/1.21.9 - HttpRafa
Changelog:
- [1499a5d5](https://github.com/HttpRafa/modflared/commit/1499a5d5c12c4173bc3d4608965913edb9f6f449) Change blog post reference in README (#84) - Adalie Ahuja
- [56e5e262](https://github.com/HttpRafa/modflared/commit/56e5e262b1d7ab7651e9a119d25eacb4c81196ba) feat: Update gradle wrapper - HttpRafa
- [d567b4c5](https://github.com/HttpRafa/modflared/commit/d567b4c5541cfbaae74a6e7cc344b1033a504aa9) Revert "Fixed hash logic on macOS (#82)" (#87) - Rafael
- [5650bfd3](https://github.com/HttpRafa/modflared/commit/5650bfd34d0ac05ad56d0dfecbb87b9c6f9ae3d3) fix: Merge conflicts - HttpRafa
Changelog:
- [1499a5d5](https://github.com/HttpRafa/modflared/commit/1499a5d5c12c4173bc3d4608965913edb9f6f449) Change blog post reference in README (#84) - Adalie Ahuja
- [56e5e262](https://github.com/HttpRafa/modflared/commit/56e5e262b1d7ab7651e9a119d25eacb4c81196ba) feat: Update gradle wrapper - HttpRafa
- [d567b4c5](https://github.com/HttpRafa/modflared/commit/d567b4c5541cfbaae74a6e7cc344b1033a504aa9) Revert "Fixed hash logic on macOS (#82)" (#87) - Rafael
- [5650bfd3](https://github.com/HttpRafa/modflared/commit/5650bfd34d0ac05ad56d0dfecbb87b9c6f9ae3d3) fix: Merge conflicts - HttpRafa
Changelog:
- [d567b4c5](https://github.com/HttpRafa/modflared/commit/d567b4c5541cfbaae74a6e7cc344b1033a504aa9) Revert "Fixed hash logic on macOS (#82)" (#87) - Rafael
Changelog:
- [d567b4c5](https://github.com/HttpRafa/modflared/commit/d567b4c5541cfbaae74a6e7cc344b1033a504aa9) Revert "Fixed hash logic on macOS (#82)" (#87) - Rafael
Changelog:
- [b2b271c7](https://github.com/HttpRafa/modflared/commit/b2b271c769d0e0cc5603e39c4fd19193e060ab96) feat: 1.21.9 - HttpRafa
Changelog:
- [b2b271c7](https://github.com/HttpRafa/modflared/commit/b2b271c769d0e0cc5603e39c4fd19193e060ab96) feat: 1.21.9 - HttpRafa
Changelog:
- [e144b375](https://github.com/HttpRafa/modflared/commit/e144b375491d264437473ca561585255acf13c8f) fix: Trigger workflow - HttpRafa
Changelog:
- [e144b375](https://github.com/HttpRafa/modflared/commit/e144b375491d264437473ca561585255acf13c8f) fix: Trigger workflow - HttpRafa
Changelog:
- [398669f8](https://github.com/HttpRafa/modflared/commit/398669f8042d76588455e8ad034bf0ca40201421) feat: 1.21.7 - HttpRafa
Changelog:
- [398669f8](https://github.com/HttpRafa/modflared/commit/398669f8042d76588455e8ad034bf0ca40201421) feat: 1.21.7 - HttpRafa
Changelog:
- [3eb0e702](https://github.com/HttpRafa/modflared/commit/3eb0e702cd18724cde053fc00e1d8cc1d0ae2092) fix: Create the folder on init - HttpRafa
Changelog:
- [3eb0e702](https://github.com/HttpRafa/modflared/commit/3eb0e702cd18724cde053fc00e1d8cc1d0ae2092) fix: Create the folder on init - HttpRafa
Changelog:
- [30f445d2](https://github.com/HttpRafa/modflared/commit/30f445d24e002e3766fd0b86858ba3eba87b6cb3) fix: Update workflow - HttpRafa
Changelog:
- [30f445d2](https://github.com/HttpRafa/modflared/commit/30f445d24e002e3766fd0b86858ba3eba87b6cb3) fix: Update workflow - HttpRafa
Changelog:
- [c12a36c9](https://github.com/HttpRafa/modflared/commit/c12a36c9ac99d29c5262121df5709803288727dc) Change macOS ARM to correct cloudflared binary (#74) - Aiden Kimmerling
- [52867fa8](https://github.com/HttpRafa/modflared/commit/52867fa809608a94fcb9445da17c01d2199a7421) Merge remote-tracking branch 'origin/multi/1.21.5' into multi/1.21.7 - HttpRafa
Changelog:
- [c12a36c9](https://github.com/HttpRafa/modflared/commit/c12a36c9ac99d29c5262121df5709803288727dc) Change macOS ARM to correct cloudflared binary (#74) - Aiden Kimmerling
- [52867fa8](https://github.com/HttpRafa/modflared/commit/52867fa809608a94fcb9445da17c01d2199a7421) Merge remote-tracking branch 'origin/multi/1.21.5' into multi/1.21.7 - HttpRafa
Changelog:
- [c12a36c9](https://github.com/HttpRafa/modflared/commit/c12a36c9ac99d29c5262121df5709803288727dc) Change macOS ARM to correct cloudflared binary (#74) - Aiden Kimmerling
Changelog:
- [c12a36c9](https://github.com/HttpRafa/modflared/commit/c12a36c9ac99d29c5262121df5709803288727dc) Change macOS ARM to correct cloudflared binary (#74) - Aiden Kimmerling