deviceBrocade(config)#access-list 101 permit tcp 10.10.10.0 0.0.0.255 eq http 5.5.5.0 0.0.0.255
device(config)#route-map net10web permit 101
device(config-routemap net10web)#match ip address 101
device(config-routemap net10web)#set ip next-hop 1.1.1.1
device(config-routemap net10web)#set ip next-hop 2.2.2.2
device(config-routemap net10web)#exit
device(config)#vlan 10
device(config-vlan-10)#tagged ethernet 1/1/1 to 1/1/4
device(config-vlan-10)#router-interface ve 1
device(config)#interface ve 1
device(config-vif-1)#ip policy route-map net10web
Configuring a PBR policy
To configure PBR, you define the policies using IP ACLs and route maps, then enable PBR globally or on individual interfaces. The
device programs the ACLs into the packet processor on the interfaces and routes traffic that matches the ACLs according to the
instructions in the route maps.
From the guide we have 3 simple steps:
To configure a PBR policy:
• Configure ACLs that contain the source IP addresses for the IP traffic you want to route using PBR.
• Configure a route map that matches on the ACLs and sets the route information.
• Apply the route map on untagged interface or on virtual interface.
If you are still having issues maybe you should open a Case with our TAC team and work with them.
Thanks
Best Regards
Hashim
Q: On the Cisco, by adding the "ip policy route-mapInternet-Vlan1" to the interface this forwards the non internal ip addressranges off to their firewall/WAN. due to the organizations funding andpolicies, they have to have their own internet installed at each site showingthe connection and bill in their name at their address.
A: Makes sense
Q: so the way therules are in effect are not in the order as they are listed when doing a showrun.the route-map is applied first using the ACL:access-list 151 deny ip 10.10.1.0 0.0.0.255 10.10.0.00.0.255.255access-list 151 permit ip any anythis works and is in use this way, for first of all theirfirewall at each site handles DHCP rules and static assignments, so if a deviceis mis-configured on the vlan with the wrong ip and/or subnet then it just doesnot work. I would rather have something not work than have a vulnerability.
so as the"permit route-map" is implemented, it is the same on a cisco as it ison the fastiron. The "denied" range does not get sent to the"set ip next-hop" but continues on to the normal core routing. the"permit" range of everything else not of our ip gets sent to thefirewall to deal with.
A: If a device is misconfigured on a VLAN with the wrongsubnet, it will not have any routing even without a route-map. It will not be able to even ARP for the gateway. Your ACL above puts everything into theroute-map except 10.10.1.0/24 to 10.10.0.0/16
Q: On the Cisco,the above mentioned "denied" items in the "route-map" thenmove on to the rule of "ip access-group 101 in" on the interface,which then helps regulate what ips or ranges or protocols they can communicateto and with. plug one end of the straw, and no fluid moves through, since itrequires bi-directional traffic to function in our environment. if theaccess-group does not define the traffic, then it moves on to the defaultrouting tables on the switch that sends it off to another firewall for analysis.
A: Good to know. Thanks. On the ICX, you can probably apply “ip access-group 101 out” but not “in”at least the documentation is specific the “in” direction does not work.
...
Q: therules that I have work on the Catalyst, i just need to get them to work, so ican swap it with the ICX.
A: You may need toreverse your access lists taking into consideration all possible sources.
Realistically, your ACL most likely acts like a one-way check-valve not allowing return traffic. For that there are reflexive Access Lists that dynamically add return entries that age-out upon completion of return traffic. This is the most straight forward resource I found on those:
http://packetlife.net/blog/2008/nov/25/reflexive-access-lists/
BTW, I doubt reflexive access lists will work with route-maps; since, the dynamically created list that allows traffic to flow the opposite direction most likely needs to be applied inbound.
.............
I would probably revamp this and try VRFs to visualize the routing table, so in essenceeach organization has a separate virtual router. Here is an unrelated example:
You might need more device memory set asside to run VRFs depending upon Fastiron build family:
system-max ip-route 15168
vrf Organization46
rd 46:1
address-family ipv4
ip route 0.0.0.0/0192.168.255.1
exit-address-family
exit-vrf
interface ve 46
vrf forwarding Organization46
ip address192.168.46.1 255.255.255.0
ip helper-address 1192.168.255.1
!
Just remember if you do that you would need to look at therouting table by name:
SSH@TEST#sh ip route vrf organization46
Total number of IP routes: 3
Type Codes - B:BGP D:Connected O:OSPF R:RIP S:Static; Cost -Dist/Metric
BGP Codes - i:iBGPe:eBGP
OSPF Codes - i:Inter Area 1:External Type 1 2:External Type2
Destination Gateway Port Cost Type Uptime
1 0.0.0.0/0 192.168.255.1 ve 101 1/1 S 27d20h
2 192.168.46.0/24 DIRECT ve 46 0/0 D 255d