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

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs