Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: idp_qbn on June 03, 2007, 11:58:43 PM

Title: SME behind Firewall with Proxy ort 800
Post by: idp_qbn on June 03, 2007, 11:58:43 PM
Hi,
I am stumped. I can't find where to tell my SME (server-only) to use Port 800 as its web proxy access.

I am using it as a mail server, and that all works OK.

BUT - I can't get it to update. I think the firewall (IPCOP which is forcing users to go through Port 800 instead of 80 for web access is the problem - and I can't change the Firewall (not mine).
I get the following from a "yum update" in a console session:

==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Update Process
Setting up repositories
http://mirror.contribs.org/smeserver/releases/7/smeaddons/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (97, 'Address family not supported by protocol')>

==============================================================
If I get the Firewall maintainer to allow HTTP access through Port 80, it works. But he won't leave it like that.

Can anyone tell me what to change and where to change it on the SME?

Cheers
Ian
Title: SME behind Firewall with Proxy ort 800
Post by: mmccarn on June 04, 2007, 06:13:45 AM
This post: http://www.fedoraforum.org/forum/showthread.php?s=&threadid=742 describes 3 ways to tell yum to use a proxy...

Quote from: "fedoraforum"
Ok, found the answer. First have to set the environment variable for yum:

http_proxy=proxy:portnum

Then, export the variable:

export http_proxy

Then run yum as usual. Works fine now.


or
Quote from: "fedoraforum"
create the following files in /etc/profile.d, and then this will work in *any* shell for *any* user of the system

#proxy.sh
export http_proxy=http://host.com:port/
export ftp_proxy=http://host.com:port/
export no_proxy=.domain.com
export HTTP_PROXY=http://host.com:port/
export FTP_PROXY=http://host.com:port/

#proxy.csh
setenv http_proxy http://host.com:port/
setenv ftp_proxy http://host.com:port/
setenv no_proxy .domain.com
setenv HTTP_PROXY http://host.com:port/
setenv FTP_PROXY http://host.com:port/


or
Quote from: "fedoraforum"
I just add the following to bash_profile for my main user

# vi ~/.bash_profile

export http_proxy=http://ip:port

And use sudo for the user so I don't have to type anything to get yum to run everday at work.
Title: SME behind Firewall with Proxy ort 800
Post by: idp_qbn on June 04, 2007, 10:33:14 PM
Thanks for that. It worked well..
Now comes the big question: Will it survive a reboot?
Cheers
Ian