libpcap
libpcap copied to clipboard
rpcapd-config additional field additionals for future from examples found online
I saw this mentioned in ExtraHop's configuration for their customized version of rpcapd.
ActiveClient = 10.10.6.45, 2003, ifname=eth0
ActiveClient = 10.10.6.45, 2003, ifaddr=10.10.2.0/24
UserName = rpcapd
also think I saw the UserName
parameter somewhere before, just don't recall the other sites.
For ifname
and ifaddr
, maybe could also be used for PassiveClient? And maybe they could be used standalone and not attached to particular active/passive clients?
I think maybe could be useful to be able to restrict to returning only specified interfaces rather than the whole list of possible interfaces when a client requests for it. And to only permit captures to specified interfaces for locking down system.
As for username, just sharing what I found/observed. I'm not aware how we could utilize it for rpcapd here, as username is technically tied to the user account running the daemon. Maybe specifying it in config is some way to provide alternate user credential to use or different way to launch the daemon against another user account, things relating to su, sudo, or doas? I don't know if there was meant to be a password or equivalent alternative field (since password in config would be plain text), in the examples found online, only saw username field.
Maybe these params could also be CLI options and not just config file parameters.