[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Tunneling as Proxy

Posted on 2008-01-31
12
Medium Priority
?
877 Views
Last Modified: 2013-12-06
We've just recently deployed some security measures that disallow access to our servers from any IP outside our office. I work from home alot so this is a a big pain for me. We have one gateway server that isn't under the restriction that I can SSH into and from there I can SSH into any server in the office. The only probem is that I need to be able to tunnel my web browsing and winSCP client through the same connection. Right now all I can think to do is use putty to double ssh my way though. The server is a redhat server and is running current software, I am trying to access SSH, SCP, and HTTP services from my windows laptop via the gateway server. I can install any software I might need on any of the computers. Anyone have a good solution in mind?
0
Comment
Question by:techdoc6
  • 6
  • 6
12 Comments
 
LVL 43

Expert Comment

by:ravenpl
ID: 20794776
0
 

Author Comment

by:techdoc6
ID: 20794918
So i went through the putty setup and forwarded my local port 80 to the gateway servers port 80. I then tried to go to whatismyip.com to see if my external IP had changed but It hadn't. I then tried to configure the proxy settings for firefox, specifying 127.0.0.1 as the proxy server on port 80, which just killed my internet connection. any ideas on what I'm doing wrong or what I have to do in firefox to get my external IP to change?
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 20794982
Asuuming the first link, You should set forwarding like

L81 thedestination.ip:80

then in FF http://localhost:81/
0
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 

Author Comment

by:techdoc6
ID: 20795046
It just says "unable to connect" when I try it that way. What page(localhost:81) is that supposed to bring up? Where can i specify a destination address such as www.whatismyip.com or say, the IP of my plesk control panel?
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 20795101
> What page(localhost:81) is that supposed to bring up?
thedestination.ip:80

Do the port forwarding tab looked like?
L81 ip.of.plesk.control.panel:80

Next, it's possible, that server denies port forwarding :( Please verify.
0
 

Author Comment

by:techdoc6
ID: 20795197
L81 ip.of.plesk.control.panel:8443

When I entered this in I navigated to http://localhost:81 and got my plesk login page. When i try to login however, I get the same access denied message indicating that my IP address is disallowed (not the office IP i'm trying to emulate)
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 20795398
Looks like plesk is redirecting to full domain (changes Your localhost:81 to realname:80).
If You runned linux, You could redirect realname:80 to localhost:81 with iptables. I don't know how to manage this under windows.
0
 

Author Comment

by:techdoc6
ID: 20795448
wouldn't that be an endless loop?
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 20795685
No, if You would redirect it on local firewall stage, no.

Oh, one more thing to work it around, edit c:\windows\system32\drivers\etc\hosts and add there following line

127.0.0.1 the.real.name.that.appears.in.the.addressbar

And change the forwarding rule to
L8443 ip.of.plesk.control.panel:8443

And access with http://localhost:8443/
0
 

Author Comment

by:techdoc6
ID: 20798666
cool, now I've got my HTTP traffic tunneled, any idea how I can tunnel my winSSH client?
0
 
LVL 43

Accepted Solution

by:
ravenpl earned 2000 total points
ID: 20798704
Yes, add next port forwarding
L22 remote.ip:22

and again, connect to localhost rather than remote with ssh/scp/winscp etc.
0
 

Author Closing Comment

by:techdoc6
ID: 31427039
Awesome, works like a charm. Thanks for the help raven.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

608 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question