mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-26 12:42:40 +02:00
Delete host routes added to the main routing table for providers
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
d525419c65
commit
cd8fe38c85
@ -846,12 +846,14 @@ CEOF
|
|||||||
|
|
||||||
if ( $hostroute ) {
|
if ( $hostroute ) {
|
||||||
if ( $family == F_IPV4 ) {
|
if ( $family == F_IPV4 ) {
|
||||||
emit "run_ip route replace $gateway src $address dev $physical ${mtu}";
|
emit qq(run_ip route replace $gateway src $address dev $physical ${mtu});
|
||||||
emit "run_ip route replace $gateway src $address dev $physical ${mtu}table $id $realm";
|
emit qq(echo "\$IP route del $gateway src $address dev $physical > /dev/null 2>&1" >> \${VARDIR}/undo_${table}_routing);
|
||||||
|
emit qq(run_ip route replace $gateway src $address dev $physical ${mtu}table $id $realm);
|
||||||
} else {
|
} else {
|
||||||
emit "qt \$IP -6 route add $gateway src $address dev $physical ${mtu}";
|
emit qq(qt \$IP -6 route add $gateway src $address dev $physical ${mtu});
|
||||||
emit "qt \$IP -6 route del $gateway src $address dev $physical ${mtu}table $id $realm";
|
emit qq(echo "\$IP route del $gateway src $address dev $physical > /dev/null 2>&1" >> \${VARDIR}/undo_${table}_routing);
|
||||||
emit "run_ip route add $gateway src $address dev $physical ${mtu}table $id $realm";
|
emit qq(qt \$IP -6 route del $gateway src $address dev $physical ${mtu}table $id $realm);
|
||||||
|
emit qq(run_ip route add $gateway src $address dev $physical ${mtu}table $id $realm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user