mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
6 lines
272 B
Bash
Executable File
6 lines
272 B
Bash
Executable File
echo "create china hash:net family inet hashsize 1024 maxelem 65536" > /tmp/china.ipset
|
|
awk '!/^$/&&!/^#/{printf("add china %s'" "'\n",$0)}' /etc/china_ssr.txt >> /tmp/china.ipset
|
|
ipset -! flush china
|
|
ipset -! restore < /tmp/china.ipset 2>/dev/null
|
|
rm -f /tmp/china.ipset
|