[tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-04-09 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+--
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  new
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal|   Keywords:
Actual Points:|  Parent ID:
   Points:  0.5   |   Reviewer:
  Sponsor:|
--+--
 Due to #21900, we need to explicitly specify `ServerDNSResolvConfFile
 /dev/null` for chutney to work on macOS when the network is unavailable.

 We should also set `ServerDNSDetectHijacking 0`.

 This should be the default, because:
 * users who run chutney might not want it using DNS in a detectable
 pattern, and
 * it makes chutney more reliable, because it no longer depends on a
 working DNS.

 Some users will want chutney to be able to use hostnames, so we should add
 a tools/test-network.sh option and environmental variable to re-enable the
 default ServerDNSResolvConfFile setting (or, even better, use a custom
 ServerDNSResolvConfFile).

 There seems to be no reason to turn on ServerDNSDetectHijacking: some
 users might be using chutney with internal DNS names.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-04-09 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+--
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  new
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+--
Changes (by teor):

 * parent:   => #19573


Comment:

 #19573 will use this option.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-05-02 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+--
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  needs_review
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+--
Changes (by teor):

 * status:  new => needs_review


Comment:

 This is fixed in 5adda26 in my branch no-zombies:
 https://github.com/teor2345/chutney/commits/no-zombies

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-05-05 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+--
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  needs_review
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+--

Comment (by nickm):

 That commit seems plausible, though I do wonder why we're making DNS
 broken-by-default.  Would it be better instead to have DNS work by default
 for chutney started from a command line, and have it disabled specifically
 when running tests that won't use it?  (I'll believe  either answer)

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-05-06 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+---
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  needs_information
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+---
Changes (by teor):

 * status:  needs_review => needs_information


Comment:

 Replying to [comment:3 nickm]:
 > That commit seems plausible, though I do wonder why we're making DNS
 broken-by-default.  Would it be better instead to have DNS work by default
 for chutney started from a command line, and have it disabled specifically
 when running tests that won't use it?  (I'll believe  either answer)

 Due to Tor bug #21900, we have two choices:
 * make chutney work offline by default (but break DNS), or
 * allow DNS in chutney by default (but break offline use).

 I don't mind which default we choose, as long as there is a way to flip
 it.
 So I emailed tor-dev to see what other chutney users want.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-05-07 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+---
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  needs_information
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+---

Comment (by teor):

 This is now in no-dns-rebased

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-05-09 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  needs_revision
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+
Changes (by teor):

 * status:  needs_information => needs_revision


Comment:

 I want DNS to work by default in chutney, and I want offline use to work
 even on macOS (and other OSs that have no resolv.conf).

 I think a good way to fix this is to do the thing that will work once
 #21900 is fixed in tor.

 So we should make working DNS the default, and have an --offline option.
 (Or, even better, we could check if the ServerDNSResolvConfFile exists,
 and if it doesn't, we should apply a workaround, which can be switched
 off.)

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-05-21 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  needs_revision
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+

Comment (by teor):

 Here's a design for this:
 * If the default ServerDNSResolvConfFile is missing, or is a symlink with
 a missing target (thanks, Apple!), chutney applies a workaround
 `ServerDNSResolvConfFile /dev/null`
 * An environmental variable can be used to set `ServerDNSResolvConfFile`
   * This can be used to implement --offline: CHUTNEY_DNS_CONF=/dev/null
   * This can be used to implement --dns-conf=X: CHUTNEY_DNS_CONF=X
 * An environmental variable can be used to not set
 `ServerDNSResolvConfFile`
   * This can be used to implement --dns-conf-default: CHUTNEY_DNS_CONF=""

 To fix the crash on SETCONF in #21900, the user needs to supply a DNS conf
 with at least one nameserver.

 To provide a conf that simultaneously:
 * works offline: CHUTNEY_DNS_CONF=/path/to/empty/or/working/conf
 * and doesn't crash on SETCONF:
 CHUTNEY_DNS_CONF=/path/to/conf/with/a/dns/server

 The user must supply a local DNS server that gives the right answers to
 tor (#19573).
 Or we can fix #21900, and just say /dev/null.
 (We should document this in the chutney README.)

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-06-08 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  needs_revision
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+

Comment (by teor):

 In #21989, arma suggests chutney uses ServerDNSDetectHijacking 0. That
 might solve some of these issues, but it certainly won't solve the
 eventdns breakage.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-06-19 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  needs_revision
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+

Comment (by teor):

 Rebased onto master as no-dns-rebased-v2.
 Still need to add `ServerDNSDetectHijacking 0` and implement --offline
 /--dns-auto/--dns-conf=path.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #21903 [Core Tor/Chutney]: Disable DNS in chutney by default, and add an option to enable it

2017-09-11 Thread Tor Bug Tracker & Wiki
#21903: Disable DNS in chutney by default, and add an option to enable it
--+
 Reporter:  teor  |  Owner:  teor
 Type:  defect| Status:  closed
 Priority:  Medium|  Milestone:
Component:  Core Tor/Chutney  |Version:
 Severity:  Normal| Resolution:  fixed
 Keywords:|  Actual Points:
Parent ID:  #19573| Points:  0.5
 Reviewer:|Sponsor:
--+
Changes (by teor):

 * status:  needs_revision => closed
 * resolution:   => fixed


Comment:

 Implemented and merged to master as c889534.

 Replying to [comment:7 teor]:
 > Here's a design for this:
 > * If the default ServerDNSResolvConfFile is missing, or is a symlink
 with a missing target (thanks, Apple!), chutney applies a workaround
 `ServerDNSResolvConfFile /dev/null`
 > * An environmental variable can be used to set `ServerDNSResolvConfFile`
 >   * This can be used to implement --offline: CHUTNEY_DNS_CONF=/dev/null
 >   * This can be used to implement --dns-conf=X: CHUTNEY_DNS_CONF=X
 > * An environmental variable can be used to not set
 `ServerDNSResolvConfFile`
 >   * This can be used to implement --dns-conf-default:
 CHUTNEY_DNS_CONF=""

 This is implemented.

 > To fix the crash on SETCONF in #21900, the user needs to supply a DNS
 conf with at least one nameserver.

 This is documented, and a local resolv.conf is provided by chutney.

 > To provide a conf that simultaneously:
 > * works offline: CHUTNEY_DNS_CONF=/path/to/empty/or/working/conf
 > * and doesn't crash on SETCONF:
 CHUTNEY_DNS_CONF=/path/to/conf/with/a/dns/server
 >
 > The user must supply a local DNS server that gives the right answers to
 tor (#19573).
 > Or we can fix #21900, and just say /dev/null.
 > (We should document this in the chutney README.)

 This is documented, but providing the right DNS answers is out of scope
 for chutney.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs