Gereral PBR question

Just needing a little hint about PBR configuration as I’m completely new to that topic.

Current config:
eth0 192.168.0.2/24
eth1 192.168.1.1/24
eth2 192.168.2.1/24
eth3 192.168.3.1/24
wg1 10.10.10.2/24

Default-route 0.0.0.0 via 192.168.0.1

Needed config:
Every traffic should stick using the current 0.0.0.0 default-route via192.168.0.1 except a single IP (192.168.3.55/24) which should next-hop to 10.10.10.1/24 (trough wireguard).

Any ideas would help!

# default route use for all networks
set protocols static route 0.0.0.0/0 next-htop 192.168.0.1

# Default route for PBR 
set protocols static table 10 route 0.0.0.0/0 next-hop 10.10.10.1

# Define policies
set policy route FOO rule 10 source address 192.168.3.55
set policy route FOO rule 10 set table 10

# Then attach to interface
set policy route FOO interface eth3                          # in 1.4
set interfaces ethernet eth3 policy route FOO                # in 1.3
2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.