mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-14 03:34:31 +01:00
Reverse the change to delete host routes
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cd8fe38c85
commit
1c33717cf5
@ -847,11 +847,9 @@ CEOF
|
||||
if ( $hostroute ) {
|
||||
if ( $family == F_IPV4 ) {
|
||||
emit qq(run_ip route replace $gateway src $address dev $physical ${mtu});
|
||||
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 {
|
||||
emit qq(qt \$IP -6 route add $gateway src $address dev $physical ${mtu});
|
||||
emit qq(echo "\$IP route del $gateway src $address dev $physical > /dev/null 2>&1" >> \${VARDIR}/undo_${table}_routing);
|
||||
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…
Reference in New Issue
Block a user