Hello,
I'm having trouble getting the PBR configuration to work and could use some help.
Network Configuration
The firewall is connected as follows:
eth1: Internet
eth2: Local Network (access to 10.100.0.0/16 via 10.100.1.1/24)
Mgmt: Management Network (10.100.254.0/24)
What I Want to Achieve
I want to synchronize time with the NTP server located at 10.100.253.1 through the Management network. However, due to the current routing, access to the NTP server goes through eth2. I want to correct this using PBR.
Current Configuration
Static Route
default via [eth1 nexthop]
10.100.0.0/16 via 10.100.1.1
PBR Table
set pbr table MgmtPbrTable static-route 10.100.253.1/32 nexthop gateway address 10.100.254.254 priority 1
# I have tried the following three patterns, but none of them worked:
Default route via 10.100.254.254
To 10.100.253.0/24 via 10.100.254.254
To 10.100.253.1/32 via 10.100.254.254
PBR Rule
set pbr rule priority 1 match from 10.100.254.1/32
set pbr rule priority 1 match to 10.100.253.1/32
set pbr rule priority 1 action table MgmtPbrTable
Additional Information
When I added the static route 10.100.253.1/32 via 10.100.254.254, access worked correctly. However, this is not a viable solution because I want access from the Internet to the NTP server to go through eth2 as usual.