summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-25 16:08:40 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-25 16:08:40 -0700
commitb5e0d014ab7fc96f8ebc3444cc1d2f3f0648c66f (patch)
tree7c846f79956cfa38e498ffb1fa644cdbf3588e6d /node
parent5eaf397a948923d3de68763c972be7ae8c83132d (diff)
downloadinfinitytier-b5e0d014ab7fc96f8ebc3444cc1d2f3f0648c66f.tar.gz
infinitytier-b5e0d014ab7fc96f8ebc3444cc1d2f3f0648c66f.zip
Controller bug fixes
Diffstat (limited to 'node')
-rw-r--r--node/Network.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/node/Network.cpp b/node/Network.cpp
index 02f53b55..5293e2f0 100644
--- a/node/Network.cpp
+++ b/node/Network.cpp
@@ -38,6 +38,36 @@
// Uncomment to enable ZT_NETWORK_RULE_ACTION_DEBUG_LOG rule output to STDOUT
#define ZT_RULES_ENGINE_DEBUGGING 1
+/*
+{
+ "name": "filter_log_test",
+ "private": true,
+ "v4AssignMode": {
+ "zt": true
+ },
+ "v6AssignMode": {
+ "rfc4193": true,
+ "zt": false,
+ "6plane": false
+ },
+ "routes": [
+ { "target": "10.140.140.0/24", "via": null }
+ ],
+ "ipAssignmentPools": [
+ { "ipRangeStart": "10.140.140.2", "ipRangeEnd": "10.140.140.254" }
+ ],
+ "rules": [
+ { "type": "MATCH_ETHERTYPE", "etherType": 0x0800 },
+ { "type": "ACTION_DEBUG_LOG" },
+
+ { "type": "MATCH_ETHERTYPE", "etherType": 0x0800, "not": true },
+ { "type": "ACTION_DEBUG_LOG" },
+
+ { "type": "ACTION_ACCEPT" }
+ ]
+}
+*/
+
namespace ZeroTier {
#ifdef ZT_RULES_ENGINE_DEBUGGING