I have two offices - office_1 and office_2 in a different cities.
At office_1 I've Windows PPTP server - RRAS IP 192.168.1.180 (pool for remote clients 192.168.1.180-190) (local subnet 192.168.1.0/24).
At office_2 - Mikrotik RB750GL as PPTP client (local subnet 10.20.0.0/16). Users comps are behind the NAT.
RB750GL connects good to Win PPTP server.
I need to make subnets 192.168.1.0/24 and 10.20.0.0/16 to be connected and comps from two subnets could communicate.
----
So, on my Win PPTP server I used route to 10.20.0.0/16 by using gateway 192.168.1.180.
On RB750GL I have:
1. one NAT rule (masquerade) on gateway port for computers in 10.20.0.0/16. Computers use gateway 10.20.0.1 to reach internet.
2. Default gateway to ISP.
3. Dynamic routes which created by router.
Code: Select all
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.1.180 1
1 A S 0.0.0.0/0 109.xx.xx.xx 1
2 ADC 10.20.0.0/16 10.20.0.1 ether2-master-l... 0
3 ADC 109.xx.xx.xx/30 109.xx.xx.xx ether1-gateway 0
4 A S 192.168.1.0/24 pptp_client 1
5 ADC 192.168.1.180/32 192.168.1.181 pptp_client 0
I was trying to connect subnets by marking all traffic to the 192.168.1.0/24 with mangle and setting up route to 0.0.0.0/0 with gw 192.168.1.180.
Code: Select all
0 chain=prerouting action=mark-routing new-routing-mark=p2h passthrough=no dst-address=192.168.1.0/24
Could someone help and show me the way or just right tools to connect subnets.
Thanx.