LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-06-2014, 09:45 AM   #1
marloncos
LQ Newbie
 
Registered: May 2014
Posts: 1

Rep: Reputation: Disabled
Thumbs up Tunneling Download


Hi,

During a few days, I'm tring to get this working but nothing (I'm not sure if it is working).

My scenario:
workstation - IP 192.168.1.2
server - IP 172.0.0.2

Server it is a Linux S.O and it is behind a firewall that block any type of download (apt-get, yum, wget, etc)

My workstation it is a windows S.O and i'm thinking any way to via putty for example provides download to the server.

I thinked about configure an proxy in my server in soomeone port and via putty open tunneling this port, but my machine needed to be configured with any proxyserver and this is not the case.

Anybody have another idea to do this? Via SSH provides download to werver firewalled.

Thks!
 
Old 05-06-2014, 01:27 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
The basic syntax for setting up an ssh socks proxy is:
Code:
ssh -ND<port> user@IP
Replacing <port> with the local port you want to use, and replacing user and IP with the IP of the server you want to tunnel traffic through and your username on that server.

So in your case, you should be able to run, for example:
Code:
ssh -ND11111 marloncos@172.0.0.2
and then configure your web browser/wget/etc to use localhost:11111 for the proxy. All web traffic will be redirected through 172.0.0.2, which means if you want to access 172.0.0.2 itself, you would use a web address of 127.0.0.1/localhost.

This should work fine through a browser, but configuring command line tools to use this socks proxy may be a little more complicated. I found this promising page while searching for it:
http://www.dslreports.com/forum/remark,13563828

Last edited by suicidaleggroll; 05-06-2014 at 01:29 PM.
 
Old 05-06-2014, 08:28 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,130

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Not sure I understand the question. Does the OP want to use the windows computer to proxy a wan connection via some tunnel to the linux server?
 
  


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
can tunneling or something else help with this? mc2718 Linux - Networking 3 12-16-2009 07:02 PM
HTTP Tunneling or VPN Tunneling Teomari Linux - Networking 3 04-09-2007 07:52 PM
Tunneling Randvegeta Linux - Networking 4 09-21-2005 10:42 AM
incoming tunneling or tunneling via a 3rd party? JustinHoMi Linux - Networking 1 04-15-2005 01:57 PM
what is IP tunneling? Hano Linux - Networking 1 04-23-2002 11:27 PM

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

All times are GMT -5. The time now is 08:00 AM.

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