Hi all.
I've read many posts and tutorials but I can not figure out how to easily solve my situation.
Exactly as it is written:
"While other IPsec howtos fully describe how to set a secure tunnel to get traffic in between two networks, but none of them describe how to get traffic to go over a tunnel where the destination isn’t a network on the remote end."
http://wiki.mikrotik.com/wiki/Routing_t ... over_IPsec
But as is in header of wiki page: "Note: This is currently a work in progress and is not complete."
Important part is missing.
Everybody can setup tunnel but nobody nows how to easily route all traffic through it.
All I want is to that local RB have tunnel connected to the RB in datacenter and I want all Internet traffic went from LAN on local RB then into the data centers RB and then to the Internet and back.
If I setup pptp client on my ubuntu laptop, it works exactly as I wish.
When I did it on those RBs, it does not work and Im trying it for hours.
Please, can somebody help me?
Thank you
=======================================================================
[EDIT - WORKING SOLUTION:]
PptpPubIp = public ip of PPTP server
PptpIpRemote = remote ip used in pptp tunnel
PptpIpLocal = local ip used in pptp tunnel
LocalWanIp = local ip on WAN interface / could be set by DHCP
LocalWanGw = ip of localy used GATEWAY / could be set by DHCP
ROUTES
Only dhcp on WAN interface enabled:
DST-ADDRESS ____ GATEWAY _____ DISTANCE
0.0.0.0/0 _______ LocalWanGw __ 0
...
Dhcp on WAN and pptp enabled:
DST-ADDRESS ____ GATEWAY ______ DISTANCE
0.0.0.0/0 _______ LocalWanGw ___ 0
0.0.0.0/0 _______ PptpIpRemote __ 1
...
CHANGE DISTANCE OF PPTP DEFAULT ROUTE
/ interface pptp-client set 0 ##chose_your_pptp_interface## add-default-route=yes default-route-distance=2
CHANGE DISTANCE OF DHCP DEFAULT ROUTE
/ ip dhcp-client set 0 add-default-route=yes default-route-distance=3
ADD STATIC ROUTE TO PPTP SERVER
/ ip route add dst-address=PptpPubIp gateway=LocalWanGw distance=1
Dhcp on WAN, enabled pptp and all internet traffic going over tunnel:
DST-ADDRESS ____ GATEWAY _______ DISTANCE
PptpPubIp _______ LocalWanGw ____ 1 (STATIC ROUTE - DISTANCE 1)
0.0.0.0/0 _______ PptpIpRemote ___ 2 (DYNAMIC PPTP ROUTE - DISTANCE 2)
0.0.0.0/0 _______ LocalWanGw ____ 3 (STATIC / DYNAMIC (in case of DHCP) - DISTANCE 3)
...
Uf. Pls check if i wrote it right.