[tor-bugs] #10267 [Tor]: [PATCH] Fixed transparent proxy destination lookup on FreeBSD

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Apr 11 18:29:47 UTC 2015


#10267: [PATCH] Fixed transparent proxy destination lookup on FreeBSD
--------------------------+---------------------------------------------
     Reporter:  yurivict  |      Owner:
         Type:  defect    |     Status:  reopened
     Priority:  normal    |  Milestone:  Tor: 0.2.5.x-final
    Component:  Tor       |    Version:  Tor: unspecified
   Resolution:            |   Keywords:  025-triaged, andrea-review-0254
Actual Points:            |  Parent ID:
       Points:            |
--------------------------+---------------------------------------------
Changes (by yurivict271):

 * status:  closed => reopened
 * resolution:  implemented =>
 * type:  enhancement => defect


Comment:

 My original patch for this ticket was lost, and this ticket was
 erroneously closed.
 tor git head still doesn't have it.

 On FreeBSD /dev/pf is the second firewall, the native firewall is ipfw,
 and it should be supported. Missing /dev/pf is *not* an error.

 This particular section fails on FreeBSD:
 {{{
 #ifdef OPENBSD
   /* only works on OpenBSD */
   pf = tor_open_cloexec("/dev/pf", O_RDONLY, 0);
 #else
   /* works on NetBSD and FreeBSD */
   pf = tor_open_cloexec("/dev/pf", O_RDWR, 0);
 #endif

   if (pf < 0) {
     log_warn(LD_NET, "open(\"/dev/pf\") failed: %s", strerror(errno));
     return -1;
   }
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10267#comment:15>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list