LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-30-2019, 08:03 AM   #1
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Rep: Reputation: 31
Question How Reverse Proxy with Squid or other tool when source box has no external connection?


Here's the config. No, I can't change it so don't ask.

Server <--- Internal Box <----> Resources


My server is protected via a firewall. I can make connections into to the server... but server can't talk to anything outside.

From the server I want to be able to connect to resources on the network.

Current solution is ssh tunnel from internal box to server and allow server to curl -x <localhost:3128> to connect to squid on Internal Box to access resources. Calling it a reverse proxy for lack of a better name.

My problem is ssh has a forced timeout or something and the ssh connection keeps hanging over time. Any attempts to see if ssh is still active return "yes". Sends traffic no problem but the server only sends a heartbeat back nothing else.

What I want to know is there a way to run squid (or other proxy server) then get the the squid on internal to make a bridge, monitor it for stability and reset if down? I can have a connection open to connect to squid on the server from the internal box. Just not the other way around. Any way to make a two way connection and have two squid (or other proxy) talk to each other?

Then I connect to local squid and it finds a route to get to the resources?
 
Old 03-30-2019, 12:43 PM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by MikeyCarter View Post
Here's the config. No, I can't change it so don't ask.

Server <--- Internal Box <----> Resources
Why not set the Internal Box to be a SSH vpn and gateway for the server?

let ssh setup the taps and assign it an ip and on the Internal box setup ip forwarding, then on the server side of things add a route to your resources via Internal Box ip (gateway).. do the same route on the resources and now you have a ssh vpn that can talk to the resources without mumbojumbo
 
Old 03-30-2019, 05:01 PM   #3
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Original Poster
Rep: Reputation: 31
Question

Quote:
Originally Posted by /dev/random View Post
Why not set the Internal Box to be a SSH vpn and gateway for the server?

let ssh setup the taps and assign it an ip and on the Internal box setup ip forwarding, then on the server side of things add a route to your resources via Internal Box ip (gateway).. do the same route on the resources and now you have a ssh vpn that can talk to the resources without mumbojumbo
SSH is proving to be problematic on the network. Solution right now is just to ssh tunnel the proxy from the internal box, and it keeps hanging in such away that ssh says it's still running but no traffic is coming back. Looking for a way that the network guys will let me get away with too... vpn isn't an option.
 
Old 04-01-2019, 05:41 AM   #4
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
If there is a legitimate operational or business case, I would try to reason with the network people or go to management. If you can create an SSH tunnel, for all practical purposes, the server you mention has equivalent network access as the internal box. If you have control over two hosts and they can ping each other, you can actually send data between them with ICMP echo request (ping) packets. It requires a lot of skill to implement, but it is possible. Ping packets can be 64k - 1 - the protocol overhead, so there is plenty of room to encrypt the payload with a block cipher if you need it.

Notice the payload section:

https://en.wikipedia.org/wiki/Ping_(...)#ECHO-REQUEST
 
  


Reply

Tags
firewall, proxy, squid



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
squid reverse proxy through https, no cache, no public proxy? alanford Linux - Software 1 02-08-2016 10:55 AM
Squid reverse proxy help, Any Squid expert here please mirjee4u Linux - Server 2 05-08-2014 04:19 AM
My raspbian box have to ping other box first then other host can see my box jtingkir Linux - Networking 10 08-09-2013 07:53 AM
Squid 2.6 Reverse Proxy from Squid(3128) to OrginServer(80) Not working rraj Linux - Server 0 06-06-2008 02:29 PM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 05:00 PM

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

All times are GMT -5. The time now is 06:03 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