Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default IP TTL to 64 to match ubuntu #850

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Set default IP TTL to 64 to match ubuntu #850

merged 2 commits into from
Apr 16, 2024

Conversation

phillip-stephens
Copy link
Contributor

@phillip-stephens phillip-stephens commented Apr 16, 2024

To ensure as accurate of a hitrate as possible, use the IPDEFTTL (64) for the TTL value in the IP header to match the IP packet header TTL used by Ubuntu.

Testing

Sent a packet without specifying the TTL

Note

Note the TTL = 64 in the first line

20:17:07.232286 IP (tos 0x0, ttl 64, id 10173, offset 0, flags [none], proto TCP (6), length 60)  171.67.71.218.46980 > 54.47.81.210.http: Flags [S], cksum 0xd772 (correct), seq 3499764253, win 65535, options [mss 1460,sackOK,TS val 1713298627 ecr 0,nop,wscale 7], length 0

Sent a packet and specified the TTL=39 with --probe-ttl=39

Note

Note the TTL = 39 in the first line

20:17:22.988555 IP (tos 0x0, ttl 39, id 57781, offset 0, flags [none], proto TCP (6), length 60)
    171.67.71.218.58600 > 173-242-34-17.cdma-pool.blue.net.http: Flags [S], cksum 0x6e86 (correct), seq 3716812964, win 65535, options [mss 1460,sackOK,TS val 1713298642 ecr 0,nop,wscale 7], length 0

@phillip-stephens phillip-stephens marked this pull request as ready for review April 16, 2024 20:29
@zakird zakird merged commit 5d90505 into main Apr 16, 2024
11 checks passed
@zakird zakird deleted the phillip/custom-ttl branch April 16, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants