LinuxQuestions.org
Visit Jeremy's Blog.
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 12-24-2009, 04:21 AM   #1
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Rep: Reputation: 31
Can i tunnel http via ssh without setting up a http proxy?


Hi everyone - Happy holidays, merry xmas

I have tunnelled http port 80 via ssh to a linux box which is running a http proxy on port 80 which has worked for me in the past. But is there a way to do the same but instead of setting a http proxy cannot i not use the servers direct internet connection.

Thanks in advance again :_)
 
Old 12-24-2009, 04:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
If I correctly understand your motivations, you just want to use the SOCKS functionality of SSH itself. connect using -D 1234 and then use that as the proxy address itself, and then anywhere you go to in your browser will automatically connect from the remote end.
 
Old 12-24-2009, 05:03 AM   #3
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
Thanks for such a quick reply, i have tried what you said just using putty on a windows xp client and it doesnt seem to work. Please see my configuration below.

linux box connected to internet - 192.168.1.10
no firewalls or proxy server configured on this box


windows client - 192.168.1.5
Using putty i have created a connection to 192.168.1.10:22 then using the tunnel section in putty i have the below:
source port=8080
destination=192.168.1.10:8080
Local/Auto


I then config firefox to use manual socks proxy = 127.0.0.1 port 8080

With all the above i still cant get internet access? The linux box is directly connected to the internet.


Thanks in advance again

P.S I have just found out that the linux box is using ports 80 & 8080 to serve a proxy server to general internal users. Could this be affecting what i am trying to achieve if so what do you recommend for me to be able to use the servers direct internet connection.

Last edited by ginda; 12-24-2009 at 05:13 AM.
 
Old 12-24-2009, 05:25 AM   #4
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
It was my fault - I was not using dynamic port setting

Thanks again for all your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Anyone know of a way to tunnel RTMP through a HTTP proxy? qwertyjjj Linux - Server 5 05-03-2010 11:59 AM
HTTP Tunnel in SLES 9 for SSH/SFTP, how to? JimCotoe Linux - Networking 2 05-13-2009 09:02 AM
NX (SSH) over http proxy 1N4148 Linux - Networking 10 10-22-2007 09:15 PM
"socks5" -> "http" proxy protocol, or ssh tunnel to sock5 ? I'm beyond http p vmicho Linux - Networking 2 12-16-2003 06:32 AM
Encrypting HTTP over SSH tunnel kleptophobiac Linux - Networking 5 08-20-2003 04:59 PM


All times are GMT -5. The time now is 10:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration