define out_if = enp4s0

table ip MYNFT {
 set myintnets {
	type ipv4_addr
	flags interval
	elements = { 10.1.1.0/24, 10.2.2.0/24, 10.3.3.0/24, 10.4.4.0/24 }
 }

 chain s-nat {
  comment "My SNAT chain"
  type nat hook postrouting priority filter; policy accept;
  oif $out_if ip saddr @myintnets masquerade
 }

 chain d-nat {
  comment "My DNAT chain"
  type nat hook prerouting priority filter; policy accept;
 }
}

