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?
thanks for your replyHi,
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