you need to mark your VPN subnet
and add a default route for it
makr it in /ip firewall mangle
add and mark route using action action use "mark-routing" and in new-routing-mark name it vpn or something
src-address should be your vpn subnet E.G: 10.10.10.0/29
and go to /ip route
add gateway=adsl dst-address=0.0.0.0 routing-mark=vpn

----- Original Message ----- From: "Sim" <simvi...@gmail.com>
To: "Mikrotik discussions" <mikrotik@mail.butchevans.com>
Sent: Monday, July 30, 2012 9:36 PM
Subject: [Mikrotik] IPROUTE2 multiple GW


Hello!
I need to convert this "Linux" config to "Mikrotik config".

I've TWO internet lines: HDSL and ADSL.
HDSL is the default gateway (ETH2)

I need to connect to Mikrotik (VPN) from "ADSL PORT".
In this way all connection from/to ADSL will be forwarded over them and not
over default gw.

In linux I use iproute2 as this example where:

- 80.90.100.92 is the IP of LOCAL DEVICE (Miktorik in this case)
and
- 80.90.100.94 is the ADSL GW

Script:
*Code:*
#Table "ADSL"
ip route add table adsl to 80.90.100.88/29 dev eth0
ip route add table adsl to 192.168.200.0/24 dev eth1
ip route add table adsl to 90.100.120.150/29 dev eth2
ip route add table adsl to default via 80.90.100.94 metric 1

#Create
ip rule add from 80.90.100.92/32 table adsl



Thanks and best regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.butchevans.com/pipermail/mikrotik/attachments/20120730/5daafa09/attachment.html>
_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS


__________ Information from ESET NOD32 Antivirus, version of virus signature database 7340 (20120730) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 7340 (20120730) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

Reply via email to