MikroTik. Home network 192.168.1.0/24 and the network 192.168.1.0/24 through the VPN
At work there is fraha where you configured a pptp server. There was an idea to implement on Mikrotik a permanent connection to the workplace, but there is a problem.
Both home and work network has address 192.168.1.0/24. To change the range of your home network don't want to. Used. Range of working network is not possible. When you connect to a VPN Mikrotik gets an IP from the range 192.168.111.201-192.168.111.210.
I think that we should add a rule like:
/ip firewall nat add chain=srcnat src-address=184.108.40.206-220.127.116.11 \
Taken from the wiki Mikrotik, addresses have not changed. And specify the pptp interface. If such a rule is to convert addresses from the network address 192.168.2.0/24? Or how to make the connection?
You will have to change the addressing of the network, because there can't be two different networks that are directly connected and have the same address space.
oswaldo_Schulist answered on October 8th 19 at 00:32
You have correctly subtracted the wiki, but you need not srcnat and dstnat.
Ie, you can try to connect with the office and sumapit its range 192.168.1.0/24 on virtual 18.104.22.168/24. And accordingly out of the house to go to the addresses 22.214.171.124 which will unfold in the office 192.168.1.10.
in this case dst-address=126.96.36.199/24 to-addresses=192.168.1.0/24
still need masquerading on the VPN interface to the office router normal responses and route network 188.8.131.52/24 through the VPN.
jaunita answered on October 8th 19 at 00:34
For a long time, from the beginning of the use of personal local network, use addresses of the form 192.168.234.x/24. With nothing else do not intersect.
Rodger.Considine answered on October 8th 19 at 00:36
I have almost the same was the task. The work of FreeBSD, the network 192.168.2.0/24, the house Mikrotik, network 192.168.0.0/24 you had a home to go to work. Did so: Mikrotik raised the pptp server, set the username and password. At work, on FreeBSD set the client mpd5 client was prescribed a login and pass. Added it in kroons and prescribed route add From work pinguy only pictoric that was needed. With the house can easily connect to any work computer.
murphy69 answered on October 8th 19 at 00:38
From the point of view of network engineering, you will help VPN based on L2 Protocol. For example, L2TP. How exactly to configure it in FreeBSD I don't know, try googling.