https://github.com/deekayen/ansible-role-ping
Update rules in firewalld to allow ping and traceroute diagnostics inbound.
https://github.com/deekayen/ansible-role-ping
ansible ansible-role firewalld ping traceroute
Last synced: 9 months ago
JSON representation
Update rules in firewalld to allow ping and traceroute diagnostics inbound.
- Host: GitHub
- URL: https://github.com/deekayen/ansible-role-ping
- Owner: deekayen
- License: bsd-3-clause
- Created: 2019-09-13T20:18:46.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2021-07-18T04:23:23.000Z (almost 5 years ago)
- Last Synced: 2025-05-21T15:16:28.245Z (about 1 year ago)
- Topics: ansible, ansible-role, firewalld, ping, traceroute
- Homepage: https://galaxy.ansible.com/deekayen/ping
- Size: 60.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Ping and Traceroute
===================
[](https://github.com/deekayen/ansible-role-ping/actions?query=workflow%3ACI) [](https://www.repostatus.org/#inactive)  
Install the firewalld service, then override the default-deny firewall configurations to allow ping (echo-request) or other diagnostic traceroute traffic.
Requirements
------------
firewalld
Default Variables
-----------------
The options for types of allowed ICMP are dictated by the firewalld service.
```Shell
# firewall-cmd --get-icmptypes
destination-unreachable echo-reply echo-request parameter-problem redirect router-advertisement router-solicitation source-quench time-exceeded timestamp-reply timestamp-request
```
The `ping_zone` is where the firewalld rules will update to modify ICMP access.
### Role Defaults
```YAML
ping_enable: yes
ping_source: 0.0.0.0/0
ping_types:
- echo-request
ping_zone: public
```
Dependencies
------------
None.
Example Playbook
----------------
- hosts: all:!platform_windows
roles:
- deekayen.ping