-
Notifications
You must be signed in to change notification settings - Fork 210
Quick start
Rob edited this page May 19, 2016
·
2 revisions
- Download the latest Capirca bundle: * http://code.google.com/p/capirca/downloads/list
- Extract the files
tar -xvzf capirca-rXXX.tgz
- Move into the extracted directory
cd ./capirca
- Generate filters for the targets in the provided sample policy
./aclgen.py (alternately 'python ./aclgen.py')
- Examine the resulting output filters
ls ./filters
vi ./filters/sample.*
- Add your Networks & Hosts definitions
vi ./def/NETWORK.net
* Note: you can also create your own [CUSTOM](CUSTOM.md).net files which will be automatically included. This can be used to group or separate particular definitions into distinct files.
- Add any necessary service definitions
vi ./def/SERVICES.svc
* Note: you can also create your own [CUSTOM](CUSTOM.md).svc files which will be automatically included.
- Define a new security policy
vi ./policies/my-custom.pol
- Create the filter header and specify target platforms * http://code.google.com/p/capirca/wiki/PolicyFormat#Terms_Section
header {
comment:: "Speedway generates iptables filter suitable for passing"""
comment:: "to iptables-restore."""
}
- Define the policy rules / terms * http://code.google.com/p/capirca/wiki/PolicyFormat#Terms_Section
term allow-inbound-ssh {
destination-address: MY_SERVERS
protocol:: tcp
destination-port:: SSH
action:: accept
}
- Generate your filter
./aclgen.py
- Review and Check the generated filter
vi ./filters/my-custom.ipt
Please raise an issue here on GitHub