Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions iptables/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ func formatComment(text string) string {
func addOutgoingTrafficRules(commands []*exec.Cmd, firewallConfiguration FirewallConfiguration) []*exec.Cmd {
outputChainName := "PROXY_INIT_OUTPUT"
redirectChainName := "PROXY_INIT_REDIRECT"
executeCommand(firewallConfiguration, makeFlushChain(outputChainName))
executeCommand(firewallConfiguration, makeDeleteChain(outputChainName))
_ = executeCommand(firewallConfiguration, makeFlushChain(outputChainName))
_ = executeCommand(firewallConfiguration, makeDeleteChain(outputChainName))

commands = append(commands, makeCreateNewChain(outputChainName, "redirect-common-chain"))

Expand Down Expand Up @@ -121,8 +121,8 @@ func addOutgoingTrafficRules(commands []*exec.Cmd, firewallConfiguration Firewal

func addIncomingTrafficRules(commands []*exec.Cmd, firewallConfiguration FirewallConfiguration) []*exec.Cmd {
redirectChainName := "PROXY_INIT_REDIRECT"
executeCommand(firewallConfiguration, makeFlushChain(redirectChainName))
executeCommand(firewallConfiguration, makeDeleteChain(redirectChainName))
_ = executeCommand(firewallConfiguration, makeFlushChain(redirectChainName))
_ = executeCommand(firewallConfiguration, makeDeleteChain(redirectChainName))

commands = append(commands, makeCreateNewChain(redirectChainName, "redirect-common-chain"))
commands = addRulesForIgnoredPorts(firewallConfiguration.InboundPortsToIgnore, redirectChainName, commands)
Expand Down