Перейти к содержимому
Mineforgian

Modflared

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

40K загрузок99 подписчиковMITfabricforgeneoforge

Обновлён 2 июня 2026 г. · опубликован 1 ноября 2022 г.

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

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)

Центр версий

96 версий
  • Релиз65 КБ
  • Релиз65 КБ
  • Релиз66 КБ
  • Релиз65 КБ
  • Релиз66 КБ
  • Релиз65 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ
  • Релиз72 КБ

Ченджлог

1.7.0+release.152+26.1Релиз26.1, 26.1.1, 26.1.2 · 2 июня 2026 г.

This version is uploaded automatically by GitHub Actions.

Changelog:

  • 6ba4ced3 chore: Allow 26.1.x in version range (#98) - makaseloli
1.6.0+release.140+1.21.11Релиз1.21.11 · 30 апреля 2026 г.

This version is uploaded automatically by GitHub Actions.

Changelog:

  • 882b92f6 Fix typo in authors list in gradle.properties - Rafael
1.7.0+release.136+26.1Релиз26.1, 26.1.1, 26.1.2 · 25 марта 2026 г.

This version is uploaded automatically by GitHub Actions.

Changelog:

  • ea3fad63 fix: Broken workflow - HttpRafa
1.7.0+release.135+26.1Релиз26.1, 26.1.1, 26.1.2 · 25 марта 2026 г.

This version is uploaded automatically by GitHub Actions.

Changelog:

  • 186791ef fix: Broken workflow - HttpRafa
1.6.0+release.129+1.21.11Релиз1.21.11 · 13 декабря 2025 г.

This version is uploaded automatically by GitHub Actions.

Changelog:

  • 32a706f0 Fix entry point name in fabric.mod.json - Rafael
1.6.0+release.127+1.21.11Релиз1.21.11 · 13 декабря 2025 г.

This version is uploaded automatically by GitHub Actions.

Changelog:

  • d6337bdc fix: Naming of uploaded file - HttpRafa
1.5.2+release.119+1.21.9Релиз1.21.9, 1.21.10 · 9 ноября 2025 г.

This version is uploaded automatically by GitHub Actions.

Changelog:

  • 1499a5d5 Change blog post reference in README (#84) - Adalie Ahuja
  • 56e5e262 feat: Update gradle wrapper - HttpRafa
  • d567b4c5 Revert "Fixed hash logic on macOS (#82)" (#87) - Rafael
  • 5650bfd3 fix: Merge conflicts - HttpRafa
  • 82601418 Merge branch 'multi/1.21.8' into multi/1.21.9 - HttpRafa
1.5.2+release.119+1.21.9Релиз1.21.9, 1.21.10 · 9 ноября 2025 г.

This version is uploaded automatically by GitHub Actions.

Changelog:

  • 1499a5d5 Change blog post reference in README (#84) - Adalie Ahuja
  • 56e5e262 feat: Update gradle wrapper - HttpRafa
  • d567b4c5 Revert "Fixed hash logic on macOS (#82)" (#87) - Rafael
  • 5650bfd3 fix: Merge conflicts - HttpRafa
  • 82601418 Merge branch 'multi/1.21.8' into multi/1.21.9 - HttpRafa

Комментарии

Загружаем…