Hi,
I have a scenoria where there are 2 links connected on Juniepr SRX. Where 1 link is of ISP having ip 1.1.1.1 and 2nd link is connected to other firewall having ip 2.2.2.2. For specific source IP 10.10.10.0/24 which is connected on lan wants to go to internet should pass through ISP and if with source 10.10.10.0/24 wants to reach the subnet which is connected on firewall should pass through 2nd link i.e. 2.2.2.2 However i had configured the routing-instance for ISP and seems its working. All traffic is passed to ISP via link 1 but with same source 10.10.10.0/24 couldnot reach to other firewall.
Is there any solution where with same source subnet if the destination is ISP should pass via ISP and if the destination is behind other firewall it should pass via 2nd link.
Below is the template where all traffic is passing to ISP:
bhavinv@FWI001# show firewall filter Traffic-Vodafone
term 1 {
from {
source-address {
192.168.102.220/32;
}
}
then {
routing-instance Vodafone;
}
}
term 2 {
then accept;
}
{primary:node0}[edit]
bhavinv@FWI001#
bhavinv@FWI001# show routing-options
interface-routes {
rib-group inet Import-Vodafone;
}
static {
route 0.0.0.0/0 next-hop 172.21.1.131
}
rib-groups {
Import-Vodafone {
import-rib [ Vodafone.inet.0 inet.0 ];
}
}
bhavinv@FWI001# show routing-instances
Vodafone {
instance-type forwarding;
routing-options {
static {
route 0.0.0.0/0 next-hop 122.15.117.225;
}
}
}
Thanks in Advance.