Connect two networks which are behind different routers with NAT
Posted: Fri Oct 12, 2018 11:22 am
Hello
I have two microtik routers connected to municipality MAN
The MT1 is a CCR1009 router with configuration:
Ip address print
# ADDRESS NETWORK INTERFACE
0 ;;; defconf
192.168.1.1/24 192.168.1.0 ether2-LAN
1 D 192.168.50.12/24 192.168.50.0 ether1-WAN
Ip route print
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADS 0.0.0.0/0 192.168.50.1 1
1 ADC 192.168.1.0/24 192.168.1.1 ether2-LAN 0
2 A S 192.168.2.0/24 192.168.50.15 1
3 ADC 192.168.50.0/24 192.168.50.12 ether1-WAN 0
ip firewall nat print
0 chain=srcnat action=masquerade out-interface=ether1-WAN
1 ;;; masq. vpn traffic
chain=srcnat action=masquerade src-address=192.168.89.0/24
The MT2 is a RB1100x4 router with configuration:
ip address print
# ADDRESS NETWORK INTERFACE
0 192.168.2.1/24 192.168.2.0 ether2_LAN
1 D 192.168.50.15/24 192.168.50.0 ether1_WAN
ip route print
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADS 0.0.0.0/0 192.168.50.1 1
1 A S 192.168.1.0/24 192.168.50.12 1
2 ADC 192.168.2.0/24 192.168.2.1 bridge1_LAN 0
3 ADC 192.168.50.0/24 192.168.50.15 ether1_WAN 0
ip firewall nat print
0 chain=srcnat action=masquerade out-interface=ether1_WAN log=no
log-prefix=""
Both of the subnetworks are connected to internet by 192.168.50.1 GATEWAY
The dynamic 192.168.50.12 and 192.168.50.15 wan address from both routers are reserved in 192.168.50.1 GATEWAY (wont change)
With the above configuration i can only ping from hosts from 192.168.2.0/24 network to 192.168.1.1 ip address (MT1 rourer) but i cant ping to hosts inside 192.168.1.0/24 network (example 192.168.1.200 which is my server)
I want to be able to use file sharing (shared folders) and web services located in Win 2008 server (with ip addres 192.168.1.200) which is inside 192.168.1.0/24 network from hosts inside 192.168.2.0/24 network
Do you have any idea how to manage this?
Thanks
I have two microtik routers connected to municipality MAN
The MT1 is a CCR1009 router with configuration:
Ip address print
# ADDRESS NETWORK INTERFACE
0 ;;; defconf
192.168.1.1/24 192.168.1.0 ether2-LAN
1 D 192.168.50.12/24 192.168.50.0 ether1-WAN
Ip route print
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADS 0.0.0.0/0 192.168.50.1 1
1 ADC 192.168.1.0/24 192.168.1.1 ether2-LAN 0
2 A S 192.168.2.0/24 192.168.50.15 1
3 ADC 192.168.50.0/24 192.168.50.12 ether1-WAN 0
ip firewall nat print
0 chain=srcnat action=masquerade out-interface=ether1-WAN
1 ;;; masq. vpn traffic
chain=srcnat action=masquerade src-address=192.168.89.0/24
The MT2 is a RB1100x4 router with configuration:
ip address print
# ADDRESS NETWORK INTERFACE
0 192.168.2.1/24 192.168.2.0 ether2_LAN
1 D 192.168.50.15/24 192.168.50.0 ether1_WAN
ip route print
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADS 0.0.0.0/0 192.168.50.1 1
1 A S 192.168.1.0/24 192.168.50.12 1
2 ADC 192.168.2.0/24 192.168.2.1 bridge1_LAN 0
3 ADC 192.168.50.0/24 192.168.50.15 ether1_WAN 0
ip firewall nat print
0 chain=srcnat action=masquerade out-interface=ether1_WAN log=no
log-prefix=""
Both of the subnetworks are connected to internet by 192.168.50.1 GATEWAY
The dynamic 192.168.50.12 and 192.168.50.15 wan address from both routers are reserved in 192.168.50.1 GATEWAY (wont change)
With the above configuration i can only ping from hosts from 192.168.2.0/24 network to 192.168.1.1 ip address (MT1 rourer) but i cant ping to hosts inside 192.168.1.0/24 network (example 192.168.1.200 which is my server)
I want to be able to use file sharing (shared folders) and web services located in Win 2008 server (with ip addres 192.168.1.200) which is inside 192.168.1.0/24 network from hosts inside 192.168.2.0/24 network
Do you have any idea how to manage this?
Thanks