Community discussions

MikroTik App
 
draguzet
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 75
Joined: Fri Jul 01, 2011 10:28 am

Routing mark for PPTP on same RB, and some port forward

Mon Jan 30, 2012 12:58 pm

Hi !

I have RB with 2 different ISP. Each on different LAN port, and different IP address.
LAN1 - 192.168.0.1 - ISP 1 - LAN1 have address: 192.168.0.3/24
LAN2 - 192.168.1.1 - ISP 2 - LAN1 have address: 192.168.1.3/24

ISP2 is configured to forward from public address ports 1723, 3389, 3390... to local IP: 192.168.1.3
LAN3 are my local network - 192.168.10.1/24
I have on my RB (10.1/24) port forward for ports that ISP forward to 192.168.1.3, and my RB forward this to local network for all ports except PPTP port which are ok to come in RB.

My idea are that LAN1 become default gateway for everything except VPN, and other ports that is forwarded on ISP2.
How to mark all trafic that come on LAN2, and set routing mark for this ?
 
cieplik206
Trainer
Trainer
Posts: 290
Joined: Sun Jul 01, 2007 12:25 am
Contact:

Re: Routing mark for PPTP on same RB, and some port forward

Sun Feb 19, 2012 6:07 pm

Ok

Mark connection first
/ip firewall mangle add chain=prerouting in-interface=LAN2 action=mark-connection new-routing-mark=incoing_from_lan2
And then mark packet inside this connection and apply routing
/ip firewall mangle add chain=prerouting in-interface=LAN3 connection-mark=incoming_from_lan2 action=mark-routing new-routing-mark=lan2
Same for PPTP

Who is online

Users browsing this forum: No registered users and 41 guests