HBLink/hb_bridge_all_rules_SAMPLE.py
Cort Buffington 119f43cd59 ACL Features Added
This makes hb_bridge_all a more capable program with multiple ingress
and egress ACLs for SID and TGID filtering. It’s not as simple as
“blacklist” and “whitelist” since MULTIPLE endpoints exist, unlike an
MMDVM that has only one connection.
2018-02-13 18:59:44 -06:00

40 lines
1022 B
Python

# ACL Entries
#
# The 'action' May be PERMIT|DENY
# Each entry may be a single radio id, a hypenated range (e.g. 1-2999), or the string 'ALL'.
# if "ALL" is used, you may not include any other ranges or individual IDs.
# Format:
# ACL = 'action:id|start-end|,id|start-end,....'
#
# Sections exist for both TGIDs and Subscriber IDs.
# Sections exist for glboal actions, and per-system actions.
# ***FIRST MATCH EXITS***
# SID - Subscriber ID section.
# TGID - Talkgroup ID section.
#
# "GLOBAL" affects ALL systems
# "SYSTEM NAME" affects the system in quetion
# ACLs are applied both ingress AND egress
# If you omit GLOBAL or SYSTEM level ACLs, they will be initilzied
# automatically as "PERMIT:ALL"
#
# EXAMPLE:
# ACL = {
# 'SID': {
# 'K0USY': 'PERMIT:1-5,3120101,3120124'
# },
# 'TGID': {
# 'GLOBAL': 'PERMIT:ALL',
# 'K0USY': 'DENY:1-5,3120,31201'
# }
# }
ACL = {
'SID': {
'GLOBAL': 'PERMIT:ALL'
},
'TGID': {
'GLOBAL': 'PERMIT:ALL'
}
}