W
W
webdancer2018-12-06 22:03:54
linux
webdancer, 2018-12-06 22:03:54

How to pass traffic from the browser through OpenVpn?

Hello. There is an OpenVpn config, you need to make sure that only one of the browsers works through OpenVpn, and the rest of the computer functions normally.
I thought to raise vm, deploy OpenVpn there (as I understand it, you also need to raise your vpn), then in the browser indicate your vm (address) as a vpn or are there easier ways?
And what does the solution look like with raising your own VM?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Softer, 2018-12-06
@Softer

Here you need not a VPN, but a proxy server. For example Squid, 3proxy or any other. The browser does not and should not know anything about your network. Technically, in Linux it seems possible to separate applications by routing tables, but the implementation of such a solution may take more time / effort than raising a proxy server.

A
akimdi, 2018-12-07
@akimdi

link

R
Radjah, 2018-12-07
@Radjah

You put a proxy on your VPN server, for example, 3proxy.
You prescribe its address and port in the browser settings.
?????
PROFIT!

M
MarvinD, 2018-12-07
@MarvinD

I'd rather put socks on the OpenVPN server, the same dante. For example, OpenVPN gives your computer its gray ip - 10.8.0.10 (corresponding to the OpenVPN gateway 10.8.0.1). In the browser, I would register this socks with the address 10.8.0.1. Then socks would only work if the VPN is connected.
To ensure that only traffic specifically for ip 10.8.0.1 goes through OpenVPN, write something like this in the client config:
...
; route to vpn localhost
route 10.8.0.1
route-nopull
will not even need to forward DNS.
And Squid will blow your mind with https.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question