IPtables install command failed | FWCloud Forum

IPtables install command failed

quinhn

New member
Hi Team,
I'm facing issue when install IPtables rules to firewall by SSH.
Screenshot from 2023-07-17 16-24-18.png
Could you please help to change the iptables install command to /usr/bin/sh -c 'if [ -d /etc/fwcloud ]; then sh /etc/fwcloud/fwcloud.sh start; else sh /config/scripts/post-config.d/fwcloud.sh start; fi' ?
Thanks
 

Carles Munyoz

Administrator
Staff member
I see that you have other firewalls in your FWCloud instance.
Have you had any problem installing the firewall policy in them?

Which is the Linux distribution that you have in this firewall?

Have you tried installing FWCloud-Agent in the managed firewall and use it instead of SSH communication?
FWCloud-Agent communication has several advantages over SSH communication and its installation is very simple:
 

quinhn

New member
Hi Carles,
All of my firewalls has the same issue.
I just can use SSH connection because our security team do not allow to install agent.
Could you please help to change the iptables install command to /usr/bin/sh -c 'if [ -d /etc/fwcloud ]; then sh /etc/fwcloud/fwcloud.sh start; else sh /config/scripts/post-config.d/fwcloud.sh start; fi' ?
Thanks.
 

Carles Munyoz

Administrator
Staff member
Hi,
We can create a patch release in order to solve this issue.

Which is the Linux distribution that you have in this firewall?
 

Carles Munyoz

Administrator
Staff member
We can install the policy script in such Linux distributions without problems.

Is the ssh user that you are using for the firewall management in the sudo group?
Have in mind that the ssh user must have sudo privileges in order to load the firewall policy.
 
Top