Koozali.org: home of the SME Server

Enabling Transparent Proxy

Dan Treacy

Enabling Transparent Proxy
« on: June 14, 2002, 12:00:14 AM »
In an act of combined stupidity and mistaken ssh windows I've diabled transparent proxying on my main gateway box instead of the test box it was intended for.

I've had a look around and although finding how to disable it was easy finding how to re-enable it seems a little harder. I guess I could ferret around in the sources etc.. and probably work it out but what seemed to be the logical "opposite" command stopped EVERYONE from getting anywhere on the net.. woops! :-)

So could someone hit me with a cluestick and tell me the command to re-enable the transparent proxying .

Your help would be much appreciated.

Dan.

Dan G.

Re: Enabling Transparent Proxy
« Reply #1 on: June 14, 2002, 12:05:50 AM »
Have you bounced the squid service, then made sure it re-started without error?  I've disabled and re-enabled proxying without trouble, but simply reversing the db configuration command.

Dan Treacy

Re: Enabling Transparent Proxy
« Reply #2 on: June 14, 2002, 12:39:26 AM »
hmmm might have to look at it again then if that's all it took.

Thanks.

Dan Treacy

Re: Enabling Transparent Proxy
« Reply #3 on: June 14, 2002, 01:01:46 AM »
Well that was a fairly abysmal failure.

Ran the command

/sbin/e-smith/db configuration setprop squid Transparent yes

(with the yes changed from no in the FAQ to disable)

then followed up with

/sbin/e-smith/signal-event remoteaccess-update

which I assume restarts squid etc. (of course I'm probably assuming wrong)

Then to be entirely Microsoftian in my outlook :-)  I rebooted. No-one is using the machine so no dramas.

The charge up faithful galeon (the home page is google and that was what tried to load)  and we get.

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: /

The following error was encountered:

* Invalid URL

Some aspect of the requested URL is incorrect. Possible problems:

    * Missing or incorrect access protocol (should be http://'' or similar)
    * Missing hostname
    * Illegal double-escape in the URL-Path
* Illegal character in hostname; underscores are not allowed

Your cache administrator is admin@
Generated Thu, 13 Jun 2002 19:50:42 GMT by bluntman. (Squid/2.3.STABLE4)

no go :-(

I go back in and run the same commands except swap the yes for a no and it works again no reboot or anything.

Anything glaring obvious to you that I'm missing...

Dan.

Dan Brown

Re: Enabling Transparent Proxy
« Reply #4 on: June 14, 2002, 01:18:52 AM »
Just in case it got turned off entirely somehow, try

/sbin/e-smith/db configuration setprop squid status enabled

...followed by the remote-update and so forth.

Dan Treacy

Re: Enabling Transparent Proxy
« Reply #5 on: June 14, 2002, 01:44:57 AM »
well that seemed to work.... to a degree

squid is running & I can connect. I'm pretty sure squid was running before however.

Is there any way to check whether the trans. proxying is on or off??

Dan.
(I gotta say this the first time I had a conversation with 3 Dans :-) )

Dan Brown

Re: Enabling Transparent Proxy
« Reply #6 on: June 14, 2002, 06:05:49 PM »
You should be able to check that by running

/sbin/e-smith/db configuration show squid

and see if Transparent is set to Yes or No.