Thursday 12 June 2014

MIKROTIK POLICY ROUTING BASED ON CONTENT BASE

After Setting a VPN Client now we need to add Mangle Rules see the below screen shot.
Pbr1
Pbr2[1]
Pbr3[1]
Add Static Route
In this Step we need add a static route for That Packets They Are Matched and Marked By Mangle And We Want Route Them To VPN Connection .
Pbr5[1]
Nat For Our Users
In this step we use nat for our Users , Notice that , if VPN Connection , Connected By Router , Free Internet ( VPN ) Is In Router , For This Reason We Need Nat Our Local Users To That IP We Get By PPTP Client .
Pbr6[1]
Pbr7[1]
I Marked my packets Their Destination Is IP Or name of Facebook Website Youtube Website ( Filtered ) And Marked For Routing Decision , Then I Setup A PPTP-Client Connection To use Free Internet ( Without Filter ) And Then Add a New Route For All Packets They Want Use For Free Internet ( Without Filter ) , Then I Nat All Connections Want Goes To My VPN Connection .
Notice : You Can Setup This Scenario With Many Way , But This Is A Simple Example .
You Can Change Configuration To Advanced Configurations For PBR ! ( Mangle , Nat , Route )

No comments:

Post a Comment