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

How can i capture all traffic for a specific interface? #4

Closed
elico opened this issue Dec 2, 2020 · 2 comments
Closed

How can i capture all traffic for a specific interface? #4

elico opened this issue Dec 2, 2020 · 2 comments

Comments

@elico
Copy link

elico commented Dec 2, 2020

I have tried to understand the libpcap filters and for now I am using the filter "not port 22" which capture everything not port 22.
How can I capture all traffic?

@vponomarev
Copy link
Owner

How can I capture all traffic?

You can use any kind of filter, that will always return "true" for all packets.
For example, this filter rule should work:
1>0

Or you can use something like:
(port 22) or (not port 22)

Of course, if you need to see only IP traffic you can use filter:
ip

@elico
Copy link
Author

elico commented Dec 23, 2020

How can I capture all traffic?

You can use any kind of filter, that will always return "true" for all packets.
For example, this filter rule should work:
1>0

Nice one!!!

@elico elico closed this as completed Dec 23, 2020
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