His_Amor - tunnel issues

This may be due to the fact that we specified the connection port in dinmap not 80, but 8123?
56 Replies
Erisa
Erisa3y ago
the error you got was very strange and might be intermittent, what happens if you restart the service now? also try getting the very latest logs by adding -f to the sudo journalctl command
I_ectb_Grut
I_ectb_GrutOP3y ago
Sorry for the long answer, I just live in Ukraine, you know what's going on here) Now I will try what you wrote.
Erisa
Erisa3y ago
no worries, your safety and wellbeing is more important than any of this :)
I_ectb_Grut
I_ectb_GrutOP3y ago
Thanks)
I_ectb_Grut
I_ectb_GrutOP3y ago
Pastebin
root@Ubuntu-2004-focal-64-minimal ~ # sudo journalctl -f -u cloudf...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Erisa
Erisa3y ago
Ah okay, so its trying to hit the origin http://127.0.0.1:8000 and failing - what does your config file look like?
I_ectb_Grut
I_ectb_GrutOP3y ago
No description
Erisa
Erisa3y ago
What is the purpose of the url: http://localhost:8000 at the top? The existence of url is making it ignore the ingress rules entirely You should remove that line And then add a default service to your ingress rules
I_ectb_Grut
I_ectb_GrutOP3y ago
I don’t know), I copied the config.yml example from your documentation, I thought that everything was as it should be, you didn’t indicate that you need to change something, I just inserted the rules
Erisa
Erisa3y ago
Erisa's Corner of the Internet
Exposing a web service with Cloudflare Tunnel
What if you could host a web service with no ports exposed? With Cloudflare Tunnel, you can!
I_ectb_Grut
I_ectb_GrutOP3y ago
how to add it?
Erisa
Erisa3y ago
Because I don't mention url: anywhere there
I_ectb_Grut
I_ectb_GrutOP3y ago
No description
Erisa
Erisa3y ago
Ah that's not my documentation, that's Cloudflare's documentation! And it's wrong and confusing and I don't like it!
I_ectb_Grut
I_ectb_GrutOP3y ago
It happens)
Erisa
Erisa3y ago
by the way did you mean to put https on the localhost because that's not going to work as-is
I_ectb_Grut
I_ectb_GrutOP3y ago
Do we need to specify the dedicated server host?
Erisa
Erisa3y ago
No. I just mean that https against localhost won't work like that, if its http and not https you need to change it as such
I_ectb_Grut
I_ectb_GrutOP3y ago
Good
Erisa
Erisa3y ago
Try this: - Remove the top line that has url: - Change your ingress to
ingress:
- hostname: erd.mine-way.ru
service: http://localhost:8125
- hostname: orf.mine-way.ru
service: http://localhost:8124
- hostname: dio.mine-way.ru
service: http://localhost:8123
- service: http_status:404
ingress:
- hostname: erd.mine-way.ru
service: http://localhost:8125
- hostname: orf.mine-way.ru
service: http://localhost:8124
- hostname: dio.mine-way.ru
service: http://localhost:8123
- service: http_status:404
I_ectb_Grut
I_ectb_GrutOP3y ago
No(
I_ectb_Grut
I_ectb_GrutOP3y ago
No description
Erisa
Erisa3y ago
What's in the logs?
I_ectb_Grut
I_ectb_GrutOP3y ago
Pastebin
-- Logs begin at Thu 2022-02-24 21:31:20 CET. --Feb 25 19:37:36 Ubu...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Erisa
Erisa3y ago
It's still trying to access the url: http://127.0.0.1:8000 - are you sure you removed that?
I_ectb_Grut
I_ectb_GrutOP3y ago
No description
Erisa
Erisa3y ago
What folder is the config.yml in?
I_ectb_Grut
I_ectb_GrutOP3y ago
I saw a typo localhosst)
Erisa
Erisa3y ago
Ha yeah sorry I make typos a lot That shouldnt be related to this error though
I_ectb_Grut
I_ectb_GrutOP3y ago
worth a try)
Erisa
Erisa3y ago
Usually the service will load its config from /etc/cloudflared/config.yml - does that file exist as well? Also I'm going to delete that screenshot because it shows your servers IP address :)
I_ectb_Grut
I_ectb_GrutOP3y ago
how do i restart services without writing reboot?
Erisa
Erisa3y ago
sudo systemctl restart cloudflared
I_ectb_Grut
I_ectb_GrutOP3y ago
Yes, please remove it yes, he is there too
I_ectb_Grut
I_ectb_GrutOP3y ago
No description
Erisa
Erisa3y ago
Okay, you should be editing that file instead then
I_ectb_Grut
I_ectb_GrutOP3y ago
But there are no such settings. Ok
Erisa
Erisa3y ago
Copy the contents of your /root/.cloudflared/config.yml to /etc/cloudflared/config.yml And remember to always edit the /etc one in future
I_ectb_Grut
I_ectb_GrutOP3y ago
Pastebin
-- Logs begin at Thu 2022-02-24 21:31:20 CET. --Feb 25 19:52:34 Ubu...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Erisa
Erisa3y ago
Okay now it's failing trying to contact your actual service you're running that you configured :) Make sure the services you configured are running and exist
I_ectb_Grut
I_ectb_GrutOP3y ago
No description
Erisa
Erisa3y ago
Yes!
I_ectb_Grut
I_ectb_GrutOP3y ago
No description
Erisa
Erisa3y ago
You configured something that was running on port 8123 on your server It's failing to connect to that port This isn't a cloudflared issue
I_ectb_Grut
I_ectb_GrutOP3y ago
Ok, I'll try to figure it out myself, thanks for the help. It worked, thank you very much)
I_ectb_Grut
I_ectb_GrutOP3y ago
No description
Erisa
Erisa3y ago
yay!
I_ectb_Grut
I_ectb_GrutOP3y ago
But, why didn't the ip address change to cloudflare's ip address so that our site would not be ddosed?
Erisa
Erisa3y ago
You're checking the IP for the main website, not any of the subdomains you just configured
I_ectb_Grut
I_ectb_GrutOP3y ago
I also connected the website)
Erisa
Erisa3y ago
It shows as Cloudflare IP to me, the website you are checking from is probably showing an old cached value
I_ectb_Grut
I_ectb_GrutOP3y ago
Oh good)
Erisa
Erisa3y ago
You probably shouldn't show so many screenshots of your IP addresses by the way :)
I_ectb_Grut
I_ectb_GrutOP3y ago
)
Erisa
Erisa3y ago
You should be okay from what I can see All your sites look like they are protected
I_ectb_Grut
I_ectb_GrutOP3y ago
Fine! Do you want to tell you the story of how our server became on the verge of bankruptcy? It has 475 players at its peak
Want results from more Discord servers?
Add your server