[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #3378 [Torouter]: Tor 0.2.3.x and tor-fw-helper



#3378: Tor 0.2.3.x and tor-fw-helper
----------------------+-----------------------------------------------------
 Reporter:  runa      |          Owner:  ioerror
     Type:  task      |         Status:  new    
 Priority:  normal    |      Milestone:         
Component:  Torouter  |        Version:         
 Keywords:            |         Parent:         
   Points:            |   Actualpoints:         
----------------------+-----------------------------------------------------

Comment(by murble):

 I've built with libminiupnpc-dev / libminiupnpc5 and ./tor-fw-helper  -v
 -g works fine. The router here is a very common router in the UK (sky adsl
 router: vendor/model/firmwareversion Sagemcom/F@ST2304/5.14.6.1a4N).

 When built with libnatpmp-dev / libnatpmp1 i get the following:

 tor-0.2.3.3-alpha/src/tools/tor-fw-helper$ ./tor-fw-helper  -v -g

 V: tor-fw-helper version 0.1

 V: We were called with the following arguments:

 V: verbose = 1, help = 0, pub or port = 0, priv or port = 0

 V: pub dir port =  0, priv dir port = 0

 V: fetch_public_ip = 1

 V: We have no !DirPort; no hole punching for !DirPorts

 V: pub or port = 0, priv or port = 0

 V: pub dir port =  0, priv dir port = 0

 V: natpmp init...

 tor-fw-helper: natpmp initialized...

 tor-fw-helper: 1 NAT traversal helper(s) loaded

 V: tor_fw_fetch_public_ip

 V: running backend_state now: 0

 V: size of backend state: 76

 V: backend state name: natpmp

 tor-fw-helper: NAT-PMP sendpublicaddressrequest returned 2 (SUCCESS)

 V: NAT-PMP attempting to read reponse...

 V: NAT-PMP readnatpmpresponseorretry returned -7

 E: NAT-PMP readnatpmpresponseorretry failed -7

 E: NAT-PMP errno=111 'Connection refused'

 E: NAT-PMP It appears that something went wrong: -7

 tor-fw-helper: tor_fw_fetch_public_ip backend natpmp  returned: -7

 tor-fw-helper: FAILURE

 The test programme included with the libnatpmp1 package also fails with
 the following:

   /usr/bin/natpmpc

 initnatpmp() returned 0 (SUCCESS)

 using gateway : 10.82.23.1

 sendpublicaddressrequest returned 2 (SUCCESS)

 readnatpmpresponseorretry returned -7 (FAILED)

 readnatpmpresponseorretry() failed : the gateway does not support nat-pmp

   errno=111 'Connection refused'

 The same router when built with the libminiupnpc-dev lib:

 ./tor-fw-helper  -g -v

 V: tor-fw-helper version 0.1

 V: We were called with the following [arguments:V arguments:]

 [arguments:V]: verbose = 1, help = 0, pub or port = 0, priv or port = 0V:
 pub dir port =  0, priv dir port = 0

 V: fetch_public_ip = 1

 V: We have no !DirPort; no hole punching for ! DirPorts

 V: pub or port = 0, priv or port = 0

 V: pub dir port =  0, priv dir port = 0

 tor-fw-helper: UPnP GetValidIGD returned: 1 (SUCCESS)

 tor-fw-helper: 1 NAT traversal helper(s) loaded

 V: tor_fw_fetch_public_ip

 V: running backend_state now: 0

 V: size of backend state: 2388

 V: backend state name: miniupnptor-fw-helper: ExternalIPAddress =
 [censored]

 tor-fw-helper: tor_fw_fetch_public_ip backend miniupnp  returned: 0

 tor-fw-helper: SUCCESS

 Without any further investigation it my guess is that libnatpmp-dev is a
 less complete library.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3378#comment:16>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs