Koozali.org: home of the SME Server

No Direct internet conection

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
No Direct internet conection
« Reply #15 on: August 01, 2006, 10:03:44 PM »
Quote from: "ceebster"
Sucess - mmm - well i am getting closer to the fact i know where squid.conf is - how to vi the squid.conf..........etc - bit of a newbie


Newbies shouldn't use vi. Use pico if you have to. But avoid editing config files.

Quote

My squid.conf file does have alot of lines already in, would the file work if i used a blank one and just added the lines you mentioned as


No, don't do that.

Quote

i just need access direct from the sme box.


And what happens now when you try? What exactly do you see? What do your squid log files show?

Offline ceebster

  • **
  • 40
  • +0/-0
No Direct internet conection
« Reply #16 on: August 01, 2006, 10:20:27 PM »
I will have to look at the logs tomorrow when i get in - but when i at root command, and i try a "wget" to try and down load a "rpm", it find the website and resolves the name but won't down load - it then says "no route through to host"

When i work the other way and use a client xp machine to use the proxy on squid to gain access " proxy name and 3128" in IE lAN settings,  i don't get access to websites, i get the "Apache" unable to connect to host page.

Hope this makes sense.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
No Direct internet conection
« Reply #17 on: August 01, 2006, 10:58:27 PM »
Quote from: "ceebster"
I will have to look at the logs tomorrow when i get in - but when i at root command, and i try a "wget" to try and down load a "rpm", it find the website and resolves the name but won't down load - it then says "no route through to host"


"wget" doesn't use the squid proxy, and you haven't told it to use an upstream cache.

Try:

export  http_proxy "http://upstream.cache.domainname:port/"

then do your wget.

If that works, then do:

export  http_proxy "http://localhost:3128/"

then do your wget again. If the second one works, then squid is correctly configured to use your upstream cache.

Quote

When i work the other way and use a client xp machine to use the proxy on squid to gain access " proxy name and 3128" in IE lAN settings,  i don't get access to websites, i get the "Apache" unable to connect to host page.


If you are seeing an Apache page, then you are successfully connecting to something outside your network, either an Apache website or Apache running as a proxy. If your external proxy is Apache, and it cannot access other outside websites, there's nothing that you can do about it. Contact the administrator of the cache.

Offline raem

  • *
  • 3,972
  • +4/-0
No Direct internet conection
« Reply #18 on: August 02, 2006, 08:39:02 AM »
ceebster

> My squid.conf file does have alot of lines already in, would the file work > if i used a blank one and just added the lines you mentioned....

If you have found the squid.conf file, then you would also see the words that say:
DO NOT MODIFY THIS FILE ! It is updated automatically by the SME Server software....

If you are very careful and know what you are doing, then you can make temporary changes for testing purposes to the config files in many cases, but these will usually not survive as other system changes will override them.

It's much better to make test changes as well as your final changes  to the custom template fragments.
Read the Developers Guide for instructions about this.
http://no.longer.valid/phpwiki/index.php?Development
See the section about Templates and customisation.

Also the old information for sme6 & earlier versions is still of general interest as the concepts are pretty much the same.
http://no.longer.valid/phpwiki/index.php/Architecture%20overview
http://no.longer.valid/phpwiki/index.php/Customizing
...

philipbrooke

Thanks Charlie
« Reply #19 on: November 15, 2006, 04:06:55 PM »
I was having the same problem ceebster, I used the commands you posted and eveything works fine now.

Cheers