Community discussions

MikroTik App
 
ditrixII
just joined
Topic Author
Posts: 7
Joined: Tue Dec 21, 2021 8:41 pm

VPN Remote Users

Wed Jan 26, 2022 12:02 pm

Hello everyone.
I have the following task. I want a remote user who connects to the VPN have access to the local hosts, but use their own gateway. Is it possible to give the remote user a static route so he connects to the host on a local domain using their own gateway?

I should also point out that VPN and local server are on different subnets. I.E.:
Server: 172.17.0.0/24
VPN: 172.17.100.0/24
 
tdw
Forum Guru
Forum Guru
Posts: 1843
Joined: Sat May 05, 2018 11:55 am

Re: VPN Remote Users

Wed Jan 26, 2022 12:59 pm

You cannot push a static route to the client, it has to be configured at their end.

On Windows using the inbuilt VPN client you unselect the 'Use default gateway on remote network' option to enable split tunneling, and if 'Disable class based route addition' is also unselected a /8, /16 or /24 route is automatically added if the VPN address is 10.x.x.x, 172.16.x.x - 172.31.x.x, or 192.168.x.x respectively.

This may be sufficient in your case as a route for 172.30.x.x would be added via the VPN, otherwise use the PowerShell Add-VpnConnectionRoute to add permanent static routes which become acive when the VPN connection is established.
 
ditrixII
just joined
Topic Author
Posts: 7
Joined: Tue Dec 21, 2021 8:41 pm

Re: VPN Remote Users

Thu Jan 27, 2022 11:50 am

Thanks for your feedback.
i will go on this directiond!!
 
tiran
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Fri Aug 07, 2015 2:53 pm

Re: VPN Remote Users

Sat Jan 29, 2022 12:56 pm

I need to configure remote vpn users those who use apple device. I need to add certificates for authentication. I followed few guides nothing success.

Who is online

Users browsing this forum: Bing [Bot], CGF and 43 guests