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
Jean Paul Galtier Le Male EDT
:MeowHeartCloudflare:
Chaika
Chaika4mo ago
there's no more logs then that? journalctl -u cloudflared -f --lines=100
Jean Paul Galtier Le Male EDT
No sir, just this on fresh installed debian 12 on raspberry pi and tried to run tunnel. System is up to date
No description
Jean Paul Galtier Le Male EDT
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
Chaika4mo ago
look closer, they're all JWTs so the start bit is all the same
Jean Paul Galtier Le Male EDT
Oh youre right
Jean Paul Galtier Le Male EDT
But still stuck on this:
No description
Chaika
Chaika4mo ago
is local dns good? dig region1.v2.argotunnel.com you're not running in a weird environment like wsl linux right?
Jean Paul Galtier Le Male EDT
No, I am running it on a raspberry pi, but tried also on my laptop with normal AMD CPU - debian too
Chaika
Chaika4mo 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
Jean Paul Galtier Le Male EDT
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
Chaika4mo ago
like you're stuck at restart?
Jean Paul Galtier Le Male EDT
This is --loglevel debug in docker command
No description
Chaika
Chaika4mo ago
sounds like it's getting stuck on dns, should be equal to dig _v2-origintunneld._tcp.argotunnel.com srv
Jean Paul Galtier Le Male EDT
How to fix that? Is it problem on my side or on cloudflare side?
Chaika
Chaika4mo 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
Jean Paul Galtier Le Male EDT
Okay so should I change dns on my router?
Chaika
Chaika4mo ago
Or just on the pi itself, to 1.1.1.1
Jean Paul Galtier Le Male EDT
Oh okay good idea 1.1.1.1 is cloudflare right?
Chaika
Chaika4mo 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
Jean Paul Galtier Le Male EDT
I want to use cf
Chaika
Chaika4mo 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
Jean Paul Galtier Le Male EDT
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
Chaika4mo ago
weird that it dies on that without much output. I'm guessing 192.168.1.1 is your router's dns?
Chaika
Chaika4mo ago
because you have networkmanager or something? Should be able to override that there, and change dhcp dns at your router
Jean Paul Galtier Le Male EDT
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
Chaika4mo 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
Jean Paul Galtier Le Male EDT
Okay, thanks!
Want results from more Discord servers?
Add your server