
En el sistema actual tengo esta regla para ip6tables
-A INPUT -d <ip6address> -p udp -m udp --dport <port> -m state --state NEW -j ACCEPT
Para el nuevo sistema escribí un libro de jugadas ansible:
- name: Allow someport for ipv6
ansible.builtin.iptables:
chain: INPUT
protocol: udp
match: udp
ip_version: ipv6
ctstate: NEW
destination_port: 'port'
destination: 'ip6address'
jump: ACCEPT
tags:
- iptables6
Pero cuando intento jugar esto me sale un error:
{... "stderr_lines": ["ip6tables v1.8.7 (nf_tables): unknown option \"--destination-port\"", "Try `ip6tables -h' or 'ip6tables --help' for more information."], "stdout": "", "stdout_lines": []}
- Ansible 2.10.8
- Debian 11
¿Cómo definir correctamente esta regla?