lxc-iptag is a simple script to add ip tags to LXC containers.
curl -sL https://raw.githubusercontent.com/ricostuart/lxc-iptag/refs/heads/main/install.sh | bashOpen /usr/local/bin/lxc-iptag and change the cidr_list
The default CIDRs are
cidr_list=(
192.168.0.0/16
100.64.0.0/10
10.0.0.0/8
)