Skip to content

Commit d29e0c8

Browse files
committed
provision-instance: Fix IPv6 rule provisioning
1 parent 0f6c29c commit d29e0c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/provision-instance.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ INSTANCE_IP4=$(ssh root@"$INSTANCE" facter networking.ip)
3232
INSTANCE_IP6=$(ssh root@"$INSTANCE" facter networking.ip6)
3333
ssh "$PUPPET_SERVER" sudo nft add rule inet filter input tcp dport 8140 ip saddr "$INSTANCE_IP4" ct state new accept
3434
if [[ "$INSTANCE_IP6" != fe80* ]]; then
35-
ssh "$PUPPET_SERVER" sudo nft add rule inet6 filter input tcp dport 8140 ip6 saddr "$INSTANCE_IP6" ct state new accept
35+
ssh "$PUPPET_SERVER" sudo nft add rule inet filter input tcp dport 8140 ip6 saddr "$INSTANCE_IP6" ct state new accept
3636
fi
3737

3838
ssh root@"$INSTANCE" "$PUPPET" config --section agent set server "$PUPPET_SERVER"

0 commit comments

Comments
 (0)