Opened 12 years ago

Last modified 7 years ago

#599 closed defect (Fixed)

0.2.0.18-alpha can't create a server behind NAT automatically

Reported by: phobos Owned by:
Priority: Low Milestone: 0.2.0.x-rc
Component: Core Tor/Tor Version: 0.2.0.18-alpha
Severity: Keywords:
Cc: phobos, nickm, arma Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

It appears 0.2.0.18-alpha can't detect my external IP address while behind NAT. Exact same torrc works in 0.2.0.16-alpha.

Feb 04 22:05:17.479 [Info] resolve_my_address(): Guessed local hostname 'mini.local' resolves to a private IP address (172.16.31.3). Trying something else.
Feb 04 22:05:17.483 [Info] get_interface_address6(): connect() failed: Invalid argument
Feb 04 22:05:17.486 [Info] resolve_my_address(): Could not get local interface IP address. Too bad.
Feb 04 22:05:17.490 [Info] resolve_my_address(): Address 'mini.local' resolves to private IP address '172.16.31.3'. Tor servers that use the default DirServers must have public IP addresses.
Feb 04 22:05:17.494 [Info] router_pick_published_address(): Could not determine our address locally. Checking if directory headers provide any hints.
Feb 04 22:05:17.500 [Info] router_pick_published_address(): No hints from directory headers either. Will try again later.
Feb 04 22:05:29.379 [Notice] Opening OR listener on 0.0.0.0:8443
Feb 04 22:05:29.383 [Notice] Opening Directory listener on 0.0.0.0:8080

I configured everything via Vidalia only. I know I can put in the external IP, but as the external IP is on DHCP, it changes every few days.

[Automatically added by flyspray2trac: Operating System: OSX 10.4 Tiger]

Child Tickets

Change History (8)

comment:1 Changed 12 years ago by phobos

And as a follow up, 0.2.0.17-alpha works fine:
Feb 04 22:32:16.363 [Info] resolve_my_address(): Guessed local hostname 'mini.local' resolves to a private IP address (172.16.31.3). Trying something else.
Feb 04 22:32:16.408 [Info] get_interface_address6(): connect() failed: Invalid argument
Feb 04 22:32:16.453 [Info] resolve_my_address(): Could not get local interface IP address. Too bad.
Feb 04 22:32:16.498 [Info] resolve_my_address(): Address 'mini.local' resolves to private IP address '172.16.31.3'. Tor servers that use the default DirServers must have public IP addresses.
Feb 04 22:32:16.543 [Info] router_pick_published_address(): Could not determine our address locally. Checking if directory headers provide any hints.

Feb 04 22:32:18.880 [Info] consider_testing_reachability(): Testing reachability of my ORPort: 71.174.119.222:8443.
Feb 04 22:32:19.679 [Info] circuit_testing_failed(): Our testing circuit (to see if your ORPort is reachable) has failed. I'll try again later.

Feb 04 22:32:20.744 [Notice] Self-testing indicates your DirPort is reachable from the outside. Excellent.
Feb 04 22:33:16.879 [Notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor.
Feb 04 22:33:17.957 [Info] consider_testing_reachability(): Testing bandwidth of my ORPort: 71.174.119.222:8443.

comment:2 Changed 12 years ago by phobos

same problem in 0.2.0.19-alpha. It appears I can cause this to happen by having prefertunneldirconns and tunneldirconns
set in the torrc. If I remove them, bridge and non-exit node configurations work fine.

comment:3 Changed 12 years ago by nickm

Roger: could this be caused by the same problem as bug 609? ISTR that your fix that caused
bug 609 went in at about the right time to cause this.

comment:4 Changed 12 years ago by arma

Nick: Yes, I think so.

Andrew: I may have fixed this in r13688. Can you confirm/deny?

comment:5 Changed 12 years ago by nickm

See also bug 612.

comment:6 Changed 12 years ago by arma

I'm going to call this fixed. Closing. Andrew should reopen if he experiences
the same problems again.

(This problem isn't fixed for bridge relays, since they aren't supposed to talk
to the authorities. So be it. Bridges will have to wait until they can learn
their IP address from netinfo cells.)

comment:7 Changed 12 years ago by arma

flyspray2trac: bug closed.

comment:8 Changed 7 years ago by nickm

Component: Tor RelayTor
Note: See TracTickets for help on using tickets.