To modify the elements of the block_ips set in the Nftables configuration, you can follow these steps:

  1. Open the Nftables configuration file.
  2. Locate the table ip v2ray section.
  3. Within that section, find the set block_ips block.
  4. Modify the elements parameter to add, remove, or modify the desired IP addresses.

For example, to add an IP address 192.168.0.27 to the block_ips set, you would update the configuration to:

table ip v2ray {
    set block_ips{
        type ipv4_addr
        flags interval
        elements={ 192.168.0.26, 192.168.0.27 }
    }
}

Similarly, you can remove an IP address or modify the existing IP addresses by modifying the elements list accordingly.

After saving the configuration file, you will need to apply the changes using the appropriate command for your system

for nft configtable ip v2ray set block_ips type ipv4_addr flags interval elements= 192168026 how modify the elements of the block_ips

原文地址: https://www.cveoy.top/t/topic/hFoW 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录