Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ICMP rules #72

Open
phoenix1589 opened this issue Mar 21, 2023 · 2 comments
Open

Allow ICMP rules #72

phoenix1589 opened this issue Mar 21, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@phoenix1589
Copy link

Currently only TCP/UDP can be specified in firewall rules. Would it be possible to extend this to include ICMP as a protocol that can be configured?

@capnspacehook capnspacehook added the enhancement New feature or request label Apr 1, 2023
@capnspacehook
Copy link
Owner

capnspacehook commented Apr 8, 2023

It's definitely possible, the config format would likely have to be updated as I'm sure you'd want the ability to specify what ICMP messages would be allowed or denied right?

@sammcj
Copy link

sammcj commented Aug 21, 2023

Does the current configuration block all ICMP by default?

*Edit I just tested this and indeed all ICMP is blocked, is there at least a way to allow it by default?

I tried adding - proto: icmp but that resulted in a mild explosion:

{"level":"error","time":"2023-08-21T09:03:40.977906129Z","msg":"error creating rules","container.id":"bfc355a8cc43","container.name":"borgmatic","error":"error parsing rules: invalid protocol \"icmp\"","stacktrace":"github.com/capnspacehook/whalewall.(*RuleManager).createRules\n\tgithub.com/capnspacehook/whalewall/create.go:63\ngithub.com/capnspacehook/whalewall.(*RuleManager).Start.func1\n\tgithub.com/capnspacehook/whalewall/manager.go:118"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants