mirror of
https://gitlab.com/shorewall/code.git
synced 2025-03-04 09:31:16 +01:00
New approach to copying blackhole routes to secondary routing tables.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
06e7f297f7
commit
5e0749da3c
@ -252,6 +252,9 @@ sub copy_and_edit_table( $$$$ ) {
|
||||
emit ( ' case $net in',
|
||||
' default)',
|
||||
' ;;',
|
||||
' blackhole)',
|
||||
" run_ip route add table $number blackhole \$route $realm",
|
||||
' ;;',
|
||||
' *)',
|
||||
' case $(find_device $route) in',
|
||||
" $copy)" );
|
||||
@ -269,9 +272,6 @@ sub copy_and_edit_table( $$$$ ) {
|
||||
}
|
||||
|
||||
emit ( ' ;;',
|
||||
' *)',
|
||||
" [ \$net = blackhole ] && run_ip route add table $number \$net \$route $realm",
|
||||
' ;;',
|
||||
' esac',
|
||||
' ;;',
|
||||
' esac',
|
||||
|
Loading…
Reference in New Issue
Block a user