Opened 2 years ago

Last modified 23 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:


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 2 years 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 2 years ago by nickm

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

comment:3 Changed 23 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.

      // 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 ||

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