Why Errors? /etc/nftables.conf:38:27-37: Error: Interface does not exist iif "enp4s0"…
- User
Why Errors? /etc/nftables.conf:38:27-37: Error: Interface does not exist iif "enp4s0" oif "vm-bridge" accept /etc/nftables.conf:39:14-24: Error: Interface does not exist iif "vm-bridge" oif "enp4s0" accept
/etc/network/interfaces
auto enp4s0 iface enp4s0 inet manual
auto vm-bridge iface vm-bridge inet static bridge_ports enp4s0 address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 bridge_stp off bridge_fd 0 bridge_maxwait 0
part of /etc/nftables.conf
table ip filter { chain input { type filter hook input priority 0; policy drop; ct state invalid counter drop ct state {established, related} counter accept iif lo accept comment "accept loopback" iif != lo ip daddr 127.0.0.1/8 counter drop ip protocol icmp counter accept
iifname "vm-bridge" tcp dport {7245, 3128, 4433, 4435} accept; counter comment "count dropped packets" } chain forward { type filter hook forward priority filter; policy accept; iif "enp4s0" oif "vm-bridge" accept iif "vm-bridge" oif "enp4s0" accept } chain trace_chain { type filter hook prerouting priority filter - 1; policy accept; meta nftrace set 1 }}
table ip natqemu { chain postrouting { type nat hook postrouting priority 100; policy accept; oif "enp4s0" masquerade } }
/lib/systemd/system/nftables.service
[Unit] Description=nftables Documentation=man:nft(8) http://wiki.nftables.org Wants=network-pre.target Before=network-pre.target shutdown.target Conflicts=shutdown.target DefaultDependencies=no
[Service] Type=oneshot RemainAfterExit=yes StandardInput=null ProtectSystem=full ProtectHome=true ExecStart=/usr/sbin/nft -f /etc/nftables.conf ExecReload=/usr/sbin/nft -f /etc/nftables.conf ExecStop=/usr/sbin/nft flush ruleset
[Install] WantedBy=sysinit.target
- Assistant
- User
How Ensure ifup brings your interfaces before nftables starts?
- Assistant
- User
what mean DefaultDependencies?
- Assistant