Update service files

This commit is contained in:
Vadim Vetrov 2024-08-12 00:59:13 +03:00
parent e649ef5567
commit 918ccc822d
No known key found for this signature in database
GPG Key ID: E8A308689D7A73A5
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/usr/sbin/nft -f #!/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 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 insert rule inet fw4 output mark and 0x8000 == 0x8000 counter accept

View File

@ -10,7 +10,7 @@ STOP=50
start_service() { start_service() {
procd_open_instance procd_open_instance
procd_set_param command /usr/bin/youtubeUnblock 537 procd_set_param command /usr/bin/youtubeUnblock
procd_set_param nice -20 procd_set_param nice -20

View File

@ -6,7 +6,7 @@ StandardError=journal
StandardOutput=journal StandardOutput=journal
StandardInput=null 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 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 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] [Install]