10-30-2023 05:06 AM
Dear Cisco Community ,
Hope everyone is well. Reaching out to ask your expertise with regards to this scenario.
Two sites: Main branch and Remote branch. Two firewall in the environment, FW01 serving as default route for all LAN traffic (VPN tunnel cloud DC, application access, and internet access). FW02 serves in publishing websites in DMZ Network to external client with corresponding public IP address range assigned to the organization.
There is a server in remote branch that requires to be publish for specific external client. How to route Server0 in remote branch to use FW02 as its route to reach internet. ?
Appreciate your inputs and assistance.
Best regards,
10-30-2023 05:23 AM
Hi,
You can use Policy based routing (PBR) on Core SW at Main Site, where you can match the source (server0) and destination(any or 0.0.0.0/0) and route the traffic to FW02.
10-30-2023 05:35 AM
Ditto.
10-30-2023 05:23 AM - edited 10-30-2023 05:38 AM
Hello @bbb bbb,
To route Server0 in the remote branch through FW02 for internet access while maintaining its access to the internal network, you can set up PBR on the router that connects the remote branch to the main branch.
--This configuration will direct traffic from Server0 matching an ACL to use FW02 as its route to reach the internet while allowing it to continue communicating with the internal network.
10-30-2023 05:40 AM
BTW, from the posted information, PBR should only be, and is, needed on core L3 switch.
10-30-2023 06:21 AM
Dear @Joseph W. Doherty ,
on this scenario, multilayer switch 0 is a L3 switch and also as Core switch
10-30-2023 07:07 AM
"on this scenario, multilayer switch 0 is a L3 switch and also as Core switch"
Correct, and?
10-30-2023 10:10 PM
Dear @Joseph W. Doherty
..and where the default static route is configured pointing to FW01.
10-31-2023 03:31 AM
Which PBR will (selectively) override.
10-30-2023 06:08 AM
Dear M02@rt37,
Default route is configured in Multilayer switch. and I will try to put PBR on egress interface of router1. Thank you for your suggestion.
Regards
10-30-2023 06:13 AM - edited 10-30-2023 06:14 AM
For PBR to work you need to configure it on the ingress interface of the device that should perform the routing. In this case Switch0.
10-30-2023 06:44 AM
You're welcome @bbb bbb
Apply the route map to the interface through which traffic from Server0 exits the remote branch network.
10-30-2023 07:12 AM
"Default route is configured in Multilayer switch. and I will try to put PBR on egress interface of router1. Thank you for your suggestion."
You can do that, but it won't help because your core switch is shown as next hop.
10-30-2023 05:32 AM - edited 10-30-2023 05:46 AM
You will need to solve this by implementing policy routing on Switch 0.
Policy routing works by matching incoming traffic with a route-map and setting outbound interface/next-hop for the traffic. Hence you can route traffic based on source IP like you are attempting to do here. It is however not very efficient. You can achieve what you want here with something like this:
access-list 101 permit ip host {server 0 ip} any
!
route-map to-fw2 permit 10 match ip address 101 set ip next-hop {fw2 address}
!
interface {ingress interface}
ip policy route-map to-fw2
10-30-2023 06:15 AM
Dear @Torbjørn ,
Will try your suggestion to apply route-map on the interface on Multilayer switch 0 connecting to Router1.
Regards,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide