change to iptables
This commit is contained in:
13
iptables/china-block.service
Normal file
13
iptables/china-block.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Block Chinese IP ranges via ipset + iptables
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/local/sbin/china-block.sh
|
||||
ExecStop=/usr/local/sbin/china-unblock.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user