maradns not binding to port 53 after chroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maradns (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1) I had to install authbind and set /etc/authbind/
2) Zoneserver runs under UID 99 rather than migrating also to maradns, although TCP requests are rare.
nn is the maradns uid so I have added files for nn and 99.
Samboy reports that this is a Debian issue, which is the upstream supplier:
https:/
iptables on port 53 - both sport and dport directions open:
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp spt:53
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:53
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 state NEW,ESTABLISHED
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53
apport example report (it is installed on 4 16.04 LTS nameservers but they all need authbind):
ProblemType: Bug
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
Date: Tue Mar 6 12:16:42 2018
Dependencies:
adduser 3.113+nmu3ubuntu4
apt 1.2.25
apt-utils 1.2.25
debconf 1.5.58ubuntu1
debconf-i18n 1.5.58ubuntu1
debianutils 4.7
dpkg 1.18.4ubuntu1.3
duende 2.0.13-1
gcc-5-base 5.4.0-6ubuntu1~
gcc-6-base 6.0.1-0ubuntu1
gnupg 1.4.20-1ubuntu3.1
gpgv 1.4.20-1ubuntu3.1
init-system-
libacl1 2.2.52-3
libapt-inst2.0 1.2.25
libapt-pkg5.0 1.2.25
libattr1 1:2.4.47-2
libaudit-common 1:2.4.5-1ubuntu2.1
libaudit1 1:2.4.5-1ubuntu2.1
libbz2-1.0 1.0.6-8
libc6 2.23-0ubuntu10
libdb5.3 5.3.28-11ubuntu0.1
libgcc1 1:6.0.1-0ubuntu1
liblocale-
liblz4-1 0.0~r131-2ubuntu2
liblzma5 5.1.1alpha+
libpam-modules 1.1.8-3.2ubuntu2
libpam-modules-bin 1.1.8-3.2ubuntu2
libpam0g 1.1.8-3.2ubuntu2
libpcre3 2:8.41-
libreadline6 6.3-8ubuntu2
libselinux1 2.4-3build2
libsemanage-common 2.3-1build3
libsemanage1 2.3-1build3
libsepol1 2.4-2
libstdc++6 5.4.0-6ubuntu1~
libtext-
libtext-iconv-perl 1.7-5build4
libtext-
libtinfo5 6.0+20160213-
libusb-0.1-4 2:0.1.12-28
libustr-1.0-1 1.0.4-5
lsb-base 9.20160110ubuntu0.2
maradns 2.0.13-1
maradns-zoneserver 2.0.13-1
multiarch-support 2.23-0ubuntu10
passwd 1:4.2-3.1ubuntu5.3
perl-base 5.22.1-9ubuntu0.2
readline-common 6.3-8ubuntu2
sensible-utils 0.0.9
tar 1.28-2.1ubuntu0.1
ubuntu-keyring 2012.05.19
zlib1g 1:1.2.8.
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2018-01-22 (43 days ago)
InstallationMedia: Ubuntu-Server 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
JournalErrors:
-- Logs begin at Tue 2018-03-06 05:42:01 GMT, end at Tue 2018-03-06 12:16:01 GMT. --
Mar 06 06:19:01 hostname postfix/
Mar 06 07:03:01 hostname postfix/
Mar 06 07:50:01 hostname postfix/
Mar 06 07:56:01 hostname postfix/
Mar 06 09:26:01 hostname postfix/
Mar 06 09:28:42 hostname etc_maradns_
Mar 06 09:28:42 hostname etc_maradns_
Mar 06 09:28:42 hostname etc_maradns_
Mar 06 09:41:21 hostname etc_maradns_
Mar 06 09:41:21 hostname etc_maradns_
Mar 06 09:41:21 hostname etc_maradns_
Mar 06 09:41:22 hostname etc_maradns_
Mar 06 09:41:22 hostname etc_maradns_
Mar 06 09:41:22 hostname etc_maradns_
Mar 06 10:13:01 hostname postfix/
Mar 06 11:02:01 hostname postfix/
Mar 06 11:49:01 hostname postfix/
Package: maradns 2.0.13-1
PackageArchitec
ProcCpuinfoMinimal:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 2.1.3
stepping : 3
microcode : 0x1
cpu MHz : 1999.998
cache size : 4096 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt hypervisor lahf_lm abm kaiser
bugs :
bogomips : 3999.99
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
ProcEnviron:
LANGUAGE=en_GB:
TERM=xterm-
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: maradns
Tags: third-party-
Uname: Linux 4.4.0-112-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
_MarkForUpload: True
modified.
ipv4_bind_
hide_disclaimer = "YES"
chroot_dir = "/etc/maradns"
maradns_
no_fingerprint = 1
debug_msg_level = 0
verbose_level = 0
max_chain = 8
max_ar_chain = 1
max_total = 20
#synth_soa_origin = ""
tcp_convert_acl = "0.0.0.0/0"
tcp_convert_server = "46.43.15.207"
long_packet_ipv4 = "46.43.15.207"
ipv4_alias = {}
# [abc].ns.
ipv4_alias[
## ICANN: the most common and most controversial root name server
## http://
#ipv4_
## OSRC: http://
#ipv4_
## AlterNIC: http://
#ipv4_
## OpenNIC: http://
ipv4_alias[
# The following line must be uncommented to enable recursive queries
root_servers = {}
root_servers["."] = "bytemark"
csv2 = {}
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
csv2["
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: maradns 2.0.13-1
ProcVersionSign
Uname: Linux 4.4.0-112-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
Date: Tue Mar 6 12:02:35 2018
InstallationDate: Installed on 2018-01-22 (43 days ago)
InstallationMedia: Ubuntu-Server 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
ProcEnviron:
LANGUAGE=en_GB:
TERM=xterm-
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: maradns
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.