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 pcap option outbound=on to sample outbound packet only #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

setup74
Copy link

@setup74 setup74 commented Oct 31, 2019

add pcap option outbound=on to sample outbound packet only, usng bpf commands

remove src/Linux/Makefile to remove invalid dependecy on mod_docker.o in actions for hsflowd

…ng bpf commands

remove src/Linux/Makefile to remove dependecy on mod_docker.o
@setup74 setup74 changed the title add pcap option outpound = on|off to sample outbound packet only add pcap option outbound=on to sample outbound packet only Oct 31, 2019
@sflow
Copy link
Owner

sflow commented Nov 1, 2019

I fixed the spurious Makefile dependency. Thanks for pointing that out. I don't know why we would want an option to sample outbound packets only, though? What purpose do you have in mind?

@setup74
Copy link
Author

setup74 commented Nov 2, 2019 via email

@sflow-rt
Copy link

sflow-rt commented Nov 2, 2019

Selecting egress traffic is straightforward to do in post-processing. Just select packet samples where output ifindex == datasource index.

It's better not to filter at source because there may be other types of analysis that would need to see the ingress packets. The general philosophy of sFlow is to keep the agent simple and select data of interest at the collector.

@setup74
Copy link
Author

setup74 commented Nov 4, 2019 via email

@sflow-rt
Copy link

sflow-rt commented Nov 4, 2019

It sounds like you enabled pcap { dev=bond1.300)? Do you get packet direction information if you enable pcap { dev=eth2 } and pcap { dev=eth3 } (or pcap { dev=bond1 }) instead? This would allow you to monitor all macvlan tunnels (by filtering on the tunnel attributes in the sFlow analyzer).

@setup74
Copy link
Author

setup74 commented Nov 4, 2019 via email

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.

3 participants