S
S
Skywalker732018-07-17 13:36:38
VPN
Skywalker73, 2018-07-17 13:36:38

How to let the traffic of a specific device on the network through a VPN?

We have:
1. Mikrotik - as a home router
2. PS3 - as a home media center for watching videos from online cinemas
It happened that the RKN blocked your favorite site and all its mirrors. Now the application for watching videos from this site does not work.
I want to buy an inexpensive vpn, let's say l2tp or pptp, and let traffic specifically only from the set-top box through this VPN.
Let's say I still somehow set up a client connection on Mikrotik, but here's how to let the traffic of a specific host on the network through this connection without affecting other devices?
The console version is also suitable. Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Melnikov, 2018-07-17
@Mi11er

We make an ip - firewall - mangle
rule on prerouting, where in src address we specify the IP address ps3 , and we do mark routing action
Next in ip-routes, we make route 0.0.0.0/0 , gateway is your vpn, routing mark from mangle
This is how the rules look like for me, though, instead of src adr, a sheet with destination addresses is used

/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-list=Telegramm \
    new-routing-mark=Blocked passthrough=yes

/ip routes
add distance=1 gateway=pptp-digital_ocen routing-mark=Blocked

O
Oleg As, 2018-07-17
@eXcNightRider

I want to buy an inexpensive vpn - arubacloud with Debian, for 1 euro, half an hour of manual configuration and you will be happy

J
Jan, 2018-07-26
@Buchachalo

https://habr.com/post/337426/ + https://habr.com/post/359268/
This is probably a more difficult option.
And the guys were right. Aruba + gre-tunnel + mangle rule.
Mangle:
/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=VPS passthrough=no src-address=/your device/ log=no log-prefix=""
Route:
/ip routes add distance= 1 gateway=gre-tunnel1 routing-mark=VPS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question