__iptables_rule fails on alpine 3.13 #14

Open
opened 2021-11-20 11:24:48 +00:00 by ungleich-gitea · 0 comments

Create an alpine container/vm and apply the following minimal manifest to reproduce:

__package iptables
__iptables_rule 01_tcp_testrule  --rule "-A INPUT -s 10.1.0.0/16 -m tcp -p tcp --dport 22 -j ACCEPT"

cdist applies successfully but rule not applied.
running /etc/init.d/iptables start by hand produces the following output:

 /etc/init.d # ./iptables  start
./iptables: line 66: ip6tables-save: not found
Appling iptables rule 01_tcp_testrule ...
./iptables: cd: line 31: can't cd to /etc/iptables.d/v6: No such file or directory
./iptables: cd: line 31: can't cd to /etc/iptables.d/all: No such file or directory
/etc/init.d #
Create an alpine container/vm and apply the following minimal manifest to reproduce: __package iptables __iptables_rule 01_tcp_testrule --rule "-A INPUT -s 10.1.0.0/16 -m tcp -p tcp --dport 22 -j ACCEPT" cdist applies successfully but rule not applied. running ```/etc/init.d/iptables start``` by hand produces the following output: /etc/init.d # ./iptables start ./iptables: line 66: ip6tables-save: not found Appling iptables rule 01_tcp_testrule ... ./iptables: cd: line 31: can't cd to /etc/iptables.d/v6: No such file or directory ./iptables: cd: line 31: can't cd to /etc/iptables.d/all: No such file or directory /etc/init.d #
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#14
No description provided.