mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-01-15 11:05:18 +00:00
Update nftables to allow quic drop
This commit is contained in:
parent
9dacead2ee
commit
dba6078f2c
@ -13,7 +13,9 @@ o = s:option(ListValue, "faking_strategy", "faking strategy",
|
||||
<li><code>randseq</code> specifies that random sequence/acknowledgemend random will be set. This option may be handled by provider which uses conntrack with drop on invalid conntrack state firewall rule enabled. </li>
|
||||
<li><code>ttl</code> specifies that packet will be invalidated after --faking-ttl=n hops. ttl is better but may cause issues if unconfigured. </li>
|
||||
<li><code>pastseq</code> is like randseq but sequence number is not random but references the packet sent in the past (before current). </li>
|
||||
<li><code>tcp_check</code> will invalidate faking packet with invalid checksum. May be handled and dropped by some providers/TSPUs.</li></ul>
|
||||
<li><code>tcp_check</code> will invalidate faking packet with invalid checksum. May be handled and dropped by some providers/TSPUs.</li>
|
||||
<li><code>md5sum</code> will invalidate faking packet with invalid TCP md5sum. md5sum is a TCP option which is handled by the destination server but may be skipped by TSPU.</li>
|
||||
</ul>
|
||||
]])
|
||||
o:value("pastseq", "pastseq")
|
||||
o:value("randseq", "randseq")
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/sbin/nft -f
|
||||
# This file
|
||||
# This file will be applied automatically for nftables
|
||||
|
||||
add rule inet fw4 mangle_forward tcp dport 443 ct original packets < 20 counter queue num 537 bypass
|
||||
add chain inet fw4 youtubeUnblock { type filter hook postrouting priority mangle - 1; policy accept; }
|
||||
add rule inet fw4 youtubeUnblock meta l4proto { tcp, udp } th dport 443 ct original packets < 20 counter queue num 537 bypass
|
||||
insert rule inet fw4 output mark and 0x8000 == 0x8000 counter accept
|
||||
|
Loading…
Reference in New Issue
Block a user