Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

iptables: don't do reverse DNS lookups #92860

Merged
merged 1 commit into from Jul 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/util/iptables/iptables.go
Expand Up @@ -607,6 +607,9 @@ func (runner *runner) chainExists(table Table, chain Chain) (bool, error) {
runner.mu.Lock()
aojea marked this conversation as resolved.
Show resolved Hide resolved
defer runner.mu.Unlock()

trace := utiltrace.New("iptables Monitor CANARY check")
defer trace.LogIfLong(2 * time.Second)

_, err := runner.run(opListChain, fullArgs)
return err == nil, err
}
Expand All @@ -617,7 +620,7 @@ const (
opCreateChain operation = "-N"
opFlushChain operation = "-F"
opDeleteChain operation = "-X"
opListChain operation = "-L"
opListChain operation = "-S"
aojea marked this conversation as resolved.
Show resolved Hide resolved
opAppendRule operation = "-A"
opCheckRule operation = "-C"
opDeleteRule operation = "-D"
Expand Down