I'm working on importing some firewalls into a local FWCloud installed on RHEL 9 via the Import Wizard and an FWCloud Agent. On several of my servers, I'm finding anomalous TCP port 0 services showing up, where they are not supposed to be. Here's a simplified example:
What I would expect to see is:
I tracked the issue down to multiport imports on the import wizard. If I use this iptables-save example (which is the default you get with RHEL 9), I don't see a TCP port 0 on the services column:
Yet, if I merge the port 22 and port 33033 lines into a mutliport line, I get the error:
I've confirmed that if I either rebuild the complete remote firewall and import it without multiport entries, or import an iptables-save without multiport entries everything works.
Thanks,
Jeremy
What I would expect to see is:
I tracked the issue down to multiport imports on the import wizard. If I use this iptables-save example (which is the default you get with RHEL 9), I don't see a TCP port 0 on the services column:
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 33033 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
Yet, if I merge the port 22 and port 33033 lines into a mutliport line, I get the error:
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp -m multiport --dports 22,33033 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
I've confirmed that if I either rebuild the complete remote firewall and import it without multiport entries, or import an iptables-save without multiport entries everything works.
Thanks,
Jeremy