mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-01 06:08:49 +03:00
Fix service and README for iptables to use connbytes
This commit is contained in:
@@ -56,6 +56,9 @@ If you have bad performance you can queue to youtubeUnblock only first, say, 20
|
|||||||
|
|
||||||
The same behavior is also possible in iptables: `iptables -t mangle -A FORWARD -p tcp -m tcp --dport 443 -m connbytes --connbytes-dir original --connbytes-mode packets --connbytes 0:19 -j NFQUEUE --queue-num 537 --queue-bypass`. (The package iptables-mod-conntrack-extra is required for connbytes on OpenWRT)
|
The same behavior is also possible in iptables: `iptables -t mangle -A FORWARD -p tcp -m tcp --dport 443 -m connbytes --connbytes-dir original --connbytes-mode packets --connbytes 0:19 -j NFQUEUE --queue-num 537 --queue-bypass`. (The package iptables-mod-conntrack-extra is required for connbytes on OpenWRT)
|
||||||
|
|
||||||
|
For hosts change FORWARD to OUTPUT.
|
||||||
|
|
||||||
|
|
||||||
## OpenWRT case
|
## OpenWRT case
|
||||||
The package is also compatible with routers. The router should be running by linux-based system such as [OpenWRT](https://openwrt.org/).
|
The package is also compatible with routers. The router should be running by linux-based system such as [OpenWRT](https://openwrt.org/).
|
||||||
You can build under openwrt with two options: first - through the SDK, which is preferred way and second is cross-compile manually with openwrt toolchain.
|
You can build under openwrt with two options: first - through the SDK, which is preferred way and second is cross-compile manually with openwrt toolchain.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Description=youtubeUnblock
|
|||||||
StandardError=journal
|
StandardError=journal
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
StandardInput=null
|
StandardInput=null
|
||||||
ExecStartPre=iptables -t mangle -A OUTPUT -p tcp --dport 443 -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 537
|
||||||
ExecStop=iptables -t mangle -D OUTPUT -p tcp --dport 443 -j NFQUEUE --queue-num 537 --queue-bypass
|
ExecStop=iptables -t mangle -D OUTPUT -p tcp --dport 443 -j NFQUEUE --queue-num 537 --queue-bypass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user