Skip to content

Instantly share code, notes, and snippets.

@WietseWind
Created May 2, 2023 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WietseWind/c8d3cae929e940dc122ff44c19f9e82e to your computer and use it in GitHub Desktop.
Save WietseWind/c8d3cae929e940dc122ff44c19f9e82e to your computer and use it in GitHub Desktop.
PBR Different Route @ ER (Policy Based Routing)
# 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