|
|
1 week ago | |
|---|---|---|
| .gitignore | 1 year ago | |
| README.md | 1 week ago | |
| amqp.go | 1 week ago | |
| bitbucket-pipelines.yml | 5 months ago | |
| cache.go | 1 year ago | |
| config.go | 1 year ago | |
| firewall.go | 1 week ago | |
| go.mod | 10 months ago | |
| go.sum | 1 year ago | |
| kazoo_firewall_agent.service | 1 year ago | |
| kazoo_firewall_agent_config.json.sample | 1 year ago | |
| kfa.spec | 5 months ago | |
| main.go | 1 week ago | |
| message.json | 1 year ago | |
| util.go | 1 year ago | |
Used in conjunction with call_shield Kazoo application.
cd kazoo_firewall_agent
go build
mkdir -p /opt/kazoo_firewall_agent
cp ./kazoo_firewall_agent /opt/kazoo_firewall_agent
cp ./kazoo_firewall_agent.service /etc/systemd/system/
cp ./kazoo_firewall_agent_config.json.sample /opt/kazoo_firewall_agent/kazoo_firewall_agent_config.json
systemctl daemon-reload
-> Make sure you have FirewallD installed and running.
systemctl enable kazoo_firewall_agent
systemctl start kazoo_firewall_agent
Specifying a server_type of freeswitch or ephemeral will use firewall rules that are temporary and are deleted when their cache timeout expires. Any other server type, such as kamailio or anything else, will NOT auto-delete records when the cache expires, and will use permanent firewall rules.
The amqp_uri config parameter can either be a single AMQP URI, or a comma separated list of multiple AMQP URIs (needed for kamailio server type with multiple Kazoo zones). Firewall agents running on Freeswitch do not need to connect to multiple Kazoo zones, only the local zone.
See the sample config file for other potentially useful configuration parameters.