Add comment about the FORWARD rule order

Should help debugging.
This commit is contained in:
Martynas Pumputis committed 2018-01-20 14:44:40 +01:00
1 parent 439b4ad190
commit 9a5514ffe0
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -449,7 +449,9 @@ func configureIPTables(config *BridgeConfig) error {
// If WEAVE-NPC chain doesn't exist then creating a rule in the chain will fail
fwdRules = append(fwdRules,
[][]string{
{"-o", config.WeaveBridgeName, "-j", "WEAVE-NPC"},
{"-o", config.WeaveBridgeName,
"-m", "comment", "--comment", "NOTE: this must go before '-j KUBE-FORWARD'",
"-j", "WEAVE-NPC"},
{"-o", config.WeaveBridgeName, "-m", "state", "--state", "NEW", "-j", "NFLOG", "--nflog-group", "86"},
{"-o", config.WeaveBridgeName, "-j", "DROP"},
}...)