From 918ccc822d514240294b85c1438705608a641820 Mon Sep 17 00:00:00 2001 From: Vadim Vetrov Date: Mon, 12 Aug 2024 00:59:13 +0300 Subject: [PATCH] Update service files --- owrt/537-youtubeUnblock.nft | 2 +- owrt/youtubeUnblock.owrt | 2 +- youtubeUnblock.service | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/owrt/537-youtubeUnblock.nft b/owrt/537-youtubeUnblock.nft index c70a2cd..88c6881 100644 --- a/owrt/537-youtubeUnblock.nft +++ b/owrt/537-youtubeUnblock.nft @@ -1,5 +1,5 @@ #!/usr/sbin/nft -f -# This file +# This file install nftables rules for openwrt insert rule inet fw4 mangle_forward tcp dport 443 ct original packets < 20 counter queue num 537 bypass insert rule inet fw4 output mark and 0x8000 == 0x8000 counter accept diff --git a/owrt/youtubeUnblock.owrt b/owrt/youtubeUnblock.owrt index 23be195..9ed7ac5 100755 --- a/owrt/youtubeUnblock.owrt +++ b/owrt/youtubeUnblock.owrt @@ -10,7 +10,7 @@ STOP=50 start_service() { procd_open_instance - procd_set_param command /usr/bin/youtubeUnblock 537 + procd_set_param command /usr/bin/youtubeUnblock procd_set_param nice -20 diff --git a/youtubeUnblock.service b/youtubeUnblock.service index e185106..062a10b 100644 --- a/youtubeUnblock.service +++ b/youtubeUnblock.service @@ -6,7 +6,7 @@ StandardError=journal StandardOutput=journal StandardInput=null ExecStartPre=iptables -t mangle -A OUTPUT -p tcp -m tcp --dport 443 -m connbytes --connbytes-dir original --connbytes-mode packets --connbytes 0:19 -j NFQUEUE --queue-num 537 --queue-bypass -ExecStart=$(PREFIX)/bin/youtubeUnblock 537 +ExecStart=$(PREFIX)/bin/youtubeUnblock ExecStop=iptables -t mangle -D OUTPUT -p tcp -m tcp --dport 443 -m connbytes --connbytes-dir original --connbytes-mode packets --connbytes 0:19 -j NFQUEUE --queue-num 537 --queue-bypass [Install]