yabusygin / ansible-collection-netfilter

MIT License
0 stars 0 forks source link

The "iptables" role fails on Debian 12 #4

Open yabusygin opened 6 months ago

yabusygin commented 6 months ago

Version of the collection: 0.1.2.

Steps to reproduce. Run the following commands:

cd extensions
TEST_IMAGE="geerlingguy/docker-debian12-ansible:latest" molecule test

The expected result. The Molecule scenario is passed.

The actual result. The scenario fails at the "Load IPv4 rules" task:

RUNNING HANDLER [yabusygin.netfilter.iptables : Load IPv4 rules] ***************
fatal: [instance]: FAILED! => {"changed": true, "cmd": ["iptables-restore", "/etc/iptables/rules.v4"], "delta": "0:00:00.003051", "end": "2024-03-17 15:03:01.276108", "msg": "non-zero return code", "rc": 2, "start": "2024-03-17 15:03:01.273057", "stderr": "iptables-restore v1.8.9 (nf_tables): interface name `--in-interface=lo' must be shorter than IFNAMSIZ (15)\nError occurred at line: 6\nTry `iptables-restore -h' or 'iptables-restore --help' for more information.", "stderr_lines": ["iptables-restore v1.8.9 (nf_tables): interface name `--in-interface=lo' must be shorter than IFNAMSIZ (15)", "Error occurred at line: 6", "Try `iptables-restore -h' or 'iptables-restore --help' for more information."], "stdout": "", "stdout_lines": []}
yabusygin commented 6 months ago

The iptables-restore error message:

iptables-restore v1.8.9 (nf_tables): interface name `--in-interface=lo' must be shorter than IFNAMSIZ (15)
Error occurred at line: 6
Try `iptables-restore -h' or 'iptables-restore --help' for more information.