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

intercept ping traffic #96

Open
amlwwalker opened this issue Nov 16, 2022 · 0 comments
Open

intercept ping traffic #96

amlwwalker opened this issue Nov 16, 2022 · 0 comments

Comments

@amlwwalker
Copy link

Hi,
I'm new to TUN/TAP but I have been programming in Go for a while.
I couldn't find great tutorials online for general TUN/TAP information and not many examples here, but what I am trying to do is intercept PING messages (in and out) and control the response of them (increase the latency artificially) as an academic exercise in learning about virtual network interfaces.

Would anyone be able to provide an example of receiving a ping message and responding to it with an artificial delay?

My goal is to understand using TUN/TAP at both the layer 3 (ICMP) interception and then at layer 7 HTTP (i.e making a GET request to http://example.com over the TUN/TAP)

I have looked around but I'm on a mac and the general internet information is very linux specific. Water seems like the way to go about this, but i struggled to find much in the way of examples. A very basic example doing the above would really give me a head start.
Thanks!

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

No branches or pull requests

1 participant