<html><body><div style="font-family: Courier, Courier New, mono; font-size: 12pt; color: #000000"><div>Hello,</div><div><br></div><div>I want to fully automate my linux-installation process. For that, specific firewall-rules are needed.</div><div><br></div><div>I created a post-installation script like that:</div><div><br></div><div><br></div><div>[...]</div><div><br></div><div><p style="margin: 0px;" data-mce-style="margin: 0px;">systemctl restart firewalld<br>firewall-cmd --add-rich-rule='rule family="ipv4" source address="xxx.xxx.xxx.xxx" port port="xxxx" protocol="tcp" accept' --permanent<br>firewall-cmd --reload</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">[...]</p></div><div><span name="x"></span><br></div><div><span name="x">But this wont work. It tells me the following:</span></div><div><span name="x"><br></span></div><div><span name="x"><span name="x"></span></span><p style="margin: 0px;" data-mce-style="margin: 0px;">systemctl restart firewalld  -->  Running in chroot, ignoring request<br>firewall-cmd --add-rich-rule=...  -->  FirewallD is not running<br>firewall-cmd --reload  -->  FirewallD is not running</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">I was trying to run as nochroot-script, but then it isnt executed at all ...</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">Any help?</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">kind regards,</p><p style="margin: 0px;" data-mce-style="margin: 0px;">Philipp Wehling</p></div></div></body></html>