Create WEAVE-NPC chain in the correct table

This commit is contained in:
Bryan Boreham committed 2017-04-26 17:04:36 +00:00
1 parent 34642a04a4
commit f517a09f0f
1 file changed
+1 -1
+1 -1
View File
@@ -436,7 +436,7 @@ func configureIPTables(config *BridgeConfig) error {
if config.NPC {
// Steer traffic via the NPC
if err = ipt.ClearChain("nat", "WEAVE-NPC"); err != nil {
if err = ipt.ClearChain("filter", "WEAVE-NPC"); err != nil {
return errors.Wrap(err, "clearing WEAVE-NPC chain")
}
if err = ipt.AppendUnique("filter", "FORWARD", "-o", config.WeaveBridgeName, "-j", "WEAVE-NPC"); err != nil {