This commit brings about some improvements to the portscan module.
It allows users to specify a path to the iptables binary via a config setting: portscan.iptables_path
It checks if the system running opencanary has iptables.
if nftables is found, we use iptables-legacy.
Types of changes
What types of changes does your code introduce to this repository?
Put an x in the boxes that apply
[X] New feature (non-breaking change which adds functionality)
[X] Documentation Update
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
[x] Lint and unit tests pass locally with my changes (if applicable)
[x] I have run pre-commit (pre-commit in the repo)
[x] I have added necessary documentation (if appropriate)
[x] Linked to the relevant github issue or github discussion (#296)
Proposed changes
This commit brings about some improvements to the portscan module.
iptables
binary via a config setting:portscan.iptables_path
iptables
.nftables
is found, we useiptables-legacy
.Types of changes
What types of changes does your code introduce to this repository? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.pre-commit
in the repo)