Use Auto TTL = 4 by default

Previous value of 2 caused issues with the services connected via
very different uplink/downlink routing links.
This commit is contained in:
ValdikSS 2021-12-25 20:42:33 +03:00
parent e1e09f9103
commit 9fcf097cb7
2 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ Usage: goodbyedpi.exe [OPTION...]
--set-ttl <value> activate Fake Request Mode and send it with supplied TTL value. --set-ttl <value> activate Fake Request Mode and send it with supplied TTL value.
DANGEROUS! May break websites in unexpected ways. Use with care. DANGEROUS! May break websites in unexpected ways. Use with care.
--auto-ttl [decttl] activate Fake Request Mode, automatically detect TTL and decrease --auto-ttl [decttl] activate Fake Request Mode, automatically detect TTL and decrease
it from standard 64 or 128 by decttl (128/64 - TTL - 2 by default). it from standard 64 or 128 by decttl (128/64 - TTL - 4 by default).
--wrong-chksum activate Fake Request Mode and send it with incorrect TCP checksum. --wrong-chksum activate Fake Request Mode and send it with incorrect TCP checksum.
May not work in a VM or with some routers, but is safer than set-ttl. May not work in a VM or with some routers, but is safer than set-ttl.
--wrong-seq activate Fake Request Mode and send it with TCP SEQ/ACK in the past. --wrong-seq activate Fake Request Mode and send it with TCP SEQ/ACK in the past.

View File

@ -578,7 +578,7 @@ int main(int argc, char *argv[]) {
http_fragment_size = https_fragment_size = 2; http_fragment_size = https_fragment_size = 2;
do_fragment_http_persistent = do_fragment_http_persistent_nowait = 1; do_fragment_http_persistent = do_fragment_http_persistent_nowait = 1;
do_fake_packet = 1; do_fake_packet = 1;
do_auto_ttl = 2; do_auto_ttl = 4;
} }
while ((opt = getopt_long(argc, argv, "123456prsaf:e:mwk:n", long_options, NULL)) != -1) { while ((opt = getopt_long(argc, argv, "123456prsaf:e:mwk:n", long_options, NULL)) != -1) {
@ -610,7 +610,7 @@ int main(int argc, char *argv[]) {
http_fragment_size = https_fragment_size = 2; http_fragment_size = https_fragment_size = 2;
do_fragment_http_persistent = do_fragment_http_persistent_nowait = 1; do_fragment_http_persistent = do_fragment_http_persistent_nowait = 1;
do_fake_packet = 1; do_fake_packet = 1;
do_auto_ttl = 2; do_auto_ttl = 4;
break; break;
case '6': case '6':
do_fragment_http = do_fragment_https = 1; do_fragment_http = do_fragment_https = 1;
@ -749,7 +749,7 @@ int main(int argc, char *argv[]) {
break; break;
case '+': case '+':
do_fake_packet = 1; do_fake_packet = 1;
do_auto_ttl = 2; do_auto_ttl = 4;
if (optarg) { if (optarg) {
do_auto_ttl = atoub(optarg, "Set Auto TTL parameter error!"); do_auto_ttl = atoub(optarg, "Set Auto TTL parameter error!");
} else if (argv[optind] && argv[optind][0] != '-') { } else if (argv[optind] && argv[optind][0] != '-') {
@ -800,7 +800,7 @@ int main(int argc, char *argv[]) {
" --set-ttl <value> activate Fake Request Mode and send it with supplied TTL value.\n" " --set-ttl <value> activate Fake Request Mode and send it with supplied TTL value.\n"
" DANGEROUS! May break websites in unexpected ways. Use with care.\n" " DANGEROUS! May break websites in unexpected ways. Use with care.\n"
" --auto-ttl [decttl] activate Fake Request Mode, automatically detect TTL and decrease\n" " --auto-ttl [decttl] activate Fake Request Mode, automatically detect TTL and decrease\n"
" it from standard 64 or 128 by decttl (128/64 - TTL - 2 by default).\n" " it from standard 64 or 128 by decttl (128/64 - TTL - 4 by default).\n"
" --wrong-chksum activate Fake Request Mode and send it with incorrect TCP checksum.\n" " --wrong-chksum activate Fake Request Mode and send it with incorrect TCP checksum.\n"
" May not work in a VM or with some routers, but is safer than set-ttl.\n" " May not work in a VM or with some routers, but is safer than set-ttl.\n"
" Could be combined with --set-ttl\n" " Could be combined with --set-ttl\n"