Community discussions

MikroTik App
 
djrainyman
just joined
Topic Author
Posts: 9
Joined: Sun Jun 09, 2013 9:54 am

route hotspot user to vpn

Mon May 12, 2014 3:59 pm

hi
i have a network that hotspot server run on it
i add a sstp vpn client on router (server from vpn proxy sites)
i want to route specify hotspot user to vpn client,but i can't
please help me how to do this?
 
brossler
just joined
Posts: 19
Joined: Tue Apr 15, 2014 10:42 pm
Location: Czech Republic

Re: route hotspot user to vpn

Mon May 12, 2014 5:20 pm

Hi,
first think to do is to mark all trafic you want to route through the VPN link. You can do it in IP>Firewall>Mangle, action is mark-routing:
/ip firewall mangle add action=mark-routing new-routing-mark=VPN in-interface=hotspot_interface

Then, add new route to routing table with routing-mark VPN and gateway is remote VPN address.
/ip route add gateway=gateway_for_hotspot dst-address=0.0.0.0/0 routing-mark=VPN

The router will prefere marked routes, if it would find any, it will chose unmarked routes.
Hope it was helpful
 
djrainyman
just joined
Topic Author
Posts: 9
Joined: Sun Jun 09, 2013 9:54 am

Re: route hotspot user to vpn

Mon May 12, 2014 7:37 pm

Hi,
first think to do is to mark all trafic you want to route through the VPN link. You can do it in IP>Firewall>Mangle, action is mark-routing:
/ip firewall mangle add action=mark-routing new-routing-mark=VPN in-interface=hotspot_interface

Then, add new route to routing table with routing-mark VPN and gateway is remote VPN address.
/ip route add gateway=gateway_for_hotspot dst-address=0.0.0.0/0 routing-mark=VPN

The router will prefere marked routes, if it would find any, it will chose unmarked routes.
Hope it was helpful
thanks for your reply
i do this
but this way only worked with networks that don't has hotspot server

Who is online

Users browsing this forum: dido1236, dj23 and 28 guests