-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked back to strings for keys of ports, howveer now objects. Preparation for callbacks on port triggers.
- Loading branch information
Dustyn Blackmore
committed
Apr 16, 2018
1 parent
4eb47ea
commit 8482d46
Showing
3 changed files
with
181 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
{ | ||
"interfaces": { | ||
"trusted": [ | ||
"lo", "ppp0" | ||
], | ||
"untrusted": [ | ||
"enp2s0f0", "wlp3s0b1" | ||
] | ||
"lo": { | ||
"zone": "trusted" | ||
}, | ||
"enp2s0f0": { | ||
"zone": "untrusted" | ||
}, | ||
"ppp0": { | ||
"zone": "trusted" | ||
}, | ||
"wlp3s0b1": { | ||
"zone": "untrusted" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,133 @@ | ||
{ | ||
"rules": { | ||
"incoming": { | ||
"global_icmp": false, | ||
"global_igmp": false, | ||
"global_tcp": [], | ||
"global_udp": [], | ||
"trusted_icmp": false, | ||
"trusted_tcp": [ | ||
22 | ||
], | ||
"trusted_udp": [], | ||
"untrusted_icmp": false, | ||
"untrusted_igmp": false, | ||
"untrusted_tcp": [], | ||
"untrusted_udp": [] | ||
"_1": "ICMP", | ||
"1": { | ||
"global": { | ||
"enabled": false | ||
}, | ||
"trusted": { | ||
"enabled": true | ||
}, | ||
"untrusted": { | ||
"enabled": false | ||
} | ||
}, | ||
"_2": "IGMP", | ||
"2": { | ||
"global": { | ||
"enabled": false | ||
}, | ||
"trusted": { | ||
"enabled": true | ||
}, | ||
"untrusted": { | ||
"enabled": false | ||
} | ||
}, | ||
"_6": "TCP", | ||
"6": { | ||
"global": { | ||
"enabled": false | ||
}, | ||
"trusted": { | ||
"enabled": false | ||
}, | ||
"untrusted": { | ||
"enabled": false | ||
} | ||
}, | ||
"_17": "UDP", | ||
"17": { | ||
"global": { | ||
"enabled": false | ||
}, | ||
"trusted": { | ||
"enabled": false | ||
}, | ||
"untrusted": { | ||
"enabled": false | ||
} | ||
} | ||
}, | ||
"outgoing": { | ||
"global_icmp": false, | ||
"global_igmp": false, | ||
"global_tcp": [ | ||
443, | ||
465, | ||
993 | ||
], | ||
"global_udp": [ | ||
53, | ||
500, | ||
1701, | ||
4500 | ||
], | ||
"trusted_icmp": true, | ||
"trusted_igmp": true, | ||
"trusted_tcp": [ | ||
22, | ||
80, | ||
1900 | ||
], | ||
"trusted_udp": [ | ||
123, | ||
137, | ||
138, | ||
1900, | ||
5353 | ||
], | ||
"untrusted_icmp": false, | ||
"untrusted_igmp": false, | ||
"untrusted_tcp": [], | ||
"untrusted_udp": [] | ||
"_1": "ICMP", | ||
"1": { | ||
"global": { | ||
"enabled": false | ||
}, | ||
"trusted": { | ||
"enabled": true | ||
}, | ||
"untrusted": { | ||
"enabled": false | ||
} | ||
}, | ||
"_2": "IGMP", | ||
"2": { | ||
"global": { | ||
"enabled": false | ||
}, | ||
"trusted": { | ||
"enabled": true | ||
}, | ||
"untrusted": { | ||
"enabled": false | ||
} | ||
}, | ||
"_6": "TCP", | ||
"6": { | ||
"global": { | ||
"enabled": true, | ||
"ports": { | ||
"22": {}, | ||
"80": {}, | ||
"443": {}, | ||
"993": {}, | ||
"9092": {} | ||
} | ||
}, | ||
"trusted": { | ||
"enabled": true, | ||
"ports": { | ||
"22": {}, | ||
"80": {}, | ||
"139": {}, | ||
"445": {}, | ||
"465": {}, | ||
"1900": {}, | ||
"9092": {} | ||
} | ||
}, | ||
"untrusted": { | ||
"enabled": false | ||
} | ||
}, | ||
"_17": "UDP", | ||
"17": { | ||
"global": { | ||
"enabled": true, | ||
"ports": { | ||
"53": {}, | ||
"500": {}, | ||
"1701": {}, | ||
"4500": {} | ||
} | ||
}, | ||
"trusted": { | ||
"enabled": true, | ||
"ports": { | ||
"123": {}, | ||
"137": {}, | ||
"138": {}, | ||
"1900": {}, | ||
"5353": {} | ||
} | ||
}, | ||
"untrusted": { | ||
"enabled": false | ||
} | ||
} | ||
} | ||
} | ||
} |