first my setup:
I have my server connected to my router and forwarded a port on which i want to listen my service on so it is accesible from outside of my network.
i just started a little homeserver for the first time and after some struggle with installing ubuntu i chose to use openSUSE instead. However
as i tried to run a server program (Minecraft) i could not connect to the server from outside so i first troubleshot using netcat
and also with netcat i could not create a connection fom my local mashines even.
After some search i found out about iptables where in fact were no rules set for the connections i attempted to try so i created the corresponding rules
and finally i could connect to my server from inside and outside of the server.
Also i found out that those changes are not persistent over restarts of the server and i started searching for a solution again.
I found some threads describing the usage of iptables-save and iptables-restore but unfortunately i could not find an automated way which demands no user action
for restoring the rules on startup. I then stumbled upon an online article which decriped the usage of yast2 to configure the firewall. In the article the author stated “the interface is pretty much
self explanatory”. Unfortunately in my case it was not honestly. Also there is no file called SuSEfirewall2 under /etc/sysconfig/ which i could edit as described in the article and under and in the SuSE wiki.
So i tried disabling the firewall and configure it purely trough iptables but that also did not work as on every restart the rules are completely empty and need to be restored again vira iptables-restore.
Now i am a bit frustrated and decided to ask in this forum for a solution to my problem. How do i configure my firewall to accept incoming connections which are persistent over restarts?