Skip to main content

EGR060 - Destination Set Not on the Host

Uploading.Agent error code #EGR060 indicates that a set an nftables egress knoc's destinations need is not on the agent host, or is not the type its box on the knoc takes. A set no destination needs may be missing. The agent never creates a set, so it refuses the grant rather than let anyone through with no destinations fenced. iptables egress keeps a knoc's destinations in the knoc's chain and never raises this code.

Box on the knoc Set declaration IPv4 set type ipv4_addr; flags interval; IPv6 set type ipv6_addr; flags interval; IPv4 set with ports typeof ip daddr . th dport; flags interval; IPv6 set with ports typeof ip6 daddr . th dport; flags interval;

A set with auto-merge is refused too, since it rewrites what the agent puts in.

Common causes include:

    knocker enable egress was not run The ruleset does not include knocker's sets file inside the table the knoc names, or a reload ran before the include was added The kernel is older than Linux 5.6, so knocker declared no port sets (see #EGR057) The knoc names a set created under another name, or of another type or family

    Steps to Resolve

    Check the Set

    With the family, table and name the knoc's box gives:

    sudo nft list set inet filter knocknoc_egress
    

    "No such file or directory" means it is missing. Otherwise check its type and flags lines.

    Create It

    Run knocker enable egress. It writes /opt/knocknoc-agent/var/egress/nftables/knocknoc_egress.nft, declaring the sets. Include it inside your own table and reload your ruleset:

    table inet filter {
    	include "/opt/knocknoc-agent/var/egress/nftables/knocknoc_egress.nft"
    	...
    }
    

    --sets <name> makes another group of sets under another name.

    Check the Knoc Names It

    Open the knoc in Knocknoc and check each set box names a set on the host exactly. Validate integration checks each set the destinations need.