[Bug 256917] ftp-proxy doesn't work properly

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 01 Jul 2021 08:37:10 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256917

Kristof Provost <kp_at_freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kp_at_freebsd.org
             Status|New                         |In Progress
           Assignee|bugs_at_FreeBSD.org            |kp_at_freebsd.org

--- Comment #1 from Kristof Provost <kp_at_freebsd.org> ---
Can you test this: 

diff --git a/contrib/pf/ftp-proxy/filter.c b/contrib/pf/ftp-proxy/filter.c
index dad6324808bc..e4787985e99f 100644
--- a/contrib/pf/ftp-proxy/filter.c
+++ b/contrib/pf/ftp-proxy/filter.c
_at__at_ -103,8 +103,7 _at__at_ add_nat(u_int32_t id, struct sockaddr *src, struct sockaddr
*dst,
                    &satosin6(nat)->sin6_addr.s6_addr, 16);
                memset(&pfp.addr.addr.v.a.mask.addr8, 255, 16);
        }
-       if (pfctl_add_rule(dev, &pfrule, pfanchor, pfanchor_call,
-           pfticket, pfpool_ticket))
+       if (ioctl(dev, DIOCADDADDR, &pfp) == -1)
                return (-1);

        pfrule.rpool.proxy_port[0] = nat_range_low;
_at__at_ -138,8 +137,7 _at__at_ add_rdr(u_int32_t id, struct sockaddr *src, struct sockaddr
*dst,
                    &satosin6(rdr)->sin6_addr.s6_addr, 16);
                memset(&pfp.addr.addr.v.a.mask.addr8, 255, 16);
        }
-       if (pfctl_add_rule(dev, &pfrule, pfanchor, pfanchor_call,
-           pfticket, pfpool_ticket))
+       if (ioctl(dev, DIOCADDADDR, &pfp) == -1)
                return (-1);

        pfrule.rpool.proxy_port[0] = rdr_port;

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Thu Jul 01 2021 - 08:37:10 UTC

Original text of this message