Date: Wed, 25 Sep 2002 03:22:24 +0200 (CEST) From: Michael Nottebrock <lofi@lofi.dyndns.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: portmgr@FreeBSD.org Subject: ports/43347: tircproxy's transparent mode broken on 4.7 Message-ID: <200209250122.g8P1MOxl005303@lofi.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 43347 >Category: ports >Synopsis: tircproxy's transparent mode broken on 4.7 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 24 18:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Michael Nottebrock >Release: FreeBSD 4.7-RC i386 >Organization: >Environment: System: FreeBSD lofi.dyndns.org 4.7-RC FreeBSD 4.7-RC #0: Wed Sep 25 00:08:52 CEST 2002 lofi@lofi.dyndns.org:/usr/obj/usr/src/sys/LOFI i386 >Description: tircproxy's transparent proxy-mode is broken again, thanks to the latest ipfilter-update, this update fixes it. This upgrade could be considered important enough to be committed during ports-freeze. >How-To-Repeat: Try to use tircproxy in transparent mode with an ipf rdr-rule on a system with ipfilter 3.4.29. >Fix: diff -urN tircproxy.orig/Makefile tircproxy/Makefile --- tircproxy.orig/Makefile Wed Sep 25 03:10:31 2002 +++ tircproxy/Makefile Wed Sep 25 03:10:39 2002 @@ -7,7 +7,7 @@ PORTNAME= tircproxy PORTVERSION= 0.4.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= irc MASTER_SITES= http://bre.klaki.net/programs/tircproxy/ diff -urN tircproxy.orig/files/patch-ad tircproxy/files/patch-ad --- tircproxy.orig/files/patch-ad Fri Jun 7 22:17:01 2002 +++ tircproxy/files/patch-ad Wed Sep 25 02:58:07 2002 @@ -1,5 +1,5 @@ ---- tircproxy.c.orig Wed Jun 5 19:13:00 2002 -+++ tircproxy.c Wed Jun 5 19:14:46 2002 +--- tircproxy.c.orig Wed Sep 25 02:55:48 2002 ++++ tircproxy.c Wed Sep 25 02:56:17 2002 @@ -131,6 +131,8 @@ # include <netinet/ip_compat.h> # endif @@ -23,14 +23,8 @@ #endif /* Give this thing 10 minutes to get started (paranoia). -@@ -1148,13 +1151,13 @@ - natlook.nl_outip = socketin.sin_addr; - natlook.nl_inip = sloc.sin_addr; - natlook.nl_flags = IPN_TCP; -- natlook.nl_outport = socketin.sin_port; -- natlook.nl_inport = sloc.sin_port; -+ natlook.nl_outport = ntohs(socketin.sin_port); -+ natlook.nl_inport = ntohs(sloc.sin_port); +@@ -1152,9 +1155,9 @@ + natlook.nl_inport = sloc.sin_port; fd = open(IPL_NAT, O_RDONLY); - if (ioctl(fd, SIOCGNATL, &natlook) == -1) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209250122.g8P1MOxl005303>