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

Add icmp protocol support #34

Open
nickayoung opened this issue May 24, 2019 · 1 comment
Open

Add icmp protocol support #34

nickayoung opened this issue May 24, 2019 · 1 comment

Comments

@nickayoung
Copy link

nickayoung commented May 24, 2019

Hello,
It would be great to be able to configure icmp using this formula.

Could do something like:

firewall:
enabled: True
  icmp:
    ips_allow: 10.0.0.0/8
    type:
       - echo-request
       - echo-reply

Thoughts?

@TiepiNL
Copy link

TiepiNL commented Jul 27, 2020

It has been more than a year without a single reply to the OP. If a configurable solution like proposed by @nickayoung with ip filter and different icmp types isn't possible yet, perhaps someone could already add a simple 'allow_icmp_in' boolean, triggering some basic icmp states like:

iptables-allow-all-icmp-in:
iptables.append:
- table: filter
- chain: INPUT
- jump: ACCEPT
- match:
- comment
- comment: "Allow inbound PING"
- proto: icmp
- save: True

iptables-allow-all-icmp-in-ipv6:
iptables.append:
- table: filter
- chain: INPUT
- jump: ACCEPT
- match:
- comment
- comment: "Allow inbound PING"
- proto: icmpv6
- family: ipv6
- save: True

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

No branches or pull requests

2 participants