mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 06:15:31 +00:00
Update service files
This commit is contained in:
parent
e649ef5567
commit
918ccc822d
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user