ADD: Wireshark - the world’s foremost and widely-used network protocol analyzer (#578)

Add Wireshark
This commit is contained in:
bcurran3 2022-08-18 00:29:10 -07:00 committed by GitHub
parent 571a02c480
commit 06f0cf71b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 67 additions and 0 deletions

View file

@ -94,6 +94,7 @@ If you have a spare domain name you can configure applications to be accessible
* [Virtual Desktop](https://github.com/RattyDAVE/docker-ubuntu-xrdp-mate-custom) - A virtual desktop running on your NAS.
* [Wallabag](https://wallabag.org/) - Save and classify articles. Read them later.
* [Watchtower](https://github.com/v2tec/watchtower) - Monitor your Docker containers and update them if a new version is available
* [Wireshark](https://www.wireshark.org/) - the worlds foremost and widely-used network protocol analyzer.
* [YouTubeDL-Material](https://github.com/Tzahi12345/YoutubeDL-Material) - Self-hosted YouTube downloader built on Material Design
* [ZNC](https://wiki.znc.in/ZNC) - IRC bouncer to stay connected to favourite IRC networks and channels

View file

@ -0,0 +1,11 @@
# Wireshark
Homepage: <https://www.wireshark.org/>
Wireshark is the worlds foremost and widely-used network protocol analyzer. It lets you see whats happening on your network at a microscopic level and is the de facto (and often de jure) standard across many commercial and non-profit enterprises, government agencies, and educational institutions. Wireshark development thrives thanks to the volunteer contributions of networking experts around the globe and is the continuation of a project started by Gerald Combs in 1998.
## Usage
Set `wireshark_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
The Wireshark web interface can be found at <http://ansible_nas_host_or_ip:3000>.

View file

@ -100,5 +100,6 @@ By default, applications can be found on the ports listed below.
| uTorrent | 6881 | Bridge | BT |
| uTorrent | 6881 | Bridge | UDP |
| Wallabag | 7780 | Bridge | HTTP |
| Wireshark | 3000 | Host | HTTP |
| YouTubeDL-Mater | 8998 | Bridge | HTTP |
| ZNC | 6677 | Bridge | |

View file

@ -375,6 +375,11 @@
- watchtower
when: (watchtower_enabled | default(False))
- role: wireshark
tags:
- wireshark
when: (wireshark_enabled | default(False))
- role: znc
tags:
- znc

View file

@ -0,0 +1,17 @@
---
# enable or disable the application
wireshark_enabled: false
wireshark_available_externally: false
# directories
wireshark_data_directory: "{{ docker_home }}/wireshark"
# uid / gid
wireshark_user_id: "1000"
wireshark_group_id: "1000"
# network
wireshark_hostname: "wireshark"
# specs
wireshark_memory: "512m"

View file

@ -0,0 +1,32 @@
---
- name: Create Wireshark Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ wireshark_data_directory }}"
- "{{ wireshark_data_directory }}/config"
- name: Create Wireshark Docker Container
docker_container:
name: wireshark
image: linuxserver/wireshark:latest
pull: true
volumes:
- "{{ wireshark_data_directory }}/config:/config:rw"
network_mode: host
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ wireshark_user_id }}"
PGID: "{{ wireshark_group_id }}"
capabilities:
- NET_ADMIN
restart_policy: unless-stopped
memory: "{{ wireshark_memory }}"
labels:
traefik.enable: "{{ wireshark_available_externally | string }}"
traefik.http.routers.wireshark.rule: "Host(`{{ wireshark_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.wireshark.tls.certresolver: "letsencrypt"
traefik.http.routers.wireshark.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.wireshark.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.wireshark.loadbalancer.server.port: "3000"