Package: transproxy Version: 1.5-1 Severity: wishlist Tags: patch Hello,
The following patch prevents tproxy from trying to parse the client's header when processing a fully transparent request. This makes it possible to use tproxy to proxy protocols other than HTTP. --- tproxy.c.orig 2002-12-02 06:40:14.000000000 -0500 +++ tproxy.c 2005-06-12 00:07:05.000000000 -0400 @@ -1012,7 +1012,6 @@ conn.read_buffer.free_space = sizeof(conn.read_buffer.buffer); conn.request.free_space = sizeof(conn.request.buffer); conn.parse_state = PS_METHOD; - conn.parse_state = PS_METHOD; #if defined(IPTABLES) && defined(__linux__) /* @@ -1105,6 +1104,7 @@ { conn.proxy_fd = connect_to_proxy(conn.dest_addr.sin_addr.s_addr, conn.dest_addr.sin_port); fully_transparent = 1; + conn.parse_state = PS_TRANSPARENT; } else { Thank you, Ken -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11.8 Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8) Versions of packages transproxy depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libwrap0 7.6.dbs-8 Wietse Venema's TCP wrappers libra -- no debconf information -- Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig Mothers are the necessity of invention. --Bill Watterson
signature.asc
Description: Digital signature