forked from extern/shorewall_code
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',
|
emit ( ' case $net in',
|
||||||
' default)',
|
' default)',
|
||||||
' ;;',
|
' ;;',
|
||||||
|
' blackhole)',
|
||||||
|
" run_ip route add table $number blackhole \$route $realm",
|
||||||
|
' ;;',
|
||||||
' *)',
|
' *)',
|
||||||
' case $(find_device $route) in',
|
' case $(find_device $route) in',
|
||||||
" $copy)" );
|
" $copy)" );
|
||||||
@ -269,9 +272,6 @@ sub copy_and_edit_table( $$$$ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
emit ( ' ;;',
|
emit ( ' ;;',
|
||||||
' *)',
|
|
||||||
" [ \$net = blackhole ] && run_ip route add table $number \$net \$route $realm",
|
|
||||||
' ;;',
|
|
||||||
' esac',
|
' esac',
|
||||||
' ;;',
|
' ;;',
|
||||||
' esac',
|
' esac',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user