Skip to content

Commit

Permalink
fix iptables command direction flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jan 17, 2025
1 parent d7588f9 commit 1323a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/docker/firewall/iptables/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

const (
iptCheckArgs = "-vL DOCKER-USER -w 5"
iptAllowArgs = "-I DOCKER-USER %s %s -j ACCEPT -w 5 -m comment --comment \"" + definitions.IPTablesRuleComment + "\""
iptDelArgs = "-D DOCKER-USER %s %s -j ACCEPT -w 5 -m comment --comment \"" + definitions.IPTablesRuleComment + "\""
iptAllowArgs = "-I DOCKER-USER -%s %s -j ACCEPT -w 5 -m comment --comment \"" + definitions.IPTablesRuleComment + "\""
iptDelArgs = "-D DOCKER-USER -%s %s -j ACCEPT -w 5 -m comment --comment \"" + definitions.IPTablesRuleComment + "\""
ipTables = "ip_tables"

v4AF = "v4"
Expand Down

0 comments on commit 1323a8b

Please sign in to comment.