From owner-freebsd-questions Wed Sep 6 11:54:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id E2C4B37B422 for ; Wed, 6 Sep 2000 11:54:44 -0700 (PDT) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G0H00M01B643Z@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Wed, 6 Sep 2000 11:54:05 -0700 (PDT) Received: from ldcmsx01.lc.ca.gov ([165.107.11.191]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with ESMTP id <0G0H00MD1B642T@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Wed, 06 Sep 2000 11:54:04 -0700 (PDT) Received: by ldcmsx01.lc.ca.gov with Internet Mail Service (5.5.2650.21) id ; Wed, 06 Sep 2000 11:54:35 -0700 Content-return: allowed Date: Wed, 06 Sep 2000 11:54:34 -0700 From: "Tomlinson, Drew" Subject: How to Tell FBSD to Use Proxy Server - STILL STUCK To: "'igorr@crosswinds.net'" , "'FreeBSD Questions (E-mail)'" , 'Lowell Gilbert' Message-id: <8C224DC088D8D111B67D0000F67AC17E029C4A3B@ldcmsx01.lc.ca.gov> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: MULTIPART/ALTERNATIVE; BOUNDARY="Boundary_(ID_qkII0W2iGLIexbq7dVs+wg)" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --Boundary_(ID_qkII0W2iGLIexbq7dVs+wg) Content-type: text/plain Thank you and the others for your responses. However, I am still stuck. My shell is tsch. I have tried setting the variables using both 'set' and 'setenv'. If I understand correctly, 'set' is for my login environment and 'setenv' is for the system environment. From what I get from 'man ftp', I think I'm supposed to use 'setenv'. Is this correct? After setting the variables, I can verify that they exist by using either the 'set' or 'setenv' as appropriate. I am using the variable 'ftp_proxy' and ensuring it is lower case as indicated by 'man' and I have used both the IP address and the machine name. The FreeBSD can ping and connect to the Win 2K so I know the network portion is functioning. My Win 2K machine has IP of 192.168.0.254 and is named 'bigdaddy'. Proxy services on the Win 2K machine are set to the normal ports. Other Windows machines on my network can use the proxy without problems so I am sure it's the FreeBSD machine that is not configured correctly. -----Original Message----- From: Igor Roboul [mailto:igor@raduga.dyndns.org] Sent: Tuesday, September 05, 2000 10:02 PM To: 'FreeBSD Questions (E-mail)' Subject: Re: How to Tell FBSD to Use Proxy Server On Tue, Sep 05, 2000 at 03:36:03PM -0700, Tomlinson, Drew wrote: > I'm not sure I'm making sense but I want to start an ftp session on my > FreeBSD box. My FreeBSD box is only connected via LAN to my Win 2K machine. > The Win 2K machine has an Internet connection and is running proxy server > software (Wingate). I want FreeBSD to connect to the Internet through the > Win 2K machine. Hello, this is not so common :-) Normal way is to use FreeBSD as gate, but there is so nice command by name 'man' (shor of manual) Just say "man ftp" (without quotes on shell prompt) Then search (hit /) for proxy You'll find (near end of manual): ftp_proxy URL of FTP proxy to use when making FTP URL requests (if not defined, use the standard ftp protocol). http_proxy URL of HTTP proxy to use when making HTTP URL requests. To set environment variable use 'setenv ftp_proxy _something_' if your shell is csh/tcsh or 'export ftp_proxy=_something_' if your shell is sh/bash/zsh etc. Place these commands to your starup file (.login for csh or .profile for sh) And, please, before asking something look into documentation. There is so nice command 'man'. Good luck. -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message --Boundary_(ID_qkII0W2iGLIexbq7dVs+wg) Content-type: text/html Content-transfer-encoding: quoted-printable How to Tell FBSD to Use Proxy Server - STILL STUCK

Thank you and the others for your responses.  = However, I am still stuck.

My shell is tsch.  I have tried setting the = variables using both 'set' and 'setenv'.  If I understand = correctly, 'set' is for my login environment and 'setenv' is for the = system environment.  From what I get from 'man ftp', I think I'm = supposed to use 'setenv'.  Is this correct?  After setting = the variables, I can verify that they exist by using either the 'set' = or 'setenv' as appropriate.  I am using the variable 'ftp_proxy' = and ensuring it is lower case as indicated by 'man' and I have used = both the IP address and the machine name.  The FreeBSD can ping = and connect to the Win 2K so I know the network portion is = functioning.

My Win 2K machine has IP of 192.168.0.254 and is = named 'bigdaddy'.  Proxy services on the Win 2K machine are set to = the normal ports.  Other Windows machines on my network can use = the proxy without problems so I am sure it's the FreeBSD machine that = is not configured correctly.

-----Original Message-----
From: Igor Roboul [mailto:igor@raduga.dyndns.org= ]
Sent: Tuesday, September 05, 2000 10:02 PM
To: 'FreeBSD Questions (E-mail)'
Subject: Re: How to Tell FBSD to Use Proxy = Server


On Tue, Sep 05, 2000 at 03:36:03PM -0700, Tomlinson, = Drew wrote:
> I'm not sure I'm making sense but I want to = start an ftp session on my
> FreeBSD box.  My FreeBSD box is only = connected via LAN to my Win 2K machine.
> The Win 2K machine has an Internet connection = and is running proxy server
> software (Wingate).  I want FreeBSD to = connect to the Internet through the
> Win 2K machine.
Hello,
this is not so common :-) Normal way is to use = FreeBSD as gate, but
there is so nice command by name 'man' (shor of = manual)
Just say "man ftp" (without quotes on = shell prompt)
Then search (hit /) for proxy
You'll find (near end of manual):

     = ftp_proxy         URL of FTP = proxy to use when making FTP URL requests
          &nb= sp;            = (if not defined, use the standard ftp protocol).

     = http_proxy        URL of HTTP proxy = to use when making HTTP URL requests.

To set environment variable use 'setenv ftp_proxy = _something_' if your shell
is csh/tcsh or 'export ftp_proxy=3D_something_' if = your shell is sh/bash/zsh etc.
Place these commands to your starup file (.login for = csh or .profile for sh)

And, please, before asking something look into = documentation. There is so
nice command 'man'.

Good luck.

--
Igor Roboul, Unix System Administrator & = Programmer @ sanatorium "Raduga",
Sochi, Russia
http://www.brainbench.com/transcript.jsp?pid=3D304744<= /A>


To Unsubscribe: send mail to = majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in = the body of the message

--Boundary_(ID_qkII0W2iGLIexbq7dVs+wg)-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message