mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-24 00:23:28 +01:00
Add -<family> to 'ip route del default' command
This commit is contained in:
parent
0336a77120
commit
9b0a9e8ecd
@ -455,10 +455,10 @@ sub add_a_provider( ) {
|
|||||||
emit '';
|
emit '';
|
||||||
if ( $gateway ) {
|
if ( $gateway ) {
|
||||||
emit qq(run_ip route replace default via $gateway src $address dev $interface table ) . DEFAULT_TABLE . qq( dev $interface metric $number);
|
emit qq(run_ip route replace default via $gateway src $address dev $interface table ) . DEFAULT_TABLE . qq( dev $interface metric $number);
|
||||||
emit qq(echo "qt \$IP route del default via $gateway table ) . DEFAULT_TABLE . qq(" >> \${VARDIR}/undo_routing);
|
emit qq(echo "qt \$IP -$family route del default via $gateway table ) . DEFAULT_TABLE . qq(" >> \${VARDIR}/undo_routing);
|
||||||
} else {
|
} else {
|
||||||
emit qq(run_ip route add default table ) . DEFAULT_TABLE . qq( dev $interface metric $number);
|
emit qq(run_ip route add default table ) . DEFAULT_TABLE . qq( dev $interface metric $number);
|
||||||
emit qq(echo "qt \$IP route del default dev $interface table ) . DEFAULT_TABLE . qq(" >> \${VARDIR}/undo_routing);
|
emit qq(echo "qt \$IP -$family route del default dev $interface table ) . DEFAULT_TABLE . qq(" >> \${VARDIR}/undo_routing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,12 +14,14 @@ Changes in Shorewall 4.4.2
|
|||||||
6) Allow comments at the end of continued lines.
|
6) Allow comments at the end of continued lines.
|
||||||
|
|
||||||
7) Call process_routestopped() during 'check' rather than
|
7) Call process_routestopped() during 'check' rather than
|
||||||
'compile_stop_firewall()'.
|
'compile_stop_firewall()'.
|
||||||
|
|
||||||
8) Don't look for an extension script for built-in actions.
|
8) Don't look for an extension script for built-in actions.
|
||||||
|
|
||||||
9) Apply Jesse Shrieve's patch for SNAT range.
|
9) Apply Jesse Shrieve's patch for SNAT range.
|
||||||
|
|
||||||
|
10) Add -<family> to 'ip route del default' command.
|
||||||
|
|
||||||
Changes in Shorewall 4.4.1
|
Changes in Shorewall 4.4.1
|
||||||
|
|
||||||
1) Deleted extra 'use ...IPAddrs.pm' from Nat.pm.
|
1) Deleted extra 'use ...IPAddrs.pm' from Nat.pm.
|
||||||
|
Loading…
Reference in New Issue
Block a user