Created
May 2, 2023 13:23
-
-
Save WietseWind/c8d3cae929e940dc122ff44c19f9e82e to your computer and use it in GitHub Desktop.
PBR Different Route @ ER (Policy Based Routing)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modify route | |
set protocols static table 10 route 0.0.0.0/0 next-hop 10.200.0.113 | |
set firewall modify PBR rule 20 description LAN1 | |
set firewall modify PBR rule 20 source address 10.150.5.0/24 | |
set firewall modify PBR rule 20 modify table 10 | |
set firewall modify PBR rule 30 description LAN2 | |
set firewall modify PBR rule 30 source address 10.50.5.0/24 | |
set firewall modify PBR rule 30 modify table 10 | |
set interfaces ethernet eth1 firewall in modify PBR | |
set interfaces ethernet eth2 firewall in modify PBR | |
# Exception | |
set firewall group network-group lan1 network 10.150.0.0/16 | |
set firewall modify PBR rule 10 description inter-lan1 | |
set firewall modify PBR rule 10 destination group network-group lan1 | |
set firewall modify PBR rule 10 modify table main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment