Community discussions

MikroTik App
 
cgallery
newbie
Topic Author
Posts: 46
Joined: Tue Apr 24, 2018 5:25 am

L2TP client to client networking

Sat Nov 12, 2022 8:25 pm

I have a user that would like to keep his home PC connected to the work VPN, so that when he is traveling and connects to the VPN with his notebook, he can RDP into the home PC.

This works if you know the IP address of the home PC's VPN connection, but if for some reasons that connection is dropped and re-establishes, the IP can change (assigned via dhcp pool).

I use a script to create a static DNS entry for local DHCP users, but this doesn't work over the VPN (I guess the VPN server wouldn't know the machine name of the connecting PC anyhow).

So I guess my question is, are there any easy ways for him to know the IP address of his home PC, so he can connect to it over the VPN connection? I guess I need to treat one connection differently.

For example, under "Secrets" there are fields for local and remote addresses, can I set a static IP here?

Thanks you for any help.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: L2TP client to client networking

Sat Nov 12, 2022 8:36 pm

Does he have a MT router at home?
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: L2TP client to client networking

Sat Nov 12, 2022 8:50 pm

Yes, you can set a static remote-address for that user on the /ppp secret row - use one outside the pool.
 
cgallery
newbie
Topic Author
Posts: 46
Joined: Tue Apr 24, 2018 5:25 am

Re: L2TP client to client networking

Sun Nov 13, 2022 1:25 am

Does he have a MT router at home?
Unfortunately no, Netgear Arlo I think.
 
cgallery
newbie
Topic Author
Posts: 46
Joined: Tue Apr 24, 2018 5:25 am

Re: L2TP client to client networking

Sun Nov 13, 2022 1:26 am

Yes, you can set a static remote-address for that user on the /ppp secret row - use one outside the pool.
Well that is the best answer, thanks for your help!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: L2TP client to client networking

Mon Nov 14, 2022 5:30 pm

Its close to Xmas, buy him a Mikrotik router! ;-)

Who is online

Users browsing this forum: Bing [Bot], subnet and 68 guests