Skip to content

Commit

Permalink
Add VPN gateway to initial split routing configuration
Browse files Browse the repository at this point in the history
Add the address of the VPN gateway to the initial elements of the
nftables set used for split routing excludes.

Signed-off-by: hwipl <[email protected]>
  • Loading branch information
hwipl committed Jan 20, 2025
1 parent 9e6a59a commit 92d6eb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/cmdtmpl/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,18 @@ table inet oc-daemon-routing {
set excludes4 {
type ipv4_addr
flags interval
{{if .VPNConfig.Gateway.Is4}}
elements = { {{.VPNConfig.Gateway}}/32 }
{{end}}
}
# set for ipv6 excludes
set excludes6 {
type ipv6_addr
flags interval
{{if .VPNConfig.Gateway.Is6}}
elements = { {{.VPNConfig.Gateway}}/128 }
{{end}}
}
chain preraw {
Expand Down

0 comments on commit 92d6eb9

Please sign in to comment.