[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 ioerror):

 I've used the libminiupnpc-dev library to build tor-fw-helper - so we've
 got that under control. I'm experimenting with a Tor package for 0.2.3.x
 that weasel built and seeing if I can build it with tor-fw-helper and
 libminiupnpc-dev.

 Sadly, I tried:
 {{{
 root@torouter:~/src/tor# apt-get install -t experimental libnatpmp0
 }}}

 And while I have natpmp:
 {{{
 root@torouter:~/src/tor# dpkg -L libnatpmp0
 /.
 /usr
 /usr/bin
 /usr/bin/natpmpc
 /usr/share
 /usr/share/doc
 /usr/share/doc/libnatpmp0
 /usr/share/doc/libnatpmp0/changelog.Debian.gz
 /usr/share/doc/libnatpmp0/changelog.gz
 /usr/share/doc/libnatpmp0/copyright
 /usr/share/man
 /usr/share/man/man1
 /usr/share/man/man1/natpmpc.1.gz
 /usr/lib
 /usr/lib/libnatpmp.so.0
 /usr/lib/libnatpmp.a
 }}}

 I'm missing the headers that make that shared library useful:
 {{{
 configure:7337: checking for libnatpmp directory
 configure:7393: gcc -o conftest -g -O2  -I${top_srcdir}/src/common
 conftest.c -lpthread -ldl  -lnatpmp >&5
 conftest.c:52:20: error: natpmp.h: No such file or directory
 conftest.c: In function 'main':
 conftest.c:57: error: 'natpmp_t' undeclared (first use in this function)
 conftest.c:57: error: (Each undeclared identifier is reported only once
 conftest.c:57: error: for each function it appears in.)
 conftest.c:57: error: expected ';' before 'natpmp'
 conftest.c:58: error: 'natpmpresp_t' undeclared (first use in this
 function)
 conftest.c:58: error: expected ';' before 'response'
 conftest.c:59: error: 'natpmp' undeclared (first use in this function)
 }}}

 If I install that libnatpmp package and I manually copy over
 '''natpmp.h''' to '''/usr/include/natpmp.h''' - everything works:


 {{{
 root@torouter:~/src/tor# ./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
 tor-fw-helper: UPnP GetValidIGD returned: 1 (SUCCESS)
 V: natpmp init...
 tor-fw-helper: natpmp initialized...
 tor-fw-helper: 2 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: miniupnp
 tor-fw-helper: ExternalIPAddress = 1.2.3.4
 tor-fw-helper: tor_fw_fetch_public_ip backend miniupnp  returned: 0
 V: running backend_state now: 1
 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 0
 tor-fw-helper: ExternalIPAddress = 1.2.3.4
 V: result = 0
 V: type = 0
 V: resultcode = 0
 V: epoch = 1308613613
 tor-fw-helper: tor_fw_fetch_public_ip backend natpmp  returned: 0
 tor-fw-helper: SUCCESS
 }}}

 Also on my DreamPlug this is how long it takes to build Tor:
 {{{
 real    8m53.998s
 user    8m0.860s
 sys     0m8.380s
 }}}

 However, please note that my natpmp patch *must* be applied for tor-fw-
 helper to build with natpmp support. I think we need to merge that patch
 and call it the absolute minimum version of the library we support.

 So perhaps we can file a bug against the natpmp package or ask for a
 libnatpmp0-dev package and then we're good to go?

 Here's my current sources.list file:
 {{{
 root@torouter:~# cat /etc/apt/sources.list
 deb http://ftp.de.debian.org/pub/debian/ squeeze main non-free contrib
 deb-src http://ftp.de.debian.org/pub/debian/ squeeze main non-free contrib
 deb http://security.debian.org/ squeeze/updates main

 # experimental for natpmp
 deb http://ftp.debian.org/debian experimental main
 deb-src http://ftp.debian.org/debian experimental main

 # backports for upnp
 deb http://backports.debian.org/debian-backports squeeze-backports main

 # Tor project repo
 deb http://deb.torproject.org/torproject.org/ squeeze main
 deb-src http://deb.torproject.org/torproject.org squeeze main
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3378#comment:11>
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