09-20-2009 01:39 AM - edited 09-20-2009 01:16 PM
Hi,
how can i configure source based routing under the srx210 ?
thanks.
edit by myself :
##############
found the solution :
my network is 192.168.49.0/24 and i want that client 192.168.49.5 is routed thrue 192.168.10.1 instead of my default route.
set routing-instances REDIRECT-100-0 instance-type forwarding
set routing-instances REDIRECT-100-0 routing-options static route 0.0.0.0/0 next-hop 192.168.10.1
set routing-options interface-routes rib-group inet all-ribs
set routing-options rib-groups all-ribs import rib [ inet.0 REDIRECT-100-0.inet.0 ]
set firewall family inet filter ROUTE-MAP-NET-100-0 term 1 from source-address 192.168.49.5/32
set firewall family inet filter ROUTE-MAP-NET-100-0 term 1 then then routing-instance REDIRECT-100-0
set firewall family inet filter ROUTE-MAP-NET-100-0 term 2 then accept
set interfaces ge-0/0/1 unit 0 family inet filter input ROUTE-MAP-NET-100-0
Solved! Go to Solution.
09-21-2009 06:42 PM
If you want your client to be able to ping its default gateway, it is better to exclude packets, addressed to own SRX address, from FBF:
set firewall family inet filter ROUTE-MAP-NET-100-0 term exclude-to-own from address <SRX interface address>/32
set firewall family inet filter ROUTE-MAP-NET-100-0 term exclude-to-own then accept
insert firewall family inet filter ROUTE-MAP-NET-100-0 term exclude-to-own before term 1