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

chore(connlib): split allowed_ips into ipv4 and ipv6 in ClientOnGateway #5160

Merged
merged 2 commits into from
May 30, 2024

Conversation

conectado
Copy link
Collaborator

To encode that clients always have both ipv4 and ipv6 and they are the only allowed source ips for any given client, into the type, we split those into their specific fields in the ClientOnGateway struct and update tests accordingly.

Furthermore, these will be used for the DNS refactor for ipv6-in-ipv4 and ipv4-in-ipv6 to set the source ip of outgoing packets, without having to do additional routing or mappings. There will be more notes on this on the corresponding PR #5049 .

…way`

To encode into the types that clients always have both ipv4 and ipv6 and
they are the only allowed source ips for any given client, we split
those into their specific fields in the `ClientOnGateway` struct and
update tests accordingly.

Furthermore, these will be used for the DNS refactor for ipv6-in-ipv4
and ipv4-in-ipv6 to set the source ip of outgoing packets, without
having to do additional routing or mappings. There will be more notes on
this on the corresponding PR.
Copy link

vercel bot commented May 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
firezone ⬜️ Ignored (Inspect) Visit Preview May 30, 2024 1:18am

@github-actions github-actions bot added the kind/chore Issues related to repository cleanup or maintenance label May 30, 2024
@conectado
Copy link
Collaborator Author

I really hope this time CI behaves 😓

Copy link

github-actions bot commented May 30, 2024

Terraform Cloud Plan Output

Plan: 15 to add, 15 to change, 15 to destroy.

Terraform Cloud Plan

Copy link

github-actions bot commented May 30, 2024

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 237.1 MiB (-2%) 238.8 MiB (-2%) 81 (-73%)
direct-tcp-server2client 239.1 MiB (-2%) 240.1 MiB (-2%) 316 (+132%)
relayed-tcp-client2server 224.3 MiB (+0%) 225.1 MiB (+0%) 320 (+72%)
relayed-tcp-server2client 235.9 MiB (+0%) 236.5 MiB (+0%) 385 (+3%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 500.0 MiB (-0%) 0.10ms (+330%) 41.43% (-6%)
direct-udp-server2client 500.0 MiB (+0%) 0.01ms (+52%) 21.24% (-3%)
relayed-udp-client2server 499.9 MiB (-0%) 0.17ms (+371%) 55.38% (+1%)
relayed-udp-server2client 500.0 MiB (+0%) 0.04ms (+136%) 45.29% (+10%)

Copy link
Member

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed an additional commit, let me know what you think!

@conectado conectado enabled auto-merge May 30, 2024 01:43
@conectado conectado added this pull request to the merge queue May 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 30, 2024
@thomaseizinger thomaseizinger added this pull request to the merge queue May 30, 2024
Merged via the queue into main with commit b3d2059 May 30, 2024
136 checks passed
@thomaseizinger thomaseizinger deleted the chore/be-specific-about-source-ips-on-gateway branch May 30, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/chore Issues related to repository cleanup or maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants