rustybird / corridor

Tor traffic whitelisting gateway
ISC License
68 stars 6 forks source link

/etc/torrc.d/ vs bridges grep? #42

Closed adrelanos closed 5 years ago

adrelanos commented 5 years ago
BRIDGES=`grep -Ei '^[[:space:]]*Bridge[[:space:]]' /usr/local/etc/torrc.d/*`

Doesn't work anymore.

Know any line that works with /etc/torrc.d/?

rustybird commented 5 years ago

Looks like the whole approach of parsing the tor configuration is pretty much broken. With %include directives, configuration files could reasonably be anywhere on the file system.

I'm leaning towards just deleting 20-bridges-auto.conf and replacing it with a 20-bridges.conf.EXAMPLE file (which would show the syntax of the BRIDGES variable).

adrelanos commented 5 years ago

Would

BRIDGES="\
Bridge 1.2.3.4:443
Bridge 2.3.4.5:443
"

Work?

rustybird commented 5 years ago

Yup, see v0.11.7. (The backslash is not necessary.)

adrelanos commented 5 years ago

Using backslash here to simplify the syntax for users.

https://www.whonix.org/wiki/Corridor#Optional:_BridgeFirewall_corridor_Configuration