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

Add integration test #14

Open
misje opened this issue Mar 23, 2019 · 0 comments
Open

Add integration test #14

misje opened this issue Mar 23, 2019 · 0 comments

Comments

@misje
Copy link
Owner

misje commented Mar 23, 2019

Create a test set up that can test packet mangling. It can be implemented using a docker container (remember --cap-add=NET_ADMIN and --cap-add=SYS_PTRACE --security-opt seccomp=unconfined would be handy to use container also for debugging) running dnsmasq + isc-dhcp-client.

Initial draft:

  1. inject a relay agent information option, use that as a tag in dnsmasq and send conditional options back. Parse the detailed DHCP log to identify that the DHCP request from the client was indeed mangled. No need to capture network traffic.
  2. Use dumpcap or similar and analyse network data directly. No need for dnsmasq.

With the first option a real-world-ish setup (the only one I have personally used) can be demonstrated and referred to in the help as an example to the user.

Use a CI/CD service to do build + test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant