for nft configtable ip v2ray set block_ips type ipv4_addr flags interval elements= 192168026 how modify the elements of the block_ips
To modify the elements of the block_ips set in the Nftables configuration, you can follow these steps:
- Open the Nftables configuration file.
- Locate the
table ip v2raysection. - Within that section, find the
set block_ipsblock. - Modify the
elementsparameter 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
原文地址: https://www.cveoy.top/t/topic/hFoW 著作权归作者所有。请勿转载和采集!