Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Steve Leeke on November 11, 2001, 10:19:39 PM
-
Does anyone know if e-smith-transproxy-0.3-1.noarch.rpm is compatible w/ V5? I would like to upgrade, but I can not seem to get Transproxy working.
Steve
-
This may be as simple as making sure the server-gateway IP address is the default 192.168.1.1. I haven't tested it but this was the fix for the same problem on v4.1.2.
-
I gave it a test. Works on sme5 if you have only one local network.
-
Filippo Carletti wrote:
> I gave it a test. Works on sme5 if you have only one local
> network.
So, if I understand it well, Transproxy still do not support multiple local networks... I noticed this problem, told the author about it and sent him a fix.
To whom it may concern, on my 4.0.1 I did what follows:
1. copied 20-src-local from /etc/e-smith/templates/usr/local/squidGuard/squidGuard.conf to /etc/e-smith/templates-custom/usr/local/squidGuard/squidGuard.conf
2. edited it to show as follows:
---------- 8< ----------
{
#--------------------------------------------------
# Compute local IP address and netmask values.
#--------------------------------------------------
my $ipaddrBits = esmith::util::IPquadToAddr ($LocalIP);
my $netmaskBits = esmith::util::IPquadToAddr ($LocalNetmask);
$network = esmith::util::IPaddrToQuad ($ipaddrBits & $netmaskBits);
$broadcast = esmith::util::IPaddrToQuad ($ipaddrBits | (~ $netmaskBits));
"";
}
# local computers
src local \{
ip { "$network/$LocalNetmask"; }
{
#--------------------------------------------------
# Compute local networks IP addresses and netmasks
#--------------------------------------------------
my %networks;
tie %networks, 'esmith::config', '/home/e-smith/networks';
my $key;
my $value;
my @networkList = ();
while (($key,$value) = each %networks)
{
my ($type, %properties) = split (/\|/, $value, -1);
if ($type eq 'network')
{
push (@networkList, $key);
}
}
my $numNetworks = @networkList;
if ($numNetworks > 0)
{
my $network;
foreach $network (sort @networkList)
{
my $value = $networks {$network};
my ($type, %properties) = split (/\|/, $value, -1);
$OUT .= " ip\t\t$network/$properties{'Mask'}\n"
}
}
"";
}
\}
---------- 8< ----------
3. added the necessary links for network change processing; as root:
# cd /etc/e-smith/events/network-create
# ln -s ../actions/conf-squidGuard S55conf-squidGuard
# cd /etc/e-smith/events/network-delete
# ln -s ../actions/conf-squidGuard S55conf-squidGuard
Now, everytime the local network list gets changed the squidGuard config file is recreated, including local networks in the authorized ones.
HTH...
--
Pierluigi Miranda
-
Beware: my Outlook Express (or something else on the way) mangled the 20-src-local fragment... so don't trust what you get in your mailbox, and refer to the forum on this ESSG bulletin board.
Sorry...
--
Pierluigi Miranda
-
> > I gave it a test. Works on sme5 if you have only one local
> > network.
>
> So, if I understand it well, Transproxy still do not support
> multiple local networks... I noticed this problem, told the
> author about it and sent him a fix.
Yes, but simply because of a variable typo.
File 35transproxy, line 21 and 26, change key to network.
> To whom it may concern, on my 4.0.1 I did what follows:
If I understand, your fix involves tp and squidguard.
Ciao,
Filippo
-
Filippo Carletti wrote:
> If I understand, your fix involves tp and squidguard.
Oops! You are absolutely right, I got a crab.
Sorry... :(
--
Pierluigi Miranda