shadow / tornettools

A tool to generate realistic private Tor network models, run them in Shadow, and analyze the results.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need to explicitly disable ipv6 on tor @ 0.4.5.7

sporksmith opened this issue · comments

Jaym (@frochet:matrix.org) is working with tor-0.4.5.7 and found that it's trying to use ipv6 with the generated configs.

It looks like the phantom CI has "ORPort 9111 IPv4Only" in its tor configs. Maybe we need to add it here too?

I think the IPv4Only flag was added in 0fd1a85, are they using tornettools from the main branch or only the latest release?

torrc_file.write('# for tor v0.4.4.x or earlier\n#ORPort {0}\n# for tor v0.4.5.x or later\nORPort {0} IPv4Only\n'.format(TOR_OR_PORT))
torrc_file.write('DirPort {}\n'.format(TOR_DIR_PORT))
torrc_file.write('SocksPort 0\n')

They actually ran into it using the script in shadow-plugin-tor (shadow/shadow-plugin-tor#120), but said they'd just checked tornettools and saw it didn't generate it either. Maybe they were looking at an older version.

Thanks!