[Solved] Rockstor OpenSuse iptables b0rked

Ok, so
Sadly, through my own fault while trying to open up a port, i’ve completely broken iptables.

System:
NAME=“openSUSE Leap”
VERSION=“15.2”
ID=“opensuse-leap”
ID_LIKE=“suse opensuse”
VERSION_ID=“15.2”
PRETTY_NAME=“Rockstor built on openSUSE Leap 15.2”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:opensuse:leap:15.2”
BUG_REPORT_URL=“https://forum.rockstor.com
HOME_URL=“http://rockstor.com/

Despite opening a port through iptables, communication wasn’t working, so I tried using firewall-cmd to open the port instead.
This then completely overwrote the iptables config with its own config.

Is there a way that I can restore the default rockstor iptables configuration?
Currently, I have no way of getting into the GUI, but I do have ssh access.

I have the ‘iptables -L’ output from before I broke it, but trying to translate that into a working config that I can restore seems difficult (missing references for example)

Any help would be appreciated!

Well, looks like I solved it (and subsequently won’t mess with the ports again!)
I rebooted and the iptables came back.

All good

2 Likes