When I set up the rules and add a large amount of elements at once, errors below occurs.
Strangely, this won't happen if I load each script manually instead of using include
, or if I execute the script after a successful execution.
I'm obviously not a nftables expert and I'm out of ideas.
/var/run/pbr.nft:25:1-63: Error: Could not process rule: File exists
add element inet fw4 pbr_VPNM_4_dst_ip_cfg0a5cc1 { 146.1.15.56 }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/var/run/pbr.nft:28:1-66: Error: Could not process rule: File exists
add element inet fw4 pbr_VPNM_6_dst_ip_cfg0a5cc1 { 2401:3500::156 }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In file included from /var/run/pbr.nft:67:1-51:
/var/run/pbr_Warp_4_dst_ip_cfg086ff5.nft:2:50-330: Error: Could not process rule: No such file or directory
add element inet fw4 pbr_VPNM_4_dst_ip_cfg0a5cc1 { 1.1.8.0/24, 1.2.4.0/24, 1.8.1.0/24, 1.8.8.0/24, 1.12.0.0/14, 1.24.0.0/13, 1.45.0.0/16, 1.48.0.0/14, 1.56.0.0/13, 1.68.0.0/14, 1.80.0.0/13, 1.88.0.0/14, 1.92.0.0/17, 1.92.128.0/19, 1.92.192.0/18, 1.93.0.0/16, 1.94.0.0/16, 1.95.0.0/19, 1.116.0.0/15, 1.118.2.0/24, 1.118.32.0/24, }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In file included from /var/run/pbr_user_ipv4.nft:258:1-51:
from /var/run/pbr.nft:67:1-51:
/var/run/pbr_user_ipv6.nft:2:50-179: Error: Could not process rule: No such file or directory
add element inet fw4 pbr_VPNM_6_dst_ip_cfg0a5cc1 { 2001:250::/30, 2001:254::/31, 2001:256:100::/48, 2001:550:1601::/48, 2001:678:d3c::/48, 2001:67c:aec::/48, 2001:67c:c28::/48, }