Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




652 posts

Ultimate Geek
+1 received by user: 163


# 208516 15-Feb-2017 13:55
Send private message

Scenario:

 

I have a bunch of Linux servers on a local LAN that need to individually access a SFTP servers out on the internet. However 'company policy' stats that the server must connect via a single proxy server for access control reasons. The configuration of the servers can't change without weeks/months of delays. 

 

Currently there is a Squid Proxy server is handling the HTTP/HTTPS traffic but it can't handle the SSH/SCP/SFTP traffic.

 

I've tried using ssh -N -D 0.0.0.0:1080 to act as a proxy between the Internet and the LAN

 

but I get the following error:

 

channel 1: open failed: administratively prohibited: open failed

 

What is a known working solution to my problem?

 

 

 

 






Create new topic
3449 posts

Uber Geek
+1 received by user: 451

Trusted

  # 1720653 15-Feb-2017 14:08
Send private message

Maybe setup a "relay" server (VPS, AWS etc.) that you can tunnel to on HTTPS and then make SFTP connections out from there?






14742 posts

Uber Geek
+1 received by user: 2745

Trusted
Subscriber

  # 1720655 15-Feb-2017 14:18
Send private message

Looks to me like you have two conflicting things:

 

  • Policy that you must use proxy server A
  • Proxy server A does not support SFTP

Either the policy changes or the proxy server changes.


 
 
 
 




652 posts

Ultimate Geek
+1 received by user: 163


  # 1720708 15-Feb-2017 15:57
Send private message

I believe I have come up with a working solution and that was to use Srelay. It's a simple lightweight program which acts as a SOCKS proxy server.  This can be installed on the same server as the Squid Proxy server but just listening on different port number.

 

Ref:

 

https://github.com/gco/srelay






14742 posts

Uber Geek
+1 received by user: 2745

Trusted
Subscriber

  # 1720726 15-Feb-2017 16:19
Send private message

Ah, so you basically removed that limitation. Something had to give there.


Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

HPE to acquire supercomputing leader Cray
Posted 20-May-2019 11:07


Techweek starting around NZ today
Posted 20-May-2019 09:52


Porirua City Council first to adopt new council software solution Datascape
Posted 15-May-2019 12:00


New survey provides insight into schools' technology challenges and plans
Posted 15-May-2019 09:30


Apple Music now available on Alexa devices in Australia and New Zealand
Posted 15-May-2019 09:11


Make a stand against cyberbullying this Pink Shirt Day
Posted 14-May-2019 20:23


Samsung first TV manufacturer to launch the Apple TV App and Airplay 2
Posted 14-May-2019 20:11


Vodafone New Zealand sold
Posted 14-May-2019 07:25


Kordia boosts cloud performance with locally-hosted Microsoft Azure ExpressRoute
Posted 8-May-2019 10:25


Microsoft Azure ExpressRoute in New Zealand opens up faster, more secure internet for Kiwi businesses
Posted 8-May-2019 09:39


Vocus Communications to deliver Microsoft Azure Cloud Solutions through Azure ExpressRoute
Posted 8-May-2019 09:25


Independent NZ feature film #statusPending to premiere during WLG-X
Posted 6-May-2019 22:13


The ultimate dog photoshoot with Nokia 9 PureView #ForgottenDogsofInstagram
Posted 6-May-2019 09:41


Nokia 9 PureView available in New Zealand
Posted 6-May-2019 09:06


Motorola Solutions joins local partners to deliver advanced communications network in New Zealand
Posted 30-Apr-2019 21:50



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.