change to iptables

This commit is contained in:
nnduc
2026-05-30 13:47:06 +07:00
parent 054b863f23
commit 387241d1f3
7 changed files with 137 additions and 62 deletions

10
iptables/install.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -e
install -m 755 china-block.sh /usr/local/sbin/china-block.sh
install -m 755 china-unblock.sh /usr/local/sbin/china-unblock.sh
install -m 644 china-block.service /etc/systemd/system/china-block.service
systemctl daemon-reload
systemctl enable --now china-block
echo "[+] china-block service installed and started."