I have a client that has no direct access to the internet. But it is connected to a server on a LAN connection, whereas the server has access to the Internet.
I'd like to send an HTTP request from the client through the Server to the Internet. How can I do this?
+--------+ +--------+ +--------+
| | LAN | Ubuntu | WAN | |
| Client <--------> 16.04 <--------> WWW |
| | | Server | | |
+--------+ +--------+ +--------+
Steps:
- Client sends request to Server on LAN at https://user:pass@local-server:1234
- Server forwards request to remote endpoint at https://user:pass@remote-server
Note: I only need to forward the HTTP request to a single endpoint
I have been looking at running squid or tinyproxy on the server but I'm not sure how to properly configure them or if it's the simplest approach. Is a proxy server needed here?