Browse Source

blockcheck: test ts fooling, silently enable timestamps in windows

master
bol-van 3 days ago
parent
commit
8026d11f71
  1. 5
      blockcheck.sh
  2. 3
      docs/changes.txt

5
blockcheck.sh

@ -396,6 +396,8 @@ check_system()
PKTWS="$WINWS" PKTWS="$WINWS"
PKTWSD=winws PKTWSD=winws
FWTYPE=windivert FWTYPE=windivert
# ts fooling requires timestamps. they are disabled by default in windows.
netsh interface tcp set global timestamps=enabled >/dev/null
;; ;;
*) *)
echo $UNAME not supported echo $UNAME not supported
@ -1195,6 +1197,7 @@ warn_fool()
echo "WARNING ! fakedsplit/fakeddisorder with md5sig fooling and low split position causes MTU overflow with multi-segment TLS (kyber)" echo "WARNING ! fakedsplit/fakeddisorder with md5sig fooling and low split position causes MTU overflow with multi-segment TLS (kyber)"
;; ;;
datanoack) echo 'WARNING ! although datanoack fooling worked it may break NAT and may only work with external IP. Additionally it may require nftables to work correctly.' ;; datanoack) echo 'WARNING ! although datanoack fooling worked it may break NAT and may only work with external IP. Additionally it may require nftables to work correctly.' ;;
ts) echo 'WARNING ! although ts fooling worked it will not work without timestamps being enabled in the client OS. In windows timestamps are DISABLED by default.'
esac esac
} }
pktws_curl_test_update_vary() pktws_curl_test_update_vary()
@ -1321,7 +1324,7 @@ pktws_check_domain_http_bypass_()
} }
f= f=
[ "$UNAME" = "OpenBSD" ] || f="badsum" [ "$UNAME" = "OpenBSD" ] || f="badsum"
f="$f badseq datanoack md5sig" f="$f badseq datanoack ts md5sig"
[ "$IPV" = 6 ] && f="$f hopbyhop hopbyhop2" [ "$IPV" = 6 ] && f="$f hopbyhop hopbyhop2"
for fooling in $f; do for fooling in $f; do
ok=0 ok=0

3
docs/changes.txt

@ -531,3 +531,6 @@ v71.3
init.d: FILTER_MARK init.d: FILTER_MARK
nfqws: ts fooling nfqws: ts fooling
blockcheck: test ts fooling
blockcheck: silently enable tcp timestamps in windows

Loading…
Cancel
Save