diff options
author | Tomas Krizek <tomas.krizek@nic.cz> | 2019-05-22 13:42:25 +0200 |
---|---|---|
committer | Tomas Krizek <tomas.krizek@nic.cz> | 2019-05-22 14:00:17 +0200 |
commit | db7fc166ed21edf61f5d6ba8615a68caec19dd81 (patch) | |
tree | 94954645a8365aa51763cb8501c93ef784d2089a /systemd | |
parent | Merge branch 'docs-fixes' into 'master' (diff) | |
download | knot-resolver-db7fc166ed21edf61f5d6ba8615a68caec19dd81.tar.xz knot-resolver-db7fc166ed21edf61f5d6ba8615a68caec19dd81.zip |
systemd: omit unneeded IP from ListenStream/Datagram
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/kresd-doh.socket.d/all-interfaces.conf | 5 | ||||
-rw-r--r-- | systemd/kresd-tls.socket.d/all-interfaces.conf | 5 | ||||
-rw-r--r-- | systemd/kresd.socket.d/all-interfaces.conf | 6 | ||||
-rw-r--r-- | systemd/kresd.systemd.7.in | 12 |
4 files changed, 13 insertions, 15 deletions
diff --git a/systemd/kresd-doh.socket.d/all-interfaces.conf b/systemd/kresd-doh.socket.d/all-interfaces.conf index 63619099..6df2bfee 100644 --- a/systemd/kresd-doh.socket.d/all-interfaces.conf +++ b/systemd/kresd-doh.socket.d/all-interfaces.conf @@ -3,9 +3,8 @@ # Configure kresd-doh.socket to listen on all IPv4 and IPv6 interfaces. # Empty ListenStream= directive is required to avoid port clash with default -# localhost. If you've disabled IPv6 support in kernel, use 0.0.0.0 instead of -# [::] +# localhost. If you've disabled IPv6 support in kernel, use 0.0.0.0:port instead [Socket] ListenStream= -ListenStream=[::]:443 +ListenStream=443 diff --git a/systemd/kresd-tls.socket.d/all-interfaces.conf b/systemd/kresd-tls.socket.d/all-interfaces.conf index 7607f267..3d9d74aa 100644 --- a/systemd/kresd-tls.socket.d/all-interfaces.conf +++ b/systemd/kresd-tls.socket.d/all-interfaces.conf @@ -3,9 +3,8 @@ # Configure kresd-tls.socket to listen on all IPv4 and IPv6 interfaces. # Empty ListenStream= directive is required to avoid port clash with default -# localhost. If you've disabled IPv6 support in kernel, use 0.0.0.0 instead of -# [::] +# localhost. If you've disabled IPv6 support in kernel, use 0.0.0.0:port instead [Socket] ListenStream= -ListenStream=[::]:853 +ListenStream=853 diff --git a/systemd/kresd.socket.d/all-interfaces.conf b/systemd/kresd.socket.d/all-interfaces.conf index c077d9ea..bbe2eedc 100644 --- a/systemd/kresd.socket.d/all-interfaces.conf +++ b/systemd/kresd.socket.d/all-interfaces.conf @@ -4,10 +4,10 @@ # Empty ListenDatagram= and ListenStream= directives are required to avoid port # clash with default localhost. If you've disabled IPv6 support in kernel, use -# 0.0.0.0 instead of [::] +# 0.0.0.0:port instead [Socket] ListenDatagram= ListenStream= -ListenDatagram=[::]:53 -ListenStream=[::]:53 +ListenDatagram=53 +ListenStream=53 diff --git a/systemd/kresd.systemd.7.in b/systemd/kresd.systemd.7.in index 32b28d27..d1f815cd 100644 --- a/systemd/kresd.systemd.7.in +++ b/systemd/kresd.systemd.7.in @@ -84,8 +84,8 @@ ListenStream=192.0.2.115:853 To configure \fBkresd\fR to listen on all IPv4 and IPv6 interfaces, use empty \fIListenDatagram=\fR and \fIListenStream=\fR directives to remove the default -localhost address and then bind to the [::] address. If you've disabled IPv6 -support in kernel, use the 0.0.0.0 address instead. +localhost address and then specify port to bind to. If you've disabled IPv6 +support in kernel, use the 0.0.0.0:port syntax instead. .nf .RS 4n @@ -93,13 +93,13 @@ support in kernel, use the 0.0.0.0 address instead. [Socket] ListenDatagram= ListenStream= -ListenDatagram=[::]:53 -ListenStream=[::]:53 +ListenDatagram=53 +ListenStream=53 # /etc/systemd/system/kresd-tls.socket.d/override.conf [Socket] ListenStream= -ListenStream=[::]:853 +ListenStream=853 .RE .fi @@ -122,7 +122,7 @@ on port 443, create the following drop-in file for \fBkresd-doh.socket\fR: # /etc/systemd/system/kresd-doh.socket.d/override.conf [Socket] ListenStream= -ListenStream=[::]:443 +ListenStream=443 .RE .fi |