Page 1 of 1

Centos8 firewalld issue

Posted: 2020/12/21 16:11:38
by logtech
Hello,

I have just created simple basic centos8 vm for production, and the first thing I noticed after restarting some firewalld issues:

public (active)
target: default
icmp-block-inversion: no
interfaces: ens192
sources:
services:
ports: 25/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
rule family="ipv4" source address="192.168.2.0/24" port port="3333" protocol="tcp" accept
rule family="ipv4" source address="192.168.2.0/24" port port="9090" protocol="tcp" accept

My WIndows has 192.168.2.100 and when I try to access SSH using 3333 I cannot - I have to disable firewalld from console and then it works. Rich rules should work. I have already reinstalled firewalld twice - removed and installed again. Any thoughts?

Re: Centos8 firewalld issue

Posted: 2020/12/21 16:29:39
by logtech
I am not sure if this is firewalld issue:

1. firewalld is stopped.
2. firewalld is disabled

reboot the VM

try to login using ssh with 3333 no luck

work around: Login through the console and ping google.com

miracle now I can login through SSH using 3333 port

Re: Centos8 firewalld issue

Posted: 2020/12/21 16:39:12
by logtech
firewalld is completely disabled

rebooted vm and no luck

as soon I login to VM through terminal all works - something is not right

Re: Centos8 firewalld issue

Posted: 2020/12/21 16:42:52
by TrevorH
Did you enable the network? It's disabled by default unless you used the network in order to perform the install...

Re: Centos8 firewalld issue

Posted: 2020/12/21 16:49:31
by logtech
realy ????????????



USERCTL=no

and disable

#USERS=root

in network card config and viola

Re: Centos8 firewalld issue

Posted: 2020/12/21 16:50:59
by logtech
now every time I reboot I dont have to login as root to have network working like should - I did not like USERS=root since the beginning in my network card config

Re: Centos8 firewalld issue

Posted: 2020/12/21 17:03:24
by TrevorH
ONBOOT=yes

Re: Centos8 firewalld issue

Posted: 2020/12/21 17:09:40
by logtech
I am glad this started working since I spend a lot of time for that image be ready in production .......