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

Fix test_split_tunnel #6682

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Fix test_split_tunnel #6682

merged 1 commit into from
Aug 29, 2024

Conversation

dlon
Copy link
Member

@dlon dlon commented Aug 26, 2024

ping uses raw sockets rather than SOCK_DGRAM by default. This only works as root.

Related test run: https://github.com/mullvad/mullvadvpn-app/actions/runs/10593508501


This change is Reviewable

hulthe
hulthe previously approved these changes Aug 27, 2024
@dlon dlon force-pushed the fix-icmp-priv branch 4 times, most recently from 583a3b8 to ec8bbfe Compare August 27, 2024 19:01
test/scripts/ssh-setup.sh Outdated Show resolved Hide resolved
@dlon dlon requested a review from hulthe August 28, 2024 09:20
@dlon dlon marked this pull request as ready for review August 28, 2024 09:23
test/connection-checker/src/net.rs Outdated Show resolved Hide resolved
test/connection-checker/src/net.rs Show resolved Hide resolved
Raw ICMP isn't allowed on all platforms for unprivileged users.
Instead:

* Use SOCK_DGRAM, where possible
* Use 'ping' command, since SOCK_DGRAM isn't allowed on some older
  Linux distros.
@dlon dlon merged commit 563e6a7 into main Aug 29, 2024
36 checks passed
@dlon dlon deleted the fix-icmp-priv branch August 29, 2024 12:42
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