L2TP tunnel. Internet using remote gateway.

Hello,

i have L2TP tunnel like this(Router-to-Router):
http://www.mikrotik.com/testdocs/ros/3.0/vpn/l2tp_content.php#.6.1

and i want that all hosts on remote office go to internet through home office gateway(using ISP1). How to do such routing?

simply add default gateway to tunnel interface on your remote router, so all remote office’s traffic will go to the local router

I do not fully understand where should i do this.

it’s in IP/Routes =)

I don’t know how this rule should look. I have tried something but still can’t get it working.

any suggestions?

The simplest /ip route to route all traffic to office gateway,
/ip route add gateway=PPTP_remote_address dst-address=0.0.0.0/0

But you need to ensure that PPTP is up and running, there should be separate route for the internet connection to establish PPTP.

Thank you for all your reply’s. It is working. Now i have another question. Host on remote network after some time (~15 min) loses connectivity to internet and speed is very slow, but l2tp tunnel works fine. After changing default route to their own, everything works fine.

So my problem is solved with pptp tunnel.

Now i have another question. How to bypass this route to one or more users(ip address or Ethernet port). I want all users go to internet using remote gateway and one user go to internet using default ISP gateway.

any suggestions?

?

Policy-routing could be used to sent specific subnet over specific gateway.

/ip firewall mangle add action=routing-mark src/dst-addres
/ip route add gateway=x.x.x.x routing-mark=