Project

General

Profile

Actions

Bug #4919

closed

squid transparent proxy interface problem

Added by Mikhail Stolyarov almost 10 years ago. Updated over 9 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08/05/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

Hello!
I don't know where to report this =)
I found a problem in squid3 package. In web configuration script (/usr/local/pkg/squid.inc) there is wrong part of configuration transparent proxy. Whatever interface you select - in resul config will always be 127.0.0.1
there is a part of default script code:
if (($settings['transparent_proxy'] 'on')) {
if ($settings['ssl_proxy'] "on" && count($ssl_ifaces)>0) {
$conf .= "http_port 127.0.0.1}:{$port} intercept {$ssl_interception}\n";
$conf .= "https_port 127.0.0.1:{$ssl_port} intercept {$ssl_interception}\n";
} else {
$conf .= "http_port 127.0.0.1:{$port} intercept\n";
}
}

I edited it a little:
if (($settings['transparent_proxy'] 'on')) {
if ($settings['ssl_proxy'] "on" && count($ssl_ifaces)>0) {
$conf .= "http_port {$t_iface_ip0}:{$port} intercept {$ssl_interception}\n";
$conf .= "https_port {$t_iface_ip0}:{$ssl_port} intercept {$ssl_interception}\n";
} else {
$conf .= "http_port {$t_iface_ip0}:{$port} intercept\n";
}
}

Actions #1

Updated by Kill Bill over 9 years ago

This is not a problem, this is by design. NAT is used to redirect the traffic to localhost. Suggested change is just wrong.

Actions #2

Updated by Kill Bill over 9 years ago

Actions #3

Updated by Chris Buechler over 9 years ago

  • Status changed from New to Not a Bug
Actions

Also available in: Atom PDF