peer-to-peer exchange lock button

This commit is contained in:
mercury
2023-07-20 22:25:32 +04:00
parent 8f34c9e6bc
commit 5035f023c3
9 changed files with 65 additions and 26 deletions
+1
View File
@@ -0,0 +1 @@
iptables -I FORWARD -i %i -o %i -j REJECT
+8
View File
@@ -15,4 +15,12 @@ wg-quick up wg0
cat /ssh/key.pub > /root/.ssh/authorized_keys
ssh-keygen -A
exec /usr/sbin/sshd -D -e "$@" &
if [ $(cat /pac.json | jq .blocktorrent) -eq 1 ]
then
sh /block_torrent.sh
fi
if [ $(cat /pac.json | jq .exchange) -eq 1 ]
then
sh /block_exchange.sh
fi
tail -f /dev/null
+1
View File
@@ -0,0 +1 @@
iptables -D FORWARD -i %i -o %i -j REJECT