Unable to setup tunnel

Hello so I am trying to setup tunnel on my raspberry pi. I already tried debian installation (there its stuck on INF Using systemd) and installation via docker, there it says: 2024-07-16T12:06:21Z INF Starting tunnel tunnelID=31214eda-82b5-4b5a-aa47-f6b2f218959e 2024-07-16T12:06:21Z INF Version 2024.6.1 2024-07-16T12:06:21Z INF GOOS: linux, GOVersion: go1.22.2-devel-cf, GoArch: arm64 2024-07-16T12:06:21Z INF Settings: map[no-autoupdate:true token:*] 2024-07-16T12:06:21Z INF Generated Connector ID: 072b75b2-73fa-4daa-a61f-5506451c1a57 2024-07-16T12:06:21Z INF Initial protocol quic 2024-07-16T12:06:21Z INF ICMP proxy will use 192.168.1.42 as source for IPv4 2024-07-16T12:06:21Z INF ICMP proxy will use fe80::afb7:f759:8c9b:f5a2 in zone wlan0 as source for IPv6 And the connector is not visible. I already tried everything, even tried to setup that via portainer. Can someone please help me?
33 Replies
.
.OP5mo ago
:MeowHeartCloudflare:
Chaika
Chaika5mo ago
there's no more logs then that? journalctl -u cloudflared -f --lines=100
.
.OP5mo ago
No sir, just this on fresh installed debian 12 on raspberry pi and tried to run tunnel. System is up to date
No description
.
.OP5mo ago
Also the token is not refreshing, I mean when I create one tunnel the token is the same even when I make another tunnel
Chaika
Chaika5mo ago
look closer, they're all JWTs so the start bit is all the same
.
.OP5mo ago
Oh youre right
.
.OP5mo ago
But still stuck on this:
No description
Chaika
Chaika5mo ago
is local dns good? dig region1.v2.argotunnel.com you're not running in a weird environment like wsl linux right?
.
.OP5mo ago
No, I am running it on a raspberry pi, but tried also on my laptop with normal AMD CPU - debian too
.
.OP5mo ago
No description
Chaika
Chaika5mo ago
looks sane, try increasing log level then you can modify the service file (sudo nano /etc/systemd/system/cloudflared.service), throw --loglevel debug before run for Execstart, ex: ExecStart=/usr/bin/cloudflared --loglevel debug --no-autoupdate tunnel run --token ey..<rest of token>, then restart sudo systemctl daemon-reload && sudo systemctl restart cloudflared && sudo journalctl -u cloudflared -f --lines=100
.
.OP5mo ago
Okay thanks, tried to do everything, but cloudflared dont want to restart it just endlessly waits. Ill try to do that level debug in docker maybe
Chaika
Chaika5mo ago
like you're stuck at restart?
.
.OP5mo ago
Yes
.
.OP5mo ago
This is --loglevel debug in docker command
No description
.
.OP5mo ago
No description
Chaika
Chaika5mo ago
sounds like it's getting stuck on dns, should be equal to dig _v2-origintunneld._tcp.argotunnel.com srv
.
.OP5mo ago
No description
No description
.
.OP5mo ago
How to fix that? Is it problem on my side or on cloudflare side?
Chaika
Chaika5mo ago
your dns seems weird. I don't see any other public dns providers like 1.1.1.1/8.8.8.8/9.9.9.9 attaching additionals like that, plus
No description
.
.OP5mo ago
Okay so should I change dns on my router?
Chaika
Chaika5mo ago
Or just on the pi itself, to 1.1.1.1
.
.OP5mo ago
Oh okay good idea 1.1.1.1 is cloudflare right?
Chaika
Chaika5mo ago
yea, you could do 8.8.8.8 for Google or 9.9.9.9 for Quad9 if you didn't want to use CF
.
.OP5mo ago
I want to use cf
Chaika
Chaika5mo ago
then CF is For IPv4: 1.1.1.1 and 1.0.0.1 For IPv6: 2606:4700:4700::1111,2606:4700:4700::1001 dns is set via /etc/resolv.conf, if it says something like "this is managed externally modify it here" follow what it says in there
.
.OP5mo ago
Thank you very much for your help sir. It finally works! Yeah I changed that in resolv.conf, the problem is that it is being rewrited back to the default - local one every reboot :/
Chaika
Chaika5mo ago
weird that it dies on that without much output. I'm guessing 192.168.1.1 is your router's dns?
.
.OP5mo ago
Yes
Chaika
Chaika5mo ago
because you have networkmanager or something? Should be able to override that there, and change dhcp dns at your router
.
.OP5mo ago
Yes, I have networkmanager. So maybe ill take a look inside my router dhcp and change dns server from 192.168.1.1 to 1.1.1.1
Chaika
Chaika5mo ago
ps. don't forget to undo the loglevel stuff in https://discord.com/channels/595317990191398933/1262771155995983903/1263129673999712389, just snipping the loglevel param and redoing daemon-reload/restart should do, otherwise you'll end up with a lot of logs
.
.OP5mo ago
Okay, thanks!
Want results from more Discord servers?
Add your server