aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-12-05 19:21:11 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2018-12-05 19:21:39 +0100
commit6827f7826451a2b9e99800d2fdb4e1793e61b968 (patch)
treec0081acf1ed830a17f29af52edd46b3a32b810f7
parentd0e49056dce46ad1a721b62b57ee16c43b8ea4f1 (diff)
downloadlabitat-ansible-6827f7826451a2b9e99800d2fdb4e1793e61b968.tar.gz
labitat-ansible-6827f7826451a2b9e99800d2fdb4e1793e61b968.tar.xz
labitat-ansible-6827f7826451a2b9e99800d2fdb4e1793e61b968.zip
space_server: avahi: ask myhostname 2nd
-rw-r--r--roles/space_server/files/nftables.conf3
-rw-r--r--roles/space_server/tasks/avahi.yml2
2 files changed, 4 insertions, 1 deletions
diff --git a/roles/space_server/files/nftables.conf b/roles/space_server/files/nftables.conf
index 88e24f1..0cb7c4f 100644
--- a/roles/space_server/files/nftables.conf
+++ b/roles/space_server/files/nftables.conf
@@ -143,6 +143,9 @@ table ip6 filter {
# bird etc. on fiberby link
iif $ext_if ip6 saddr $link_net6 ip6 daddr $link_net6 counter accept
+ # tftp
+ iif $wire_if ip6 saddr $wire_net6 udp dport 69 accept
+
# ssh
tcp dport 22 accept
diff --git a/roles/space_server/tasks/avahi.yml b/roles/space_server/tasks/avahi.yml
index acbcb2a..2e715bb 100644
--- a/roles/space_server/tasks/avahi.yml
+++ b/roles/space_server/tasks/avahi.yml
@@ -91,6 +91,6 @@
lineinfile:
path: '/etc/nsswitch.conf'
regexp: '^hosts:'
- line: 'hosts: files mdns_minimal [NOTFOUND=return] dns myhostname'
+ line: 'hosts: files myhostname mdns_minimal [NOTFOUND=return] dns'
# vim: set ts=2 sw=2 et: