Community discussions

MikroTik App
 
ssffzzxx
just joined
Topic Author
Posts: 17
Joined: Thu Feb 12, 2009 6:04 am

How to forward specific traffic to other router in the LAN

Wed Oct 28, 2009 6:13 am

Dear All,
I have 2 routers in my LAN, mikrotik router and other brand router.
Could you please help me on how to forward specific traffic (Active directory traffic) to another router?
Mikrotik router IP xx.yy.67.2
another router IP xx.yy.67.1 (create vpn connection)

Client PCs Ip xx.yy.67.100
Default gateway client PC xx.yy.67.2

How to make the mikrotik forward other traffic except http to other router?
Best Regards
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to forward specific traffic to other router in the LAN

Wed Oct 28, 2009 6:48 am

Do the clients contact some outside IP address for this traffic, and you just need to push the traffic through a specific router?

In that case you want to assign a routing mark to the connection you need to push out the other router (via "/ip firewall mangle") and install a route for packets marked that way pointing to that router.

Example, marking tcp/389 traffic coming into the 'inside' interface and forwarding it to 10.1.67.1:
/ip firewall mangle
add chain=forward action=mark-connection in-interface=inside protocol=tcp dst=389 new-connection-mark=to_dot_1
add chain=forward action=mark-routing connection-mark=to_dot_1 new-routing-mark=to_dot_1
/ip route
add dst-address=0.0.0.0/0 gateway=10.1.67.1 routing-mark=to_dot_1
 
ssffzzxx
just joined
Topic Author
Posts: 17
Joined: Thu Feb 12, 2009 6:04 am

Re: How to forward specific traffic to other router in the LAN

Thu Oct 29, 2009 8:47 am

Thanks fewi,
Actually the client need to contact our internal DNS server (not ISP DNS) that reside in other LAN. These LAN is connected to my LAN using my other firewall through VPN.

I want AD directory traffic using the 'other router' and http traffice using mikrotik. And the client PC's default gateway is mikrotik.

The Mikrotik and other router are in the same network.
Best Regards
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to forward specific traffic to other router in the LAN

Thu Oct 29, 2009 5:01 pm

So mark all the traffic you want to go through that router, and not just tcp/389. The principle is the same.