mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-29 17:09:32 +01:00
Exit POSTROUTING early if a mark is restored
This commit is contained in:
parent
10cc400cfd
commit
3b0da84b8d
@ -1339,6 +1339,7 @@ sub setup_simple_traffic_shaping() {
|
||||
|
||||
if ( $ipp2p ) {
|
||||
insert_rule1 $mangle_table->{tcpost} , 0 , '-m mark --mark 0/' . in_hex( $globals{TC_MASK} ) . ' -j CONNMARK --restore-mark --ctmask ' . in_hex( $globals{TC_MASK} );
|
||||
insert_rule1 $mangle_table->{tcpost} , 1 , '-m mark ! --mark 0/' . in_hex( $globals{TC_MASK} ) . ' -j RETURN';
|
||||
add_rule $mangle_table->{tcpost} , '-m mark ! --mark 0/' . in_hex( $globals{TC_MASK} ) . ' -j CONNMARK --save-mark --ctmask ' . in_hex( $globals{TC_MASK} );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user