Changes

Line 4: Line 4:  
==Introduction==
 
==Introduction==
 
----
 
----
Policy-based routing (PBR) is a technique used in computer networking to direct network packets based on defined criteria beyond the standard destination-based routing. Unlike traditional routing, which forwards packets solely based on their destination address, PBR allows administrators to customize routing decisions according to various factors such as source address, type of service, protocol, or application.
+
Policy-based routing (PBR) is a technique used in computer networking to direct network packets based on defined criteria beyond the standard destination-based routing. Unlike traditional routing, which forwards packets solely based on their destination address, PBR allows to customize routing decisions according to various factors.
   −
With policy-based routing, network administrators can implement specific rules or policies to dictate the path that packets should take through the network. This flexibility enables organizations to optimize traffic flow, prioritize certain types of traffic, enforce security measures, and manage network resources more efficiently.
+
With policy-based routing can implement specific rules or policies to dictate the path that packets should take through the network. This flexibility enables organizations to optimize traffic flow, prioritize certain types of traffic, enforce security measures, and manage network resources more efficiently.
    
==Prerequisites & Topology==
 
==Prerequisites & Topology==
Line 13: Line 13:  
'''Before proceeding with the confuration, ensure that all requirements are met:'''
 
'''Before proceeding with the confuration, ensure that all requirements are met:'''
   −
# Before starting you need to have 3 different WAN connections. In this case we are going to use: '''Wi-fi WAN''', '''Wired WAN''' and '''Mobile WAN'''.
+
# Before starting you need to have 3 different WAN connections. In this case we are going to use: '''Wi-fi WAN''', '''Wired WAN''' and '''Mobile WAN'''.These interfaces have to be preconfigured.
   −
[[File:PBS model.png|border|class=tlt-border|center]]
+
[[File:PBR_MAIN_IMG.png|border|class=tlt-border|center]]
    
==Configuration==
 
==Configuration==
Line 97: Line 97:  
Open WebUI → Network → Routing → Policy based routing → Add new instance and create new instances for each available WAN in this case Wi-Fi WAN, Wired-WAN and Mobile:
 
Open WebUI → Network → Routing → Policy based routing → Add new instance and create new instances for each available WAN in this case Wi-Fi WAN, Wired-WAN and Mobile:
   −
====Creating Routing Tables====
+
====Creating Wifi Wan Routing Table====
 
----
 
----
 
Add new instance:
 
Add new instance:
 
# Enter ID: '''1'''
 
# Enter ID: '''1'''
 
# Enter New configuration name: '''WifiWan'''
 
# Enter New configuration name: '''WifiWan'''
 +
[[File:PBR IMAGE WIFI.png|border|class=tlt-border|center|1000x300px]]
 +
click [[File:Add Button.png|40x70px]] in the new window make following changes:
   −
click [[File:Add Button.png|40x70px]] in the new window make following changes:
   
=====Static IPv4 Routes=====
 
=====Static IPv4 Routes=====
 
----
 
----
 
click [[File:Add Button.png|40x70px]] and aplly this to the route:
 
click [[File:Add Button.png|40x70px]] and aplly this to the route:
#Select Interface: '''WifiWan''' | Enter Target: ''''0.0.0.0''' | Enter IPv4-Netmask: '''0.0.0.0'''
+
#Select Interface: '''WifiWan''' | Enter Target: ''''0.0.0.0''' | Enter IPv4-Netmask: '''0.0.0.0''' | Enter IPv4-Gateway: '''192.168.100.1'''
 +
[[File:PBR_P_ROUTE_1.png|border|class=tlt-border|center|1000x300px]]
    +
====Creating Wired Wan Routing Table====
 +
----
 
Add new instance:
 
Add new instance:
 
# Enter ID: '''3'''
 
# Enter ID: '''3'''
 
# Enter New configuration name: '''WiredWan'''
 
# Enter New configuration name: '''WiredWan'''
 
+
[[File:PBS_WAN_ROUTE1.png|border|class=tlt-border|center|1000x300px]]
 
click [[File:Add Button.png|40x70px]] in the new window make following changes:
 
click [[File:Add Button.png|40x70px]] in the new window make following changes:
 
=====Static IPv4 Routes=====
 
=====Static IPv4 Routes=====
 
----
 
----
 
click [[File:Add Button.png|40x70px]] and aplly this to the route:
 
click [[File:Add Button.png|40x70px]] and aplly this to the route:
#Select Interface: '''wan''' | Enter Target: ''''0.0.0.0''' | Enter IPv4-Netmask: '''0.0.0.0'''
+
#Select Interface: '''wan''' | Enter Target: ''''0.0.0.0''' | Enter IPv4-Netmask: '''0.0.0.0''' | Enter IPv4-Gateway: '''192.168.3.1'''
 +
[[File:PBR_P_ROUTE_2.png|border|class=tlt-border|center|1000x300px]]
 +
 
 +
====Creating Mobile Wan Routing Table====
 +
----
    
Add new instance:
 
Add new instance:
 
# Enter ID: '''5'''
 
# Enter ID: '''5'''
 
# Enter New configuration name: '''MwWan'''
 
# Enter New configuration name: '''MwWan'''
 +
[[File:PBR_MOBILE_1.png|border|class=tlt-border|center|1000x300px]]
    
click [[File:Add Button.png|40x70px]] in the new window make following changes:
 
click [[File:Add Button.png|40x70px]] in the new window make following changes:
Line 129: Line 138:  
click [[File:Add Button.png|40x70px]] and aplly this to the route:
 
click [[File:Add Button.png|40x70px]] and aplly this to the route:
 
#Select Interface:'''mob1s1a1''' | Enter Target: ''''0.0.0.0''' | Enter IPv4-Netmask: '''0.0.0.0'''
 
#Select Interface:'''mob1s1a1''' | Enter Target: ''''0.0.0.0''' | Enter IPv4-Netmask: '''0.0.0.0'''
 +
[[File:PBS_TABLES_WAN.png|border|class=tlt-border|center|1000x300px]]
 +
====Creating Routing Rules for IPv4====
 +
----
 +
=====Routing Rules for IPv4=====
 +
----
 +
By clicking [[File:Add Button.png|40x70px]] create 3 rules under '''Routing Rules for IPv4''' tab apply these changes to the rules:
 +
======Policy Rule 1======
 +
----
 +
# Enter Priority: '''1'''
 +
# Select Incoming interface: '''LAN_VLAN_ETH0'''
 +
# Select Outgoing interface: '''None'''
 +
# Select Matched Traffic Action: '''Lookup Table'''
 +
# Lookup Table: '''WifiWAN(1)'''
 +
 +
[[File:POLICY_RULE_11.png|border|class=tlt-border|center]]
 +
 +
======Policy Rule 2======
 +
-----
 +
# Enter Priority: '''1'''
 +
# Select Incoming interface: '''LAN_VLAN_3'''
 +
# Select Outgoing interface: '''None'''
 +
# Select Matched Traffic Action: '''Lookup Table'''
 +
# Lookup Table: '''WiredWan(3)'''
 +
[[File:POLICY_RULE_2.png|border|class=tlt-border|center]]
 +
======Policy Rule 3======
 +
----
 +
# Enter Priority: '''1'''
 +
# Select Incoming interface: '''LAN_VLAN_5'''
 +
# Select Outgoing interface: '''None'''
 +
# Select Matched Traffic Action: '''Lookup Table'''
 +
# Lookup Table: '''MWan(5)'''
 +
[[File:POLICY_RULE_3.png|border|class=tlt-border|center]]
 +
 +
'''NOTE: Delete all Autimatic or unrelated routing rules'''
 +
 +
===Configuration testing===
 +
----
 +
 +
Connect end device to physical port that is assingned to different routing policy. Open cmd and run this command: '''traceroute 8.8.8.8''', three physical ports that we assigned to diffrent Vlans route to 8.8.8.8 should be dispayed using different gateways.
 +
 +
 +
====LAN1 Test Result====
 +
----
 +
====LAN2 Test Result====
 +
----
 +
====LAN3 Test Result====
 +
----