I have a remote machine I ssh where I'm running code that needs to access a specific https url (https://api.trustedservices.intel.com/sgx/certification/v4/qe/identity
for example, or any other endpoint with the same api prefix).
I can curl
this url and get a response on my local machine, but, presumably, the firewall that the remote machine is behind results in the same curl
command timing out.
I'm trying to figure out a way to bypass the firewall restriction, and the best way that I can think of is to ssh tunnel all https traffic (port 443) from remote through local and back.
Existing posts I've seen here, say there are issues with certificates being for the server machine but the requests originating from the local machine.
Any tips on the easiest way to do this? Maybe even IP spoofing the requests that the code on remote
makes?
Not sure how to tunnel all traffic and have the certificate issue be okay.