diff --git a/INSTALL b/INSTALL index cf3183e..879ec33 100644 --- a/INSTALL +++ b/INSTALL @@ -59,7 +59,11 @@ cp /usr/local/src/ipt-gateway/conf/main_ipv6.conf.sample /etc/ipt-firewall/main_ cat < /etc/systemd/system/ipt-firewall.service [Unit] Description=IPv4 Firewall with iptables -After=network.target +# - Start after network AND name resolution are available: rules may contain +# - hostnames (e.g. in allow_local_net_to_ext_service), which are resolved by +# - iptables when the rule is created. +Wants=network-online.target +After=network-online.target nss-lookup.target [Service] SyslogIdentifier="ipt-gateway" @@ -78,7 +82,11 @@ EOF cat < /etc/systemd/system/ip6t-firewall.service [Unit] Description=IPv6 Firewall with ip6tables -After=network.target +# - Start after network AND name resolution are available: rules may contain +# - hostnames (e.g. in allow_local_net_to_ext_service), which are resolved by +# - iptables when the rule is created. +Wants=network-online.target +After=network-online.target nss-lookup.target [Service] SyslogIdentifier="ip6t-gateway"