diff --git a/roles/ip_forward/tasks/main.yaml b/roles/ip_forward/tasks/main.yaml new file mode 100644 index 0000000..0a1a08e --- /dev/null +++ b/roles/ip_forward/tasks/main.yaml @@ -0,0 +1,8 @@ +--- +- name: Enable IPv4 forwarding + ansible.posix.sysctl: + name: net.ipv4.ip_forward + value: '1' + sysctl_set: true + state: present + reload: true diff --git a/roles/softwares/tasks/main.yaml b/roles/softwares/tasks/main.yaml index 9816221..da80eea 100644 --- a/roles/softwares/tasks/main.yaml +++ b/roles/softwares/tasks/main.yaml @@ -17,6 +17,12 @@ state: latest update_cache: true +- name: Install tcpdump + ansible.builtin.apt: + name: tcpdump + state: latest + update_cache: true + - name: Install jnettop ansible.builtin.apt: name: jnettop diff --git a/router.yaml b/router.yaml index 83d4676..3d9149e 100644 --- a/router.yaml +++ b/router.yaml @@ -5,6 +5,7 @@ - system - softwares - bpytop + - ip_forward - dnsmasq - nftables - clean