A
A
Alexey2014-07-24 16:22:23
openvpn
Alexey, 2014-07-24 16:22:23

What is the best way to redirect all http(s) traffic through VPN?

Hello.
Available:
1) OpenVPN server on a VPS in the Netherlands;
2) Mikrotik-RB2011 with OpenVPN client;
3) Grid for five cars (apartment, not office) + devices coming from time to time.
Until now, I solved the problem of bypassing blocking of some sites and additional security on others pointwise: I marked packets to their IP subnets and stuffed them into the VPN. But there are more and more sites, SORM-3 is getting closer, and it would be nice to pass all http / https traffic through the VPN. I can’t do it all at all - the load on the VPN tunnel is too powerful, and the monthly traffic thanks to torrents is over ten terabytes.
For myself, I outlined three solutions:
1) Somehow modify the existing model for all http (s) traffic (Google did not suggest anything intelligible);
2) Proxy
3) ssh tunneling

What is the best way to proceed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LAA, 2014-07-24
@alcyone

It seems to me that having MikroTik, the answer suggests itself. :)
Try like this:

/ip firewall mangle
add action=mark-routing chain=prerouting dst-port=80,443 in-interface=br0 \
new-routing-mark=to-vpn protocol=tcp

/ip route
add gateway=[тут укажите шлюз куда направлять] routing-mark=to-vpn

Good luck!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question