Skip to content

Commit

Permalink
don't reject
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Apr 7, 2024
1 parent a31c2bb commit 40c3f25
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mirrord/agent/src/steal/ip_tables/flush_connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ where
let managed =
IPTableChain::create(ipt.with_table("filter").into(), IPTABLE_INPUT.to_string())?;

// specify tcp protocol, if we don't we can't reject with tcp-reset
if let Err(e) = managed.add_rule(&format!(
"-p tcp -m connmark --mark {MARK} -j REJECT --reject-with tcp-reset"
)) {
warn!("Failed to add rule to reject connections: {e}");
}

Ok(FlushConnections { managed, inner })
}

Expand Down

0 comments on commit 40c3f25

Please sign in to comment.