LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-11-2005, 04:00 PM   #1
FrayAdjacent
Member
 
Registered: Feb 2005
Location: Austin, TX
Distribution: Fedora Core 3
Posts: 34

Rep: Reputation: 15
Proxytunnel issues


So I'm trying to set the environment variable for a proxy, since everything from work has to go through a proxy.

so I've tried

#export http_proxy=http://usernameassword@proxy.company.com:80

When I run env, it lists the line above (sans 'export'), but when I try to do anything that would have to go through the proxy (ssh to an external host), it times out.

Is the syntax above correct for setting the proxy variable?

Last edited by FrayAdjacent; 07-13-2005 at 02:58 PM.
 
Old 07-11-2005, 06:41 PM   #2
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
looks correct to me

if you are trying to use proxytunnel for ssh it will need to be in a config file (not sure of the name)

~/.ssh/something

when i get to work i will check my config and provide an update on the structure and name of the file

hope this helps
 
Old 07-11-2005, 07:04 PM   #3
FrayAdjacent
Member
 
Registered: Feb 2005
Location: Austin, TX
Distribution: Fedora Core 3
Posts: 34

Original Poster
Rep: Reputation: 15
I downloaded proxytunnel, but the packaging isn't very intuitive... there's no make file, no config file... I have no idea how to install it.

I was just hoping that SSH would go through a proxy if the proxy was set in an environment variable. A couple of my linux gurus here confer that it should work, I just wanted to be sure the syntax of the export command was correct.

If anyone has any pointers on how to install proxytunnel in FC3/4, let me know!
 
Old 07-11-2005, 07:46 PM   #4
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
as far as installing it, navigate into the proxytunnel directory where you extracted it and run

Code:
make
make install
here is the structure of the file: ~/.ssh/config
Code:
Host myexternalbox
ProxyCommand /usr/local/bin/proxytunnel -g proxy.company.com -G 80 -u username -p password -d mybox.athome.com -D 443
then to connect you would initiate ssh as such
Code:
ssh -l HomeBoxUsername myexternalbox
the key here is to connect with whatever you named it on the "host" line and make sure that the proxytunnel command option for -d will resolve to your box

[NOTE: proxytunnel installed to /usr/local/bin/proxytunnel in my config, make sure you specify the correct path to your installation. 'which proxytunnel' should give you the location]

hope this helps
 
Old 07-11-2005, 08:51 PM   #5
FrayAdjacent
Member
 
Registered: Feb 2005
Location: Austin, TX
Distribution: Fedora Core 3
Posts: 34

Original Poster
Rep: Reputation: 15
Ok, I downloaded the tgz file and extracted it.

When I 'make', I get

make: gcc: Command not found
make: *** [proxytunnel.o] Error 127

and when I try make install I get:

mkdir -p /usr/local/bin
install -g root -m755 -o root proxytunnel /usr/local/bin/proxytunnel
install: cannot stat 'proxytunnel': No such file or directory
make: *** [install] Error 1


The files are extracted to a folder in my user's home directory, and I am running make and make install as root.

Does the tar.gz file need to be extracted somewhere else and then make/make install?
 
Old 07-11-2005, 10:58 PM   #6
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
sounds like you are missing gcc (and probably some other development/libraries)
/usr/bin/gcc ?
rpm -qa | grep gcc
on one of my boxes gcc-3.4.2-6.fc3 provides /usr/bin/gcc (version may be different for you)

'make install' is failing because 'make' did not successfully build the proxytunnel binary so that's where the "cannot stat 'proxytunnel'" message is coming from

if you want i can email you the binary, should work for you. i have copied it from one of my other boxes to a third box and had it work. otherwise you will need to track down the necessary packages to get it to build

i have email enabled in my profile so let me know


hope this helps
 
Old 07-12-2005, 11:29 AM   #7
FrayAdjacent
Member
 
Registered: Feb 2005
Location: Austin, TX
Distribution: Fedora Core 3
Posts: 34

Original Poster
Rep: Reputation: 15
mhallbiai, I sent you a pm. I appreciate the input! I'm a bit past the 'complete noob' stage to 'have some experience', but there is just so much to Linux, one can keep learning!

When you email me the binary, do I just drop that into /usr/bin/ or should I put it in the folder and then use make install to install it correctly?
 
Old 07-12-2005, 04:21 PM   #8
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
what i did was extract the contents, changed into the directory, ran make, then tar'd the file up again including the binary, you should be able to run 'make install' and it will install the binary as well as the man pages

hope this helps
 
Old 07-13-2005, 01:40 PM   #9
FrayAdjacent
Member
 
Registered: Feb 2005
Location: Austin, TX
Distribution: Fedora Core 3
Posts: 34

Original Poster
Rep: Reputation: 15
It looks like it installed everything except the man pages, but I know where they are! I'll be trying it shortly
 
Old 07-13-2005, 02:21 PM   #10
FrayAdjacent
Member
 
Registered: Feb 2005
Location: Austin, TX
Distribution: Fedora Core 3
Posts: 34

Original Poster
Rep: Reputation: 15
argh! It's fighting me tooth and nail

When I execute ssh -l matt ip.of.home.box
I get:

/bin/sh: /home/matt/: is a directory
/bin/sh: line 0: exec: /home/matt/: cannot execute: Success
ssh_exchange_indentification: Connection closed by remote host
 
Old 07-13-2005, 05:44 PM   #11
FrayAdjacent
Member
 
Registered: Feb 2005
Location: Austin, TX
Distribution: Fedora Core 3
Posts: 34

Original Poster
Rep: Reputation: 15
ok, I figured it out... I had my ~.ssh/config set to the wrong location.

I am now connected to my box at home, and can launch X applications and display them locally.

Thanks for all the help! It was instrumental! THIS is why I love Linux!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
socks proxy - env variable andrewlkho Linux - Networking 1 06-23-2013 09:58 PM
env variable allelopath Linux - Software 3 04-14-2005 12:07 PM
unsetting a part of ENV variable praveenv Linux - Newbie 3 08-28-2004 09:36 AM
What does the syntax-- $ENV{'REMOTE_HOST'} --mean in Perl? Bassam Programming 3 03-31-2004 07:54 AM
Changing $PATH env variable alzogbi Linux - Newbie 2 03-26-2004 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration