Comments (3)
When cloudflared is installed as a windows service, it wants to read the YAML file from this hardcoded location...
When running as a service, Argo Tunnel expects its configuration at
C:\Windows\system32\config\systemprofile\.cloudflared\config.yml
(assuming Windows is installed toC:
). You can copy your local configuration from%UserProfile%\.cloudflared\config.yml
.
Taken from https://developers.cloudflare.com/argo-tunnel/reference/service/
from cloudflared.
I can also confirm that I have the issue described. Some attributes in my YAML file are being read, others are being ignored, despite following documented syntax.
For example, My config.yml file at C:\Windows\system32\config\systemprofile.cloudflared\ is being read. The upstream servers are being read and applied, but my local binding IP and port are not.
My config.yml
address: 127.0.0.2
port: 5353
proxy-dns: true
proxy-dns-upstream:
- https://1.1.1.1/dns-query
- https://1.0.0.1/dns-query
- https://2606:4700:4700::1111/dns-query
- https://2606:4700:4700::1001/dns-query
Here's what I'm running and seeing:
C:\Windows\System32\config\systemprofile\.cloudflared>cloudflared.exe --config config.yml
INFO[0000] Build info: {GoOS:windows GoVersion:go1.9.3 GoArch:amd64}
INFO[0000] Version 2018.11.0
INFO[0000] Flags map[config:config.yml proxy-dns:true]
INFO[0000] Adding DNS upstream url="https://1.1.1.1/dns-query"
INFO[0000] Adding DNS upstream url="https://1.0.0.1/dns-query"
INFO[0000] Adding DNS upstream url="https://2606:4700:4700::1111/dns-query"
INFO[0000] Adding DNS upstream url="https://2606:4700:4700::1001/dns-query"
INFO[0000] Starting DNS over HTTPS proxy server addr="dns://localhost:53"
ERROINFO[0000] Cannot start the DNS over HTTPS proxy server [error0000] cloudflared will not auto="failed to create a UDP listener: listen udp 127.0.maticallyupdate on Windows systems.0.1:53: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."
INFO[0000] Starting metrics server addr="127.0.0.1:55487"
ERRO[0000] Quitting due to error error="Cannot start the DNS over HTTPS proxy server: failed to create a UDP listener: listen udp 127.0.0.1:53: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."
INFO[0000] Metrics server stopped
You can see that it did not use the IP or port numbers in my config.yml. It is trying to use 127.0.0.1 and port 53, despite my explicit configuration of 127.0.0.2, and 5353.
A similar but unrelated bug... this is CloudFlare staff acknowledging that the --config parameter was not being obeyed. https://community.cloudflare.com/t/windows-service-multiple-tunnels/21611/4
from cloudflared.
Just to make it easier for people who end up here, the solution is to either create your own custom copy of the service or use the corresponding command-line parameters (from --help if you only need proxy-dns) and append them to the registry value of ImagePath
at the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cloudflared
i.e.
%FULL_PATH%\cloudflared.exe proxy-dns --address IP.IP.IP.IP --port PORT
Where %FULL_PATH%
is the full path to the cloudflared.exe executable, and IP.IP.IP.IP and PORT are for the IP and port respectively.
from cloudflared.
Related Issues (20)
- After working for a year today I got this error Unable to reach the origin service.🐛 HOT 6
- 🐛failed to dial to edge with quic: INTERNAL_ERROR (local): tls: CurvePreferences includes unsupported curve" HOT 3
- Connection terminated error="failed to accept QUIC stream: timeout: no recent network activity" connIndex=0🐛 HOT 1
- 🐛Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=0 event=0 ip=198.41.200.23 HOT 1
- Specify DNS resolver host:port when running tunnel HOT 1
- 🐛 Fails to download from package repository HOT 1
- Getting an error of zsh: no such file or directory when SSHing using cloudflared 🐛 HOT 3
- 🐛WSL ubuntu env: cloudflared.service can't starting
- command not work
- 💡 Create release for Ubuntu 24.04 noble HOT 2
- 🐛 systemd timer is only started for the current boot
- 💡Use `TUNNEL_TOKEN` for systemd service so that TOKEN is not visible on `ps`
- 💡Ability to authenticate multiple accounts
- Add new tab to add a whitelist
- :bug: Firewalled/proxy environment difficulties HOT 1
- 💡add github container repository support
- 💡Proxy http requests adding the cloudlfare access token
- 💡Support ingress rule matching for bastion mode
- 💡Add X-Forwarded-Proto header when incoming HTTPS request is forwarded to an HTTP service HOT 2
- Blank SSH🐛
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudflared.