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

capture all traffic and send to water tun device from mac #94

Open
jhay06 opened this issue Jun 13, 2022 · 1 comment
Open

capture all traffic and send to water tun device from mac #94

jhay06 opened this issue Jun 13, 2022 · 1 comment

Comments

@jhay06
Copy link

jhay06 commented Jun 13, 2022

Hi i checked the sample from the readme and im happy that it works as expected, would like to ask if there's a chance that i can use the tun device to capture all traffic made by the device and send it to tun ,

I just want to create a flow like below

device -> (www.google.com) -> water( tunX) -> (proxy :port) -> internet

@songgao
Copy link
Owner

songgao commented Jun 13, 2022

I think you can do this by implementing the layer 3 protocols in your user space tun handler, and set the default route to go through your tun device, similar to how a VPN would work. But if capture/logging traffic is all you want it might be easier to just use wireshark Or tcpdump.

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

2 participants