cloudflare / cloudflare/cloudflared

Change address cloudflared listens on; no tcp port created on 5053

Open
#227 0 comments 0 reactions 0 assignees View on GitHub
Priority: Deferred
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Community discussion https://community.cloudflare.com/t/port-ip-listener-setup/54679/20?u=brian.orpin

When trying to change the address the cloudflared service listens on it seems there are 2 options;
* `--address` command line
* `proxy-dns-address` (yaml or config)

Neither creates a tcp or udp port. It does create a tcp6 and udp6 port which are not created when no address is specified.

```yaml
proxy-dns: true
proxy-dns-port: 5053
proxy-dns-address: 0.0.0.0
proxy-dns-upstream:
- https://1.1.1.1/dns-query
- https://1.0.0.1/dns-query
```

Before configuration
```
:~# netstat -nlput
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 383/master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 19814/lighttpd
tcp 0 0 127.0.0.1:5053 0.0.0.0:* LISTEN 21142/cloudflared
tcp 0 0 127.0.0.1:33699 0.0.0.0:* LISTEN 21142/cloudflared
tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 20989/pihole-FTL
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 19814/lighttpd
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 20989/pihole-FTL
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 182/sshd
tcp6 0 0 ::1:25 :::* LISTEN 383/master
tcp6 0 0 ::1:4711 :::* LISTEN 20989/pihole-FTL
tcp6 0 0 :::80 :::* LISTEN 19814/lighttpd
tcp6 0 0 :::53 :::* LISTEN 20989/pihole-FTL
tcp6 0 0 :::22 :::* LISTEN 182/sshd
udp 0 0 0.0.0.0:52305 0.0.0.0:* 77/avahi-daemon: ru
udp 0 0 0.0.0.0:53 0.0.0.0:* 20989/pihole-FTL
udp 0 0 0.0.0.0:68 0.0.0.0:* 283/dhcpcd
udp 0 0 127.0.0.1:5053 0.0.0.0:* 21142/cloudflared
udp 0 0 0.0.0.0:5353 0.0.0.0:* 77/avahi-daemon: ru
udp6 0 0 :::53 :::* 20989/pihole-FTL
udp6 0 0 :::5353 :::* 77/avahi-daemon: ru
udp6 0 0 :::34812 :::* 77/avahi-daemon: ru
```
after configuration
```
:~# netstat -nlput
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 383/master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 19814/lighttpd
tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 20989/pihole-FTL
tcp 0 0 127.0.0.1:46511 0.0.0.0:* LISTEN 24165/cloudflared
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 19814/lighttpd
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 20989/pihole-FTL
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 182/sshd
tcp6 0 0 ::1:25 :::* LISTEN 383/master
tcp6 0 0 :::5053 :::* LISTEN 24165/cloudflared
tcp6 0 0 ::1:4711 :::* LISTEN 20989/pihole-FTL
tcp6 0 0 :::80 :::* LISTEN 19814/lighttpd
tcp6 0 0 :::53 :::* LISTEN 20989/pihole-FTL
tcp6 0 0 :::22 :::* LISTEN 182/sshd
udp 0 0 0.0.0.0:52305 0.0.0.0:* 77/avahi-daemon: ru
udp 0 0 0.0.0.0:53 0.0.0.0:* 20989/pihole-FTL
udp 0 0 0.0.0.0:68 0.0.0.0:* 283/dhcpcd
udp 0 0 0.0.0.0:5353 0.0.0.0:* 77/avahi-daemon: ru
udp6 0 0 :::53 :::* 20989/pihole-FTL
udp6 0 0 :::5053 :::* 24165/cloudflared
udp6 0 0 :::5353 :::* 77/avahi-daemon: ru
udp6 0 0 :::34812 :::* 77/avahi-daemon: ru
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.