static: always associate default routes with $IFACE
Hetzner uses link-local addressing for their default IPv6 route, accordingly we should specify the device a route is associated with so that it will use the correct interface. Thanks to Devin Brown for reporting this issue.
This commit is contained in:
parent
f9d0fbb4c3
commit
74b6f9487c
2 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ configure_addresses() {
|
|||
configure_gateways() {
|
||||
for i in $(ifquery -p gateway -i $INTERFACES_FILE $IFACE); do
|
||||
addrfam=$(addr_family $i)
|
||||
${MOCK} ip $addrfam route $1 default via $i $VRF_TABLE $METRIC
|
||||
${MOCK} ip $addrfam route $1 default via $i $VRF_TABLE $METRIC dev $IFACE
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue