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