Merge pull request #2549 from weaveworks/log-drops-via-nflog

Log dropped policy controller traffic via NFLOG
This commit is contained in:
Martynas Pumputis authored and GitHub committed 2016-10-19 11:02:28 +01:00
commit fc940d0017
1 file changed
+1 -1
+1 -1
View File
@@ -601,7 +601,7 @@ create_bridge() {
# Steer traffic via the NPC
run_iptables -N WEAVE-NPC >/dev/null 2>&1 || true
add_iptables_rule filter FORWARD -o $BRIDGE -j WEAVE-NPC
add_iptables_rule filter FORWARD -o $BRIDGE -j LOG --log-prefix=WEAVE-NPC:
add_iptables_rule filter FORWARD -o $BRIDGE -m state --state NEW -j NFLOG --nflog-group 86
add_iptables_rule filter FORWARD -o $BRIDGE -j DROP
else
# Work around the situation where there are no rules allowing traffic