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

feat: adds a --bind flag to allow binding the test to a specific IP address. #99

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

panickos
Copy link

@panickos panickos commented Aug 15, 2024

Adds the ability to provide an optional --bind <ip-address> flag to the command, which would bind the outgoing connection to a specific IP address and thus allowing the test to run through a specific network interface. This would solve the case where you would like to specifically test a wired interface vs a wireless interface connection. This is useful in enterprise environments where the wired and wireless networks could be completely separated.

Usage:
ndt7-client --bind 10.0.0.25

To test:
On a machine with 2 active network interfaces:

  • Run a test with a bind on the wired interface's ip address. Verify that the traffic went through the selected interface by using tcpdump.
  • Run a test with a bind to the wireless interface's ip address. Verify that the traffic went through the selected interface by using tcpdump

This change is Reviewable

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.

1 participant