Skip to content

Question/feature: setting a static local address for a tunnel #88

@daisseur

Description

@daisseur

Hey there ! I'm still trying to make modflared work with automodpack, I was wandering if I could set a static local tunnel address using a config like the one you're talking about in the README.md:

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 .cfargotunnel.com, with the tunnel ID found in the cloudflare config.yml file.

If we could have the same type of config json file in the client
modflared/ directory it would be so nice, for example I would set localhost:25568 to mc.mydomain.fr. And maybe autoModpack would work because the tunnel address would always be the same.

I have been testing with cloudflared access tcp, and it works perfectly fine with automodpack installed.

In this case the mod would act as a predefined cloudflared config.
(A bit of context: I'm looking a user-friendly way for people to play my modpack on my server so making modlfared work with automodpack would be so insane and helpful)



Note

AutoModpack github repo url:
https://github.com/Skidamek/AutoModpack

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions