Opened 9 months ago

Last modified 7 months ago

#28307 new defect

DisableNetwork is set

Reported by: Cyber 404 Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

when i try to open tor i see this log

[NOTICE] DisableNetwork is set. Tor will not make or accept non-control network connections. Shutting down all existing connections.

and this

Delaying directory fetches: DisableNetwork is set.

and i don't see any disable network words in any torcc file, how can i fix it?

Child Tickets

Change History (3)

comment:1 Changed 8 months ago by nickm

You might not be using the torrc file that you think you are, or some other program that is running Tor for you might be configuring it.

How are you launching Tor? And are there any log messages about where Tor is finding its torrc file?

comment:2 Changed 8 months ago by nickm

Component: - Select a componentCore Tor/Tor
Milestone: Tor: unspecified

comment:3 Changed 7 months ago by dcf

[NOTICE] DisableNetwork is set.

This is a normal message when running Tor Browser. If everything else works, there is no problem.

Tor Browser sets DisableNetwork=1 via the control port. It doesn't set it in torrc, which is why you didn't see it there.
https://gitweb.torproject.org/tor-launcher.git/tree/src/components/tl-process.js?id=49df74bbb79cec5c5505abe0e174117eb509c9cc#n474

      // Start tor with networking disabled if first run or if the
      // "Use Default Bridges of Type" option is turned on.  Networking will
      // be enabled after initial settings are chosen or after the default
      // bridge settings have been configured.
      [...]
      if (aForceDisableNetwork || TorLauncherUtil.shouldShowNetworkSettings ||
          defaultBridgeType)
      {
        args.push("DisableNetwork");
        args.push("1");
      }

https://gitweb.torproject.org/tor-launcher.git/tree/src/chrome/content/network-settings.js?id=49df74bbb79cec5c5505abe0e174117eb509c9cc#n1892

  // Tell tor to disable use of the network; this should stop the bootstrap
  // process.
  const kErrorPrefix = "Setting DisableNetwork=1 failed: ";
  try
  {
    let settings = {};
    settings["DisableNetwork"] = true;
    let errObj = {};
    if (!gProtocolSvc.TorSetConfWithReply(settings, errObj))
      TorLauncherLogger.log(5, kErrorPrefix + errObj.details);
  }
  catch(e)
  {
    TorLauncherLogger.log(5, kErrorPrefix + e);
  }
Note: See TracTickets for help on using tickets.