V
V
Vladimir Kuts2018-03-14 18:33:50
linux
Vladimir Kuts, 2018-03-14 18:33:50

The easiest and fastest way to proxy a request?

There is a service https://some.site.com that restricts entry by ip address. Access there is blocked only from certain ip.
There is access to the Ubuntu machine with a permitted ip address. There I picked up openvpn. How can I now access this service from my browser through this machine, as if from a machine with a permitted address for testing.
It would not be desirable to lift squid for the sake of it. Tried nginx (it's installed) via proxy_pass - but something didn't work.
I would like a simple solution - like running netcat or something like that ...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Cheremisin, 2018-03-14
@fox_12

Can't a simple masquerading solve the problem?
installs a firewall on this machine, hang up IP address masquerading on the interface, and in the openvpn server settings, specify the route to this host through your VPN.
push "route 1.2.3.4 255.255.255.255"

A
Arthur, 2018-03-14
@ART_CORP

3proxy?

K
ky0, 2018-03-14
@ky0

Tried nginx (it's installed) via proxy_pass - but something didn't work.

Try again - this is one of the simplest and at the same time flexible ways.

P
Papa, 2018-03-14
Stifflera @PapaStifflera

Socks5 proxy emulation via SSH.
On the workstation, run a simple command:
where -D 5555 - SOCKS server emulation through port 5555
-f - work in the background, after authentication
-N - do not start the shell on the remote host.
You now have a sock5 proxy at localhost:5555

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question