A lot more documentation.

This commit is contained in:
2026-05-11 17:07:21 -04:00
parent abfe6fde5e
commit d2e4f916e3
10 changed files with 277 additions and 3 deletions
+30
View File
@@ -0,0 +1,30 @@
# `add_route_policy` Command
## Name
`add_route_policy`
## Synopsis
`add_route_policy ${ipv6_prefix} ${fib_number}`
## Description
Configures internal variables to cause `rc.d` scripts to generate pf rules that
route traffic originating from the specified `${ipv6_prefix}` to be routed
according to the rules in the specified `fib_number`.
## Examples
#### Send traffic from internal prefix `fd12:3456:789a:bcde::/64` through a friend's network on fib 42
```
static_routes="${static_routes} my_friend"
route_my_friend="-6 :: 2001:db8:f000:b000::1 -fib 42" # This specifies a default route for fib 42.
add_route_policy fd12:3456:789a:bcde::/64 42
```
## See Also
- [`add_wireguard_route`](add_wireguard_route.md)
- [`add_wireguard_interface`](add_wireguard_interface.md)