You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some simulations I'm running, and also for testing #5, I find it handy to have shadow generate pcap files. At the moment, I have to generate the network with tornettools, and then manually add the pcap_directory option to those hosts that I want to debug (e.g. hiddenservices).
I think we could add a new --pcap option to the generation phase.
It could be an all-or-nothing, i.e. if --pcap is passed at generation phase, then we prepare a pcap subfolder for each host, and we add a pcap_directory option to all the generated hosts pointing to their pcap subfolder.
or it could be selective, i.e. could take a comma separated list of parameters among servers,hiddenservices,clients, etc (e.g. --pcap servers,hiddenservices will enable pcap dumping only for servers and hiddenservices, etc.)
Thoughts?
I can work on a PR for this if you think it's useful and you confirm the behavior your prefer.
The text was updated successfully, but these errors were encountered:
This seems useful, but I'm not sure how many of Shadow's configuration options we want to expose as tornettools options. Maybe there's a nicer way we could allow the user to customize any part of Shadow's configuration options?
@robgjansen Have you thought about providing an API for tornettools so that you could build networks programmatically, allowing users to add their own customizations before generating the final files? Or did you want tornettools to stick to a CLI tool only?
tornettools is designed primarily to generate a Tor network config that is as close as possible to the Tor network. It sounds like a really big mess and a lot of maintenance overhead to try to add every option that Shadow supports to tornettools, so I would rather not expand tornettools that way.
Given that we have a tornettools generated config, how to customize that config for specific use-cases is somewhat of a separate issue. I think it's a very easy script to loop over the hosts and add specific options. We could just provide an example of how to do this for a specific config (e.g., adding the pcap option), and then users can use that exampling as a starting point and edit it if they want to tweak the config in other ways.
build networks programmatically
This does sound useful, but I don't think its worth being given priority over other more important work at this point. I think the example script described above already gets us most of the way there and is less rigid than tornettools would become if we rely on it to know about all of the possible shadow options.
For some simulations I'm running, and also for testing #5, I find it handy to have shadow generate pcap files. At the moment, I have to generate the network with tornettools, and then manually add the
pcap_directory
option to those hosts that I want to debug (e.g. hiddenservices).I think we could add a new
--pcap
option to the generation phase.It could be an all-or-nothing, i.e. if
--pcap
is passed at generation phase, then we prepare apcap
subfolder for each host, and we add apcap_directory
option to all the generated hosts pointing to theirpcap
subfolder.or it could be selective, i.e. could take a comma separated list of parameters among
servers
,hiddenservices
,clients
, etc (e.g.--pcap servers,hiddenservices
will enable pcap dumping only forservers
andhiddenservices
, etc.)Thoughts?
I can work on a PR for this if you think it's useful and you confirm the behavior your prefer.
The text was updated successfully, but these errors were encountered: