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

[sfacctd] Change the received datagrams agent address #763

Open
MiniPierre opened this issue Mar 6, 2024 · 3 comments
Open

[sfacctd] Change the received datagrams agent address #763

MiniPierre opened this issue Mar 6, 2024 · 3 comments

Comments

@MiniPierre
Copy link

MiniPierre commented Mar 6, 2024

Description
Hi,
I am setting a sFlow "proxy" to collect the sFlow datagrams from my servers and send them to an external collector, and I would like to replace the agent address in the datagram with the proxy one. Am I missing a config key that would do the job ?
Thanks

Version

sFlow Accounting Daemon, sfacctd 1.7.7-git [RELEASE]

Arguments:
 '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-pgsql-includes=/usr/include/postgresql' '--enable-l2' '--enable-ipv6' '--enable-plabel' '--enable-mysql' '--enable-pgsql' '--enable-sqlite3' '--enable-rabbitmq' '--enable-zmq' '--enable-kafka' '--enable-geoipv2' '--enable-jansson' '--enable-64bit' '--enable-threads' '--enable-traffic-bins' '--enable-bgp-bins' '--enable-bmp-bins' '--enable-st-bins' '--enable-nflog' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-fcommon' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -ffile-prefix-map=/build/pmacct-Gh56jN/pmacct-1.7.7=. -fstack-protector-strong -Wformat -Werror=format-security'

Libs:
cdada 0.3.5
libpcap version 1.10.3 (with TPACKET_V3)
MariaDB 10.11.2
PostgreSQL 150006
sqlite3 3.40.1
rabbimq-c 0.11.0
rdkafka 2.0.2
jansson 2.14
MaxmindDB 1.7.1
ZeroMQ 4.3.4
netfilter_log

@paololucente
Copy link
Member

Hi @MiniPierre ,

To confirm this is currently not supported. Touching any aspect of the replicated packet would require inspection of the same; this is already supported for some use-cases but mostly in the NetFlow / IPFIX world. This would be a new feature, and not exactly a low hanging fruit. Depending on your interest, ie. you could not work around it in some other way, we could keep the Issue open and mark it as an Enhancement. Let me know!

Paolo

@MiniPierre
Copy link
Author

MiniPierre commented Mar 11, 2024

Hi @paololucente ,

Thanks for your reply. For now we are doing fine enough without it, but we will need this kind of feature if we want to keep our current model with the evolutions we are working on. On the other side, I don't want to take all of your time while we could figure out how to change this model to adapt to the situation. If you think this feature could be of any interest for more people, let's mark it as an Enhancement, if not I wouldn't want to bother you

@paololucente
Copy link
Member

Hi @MiniPierre ,

Thanks for your feedback. I have makred it as enhancement and will let sit here for a bit, let's see if there is further interest into it.

Paolo

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

2 participants